Skip to content

Commit 4b7621b

Browse files
vitek-karaselinor-fungmateoatr
authored
Remove core clr hosting (#25818)
Hosting .NET through `coreclr.h` has been obsolete since .NET Core 3.0 and should not be used. All the versions which needed it (.NET Core 2.2 and older) are now out of support. Having the `coreclr.h` hosting available in the docs and samples is confusing and may lead people to actually use it for newer runtimes which can lead to unexpected results. This change removes the sample code and modifies the hosting guide to only mention one hosting API. I added a note about the older runtimes needing to use `coreclr.h` but intentionally didn't include any details on that topic. It also updates the `hostfxr` sample with a fresh copy of the sample from the samples repo. Co-authored-by: Elinor Fung <[email protected]> Co-authored-by: Mateo Torres-Ruiz <[email protected]>
1 parent 50fbf9a commit 4b7621b

File tree

21 files changed

+523
-789
lines changed

21 files changed

+523
-789
lines changed

docs/core/tutorials/netcore-hosting.md

Lines changed: 19 additions & 115 deletions
Large diffs are not rendered by default.

samples/snippets/core/tutorials/netcore-hosting/csharp/HostWithCoreClrHost/README.md

Lines changed: 0 additions & 20 deletions
This file was deleted.

samples/snippets/core/tutorials/netcore-hosting/csharp/HostWithCoreClrHost/build.bat

Lines changed: 0 additions & 17 deletions
This file was deleted.

samples/snippets/core/tutorials/netcore-hosting/csharp/HostWithCoreClrHost/build.sh

Lines changed: 0 additions & 19 deletions
This file was deleted.

samples/snippets/core/tutorials/netcore-hosting/csharp/HostWithCoreClrHost/buildOsx.sh

Lines changed: 0 additions & 20 deletions
This file was deleted.

samples/snippets/core/tutorials/netcore-hosting/csharp/HostWithCoreClrHost/src/ManagedLibrary/ManagedLibrary.csproj

Lines changed: 0 additions & 11 deletions
This file was deleted.

samples/snippets/core/tutorials/netcore-hosting/csharp/HostWithCoreClrHost/src/ManagedLibrary/ManagedWorker.cs

Lines changed: 0 additions & 55 deletions
This file was deleted.

0 commit comments

Comments
 (0)