-
Notifications
You must be signed in to change notification settings - Fork 6k
Remove core clr hosting #25818
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove core clr hosting #25818
Conversation
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 not 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.
.../snippets/core/tutorials/netcore-hosting/csharp/HostWithHostFxr/src/NativeHost/inc/hostfxr.h
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it make sense to do a general .NET Core runtime
-> .NET runtime
conversion (except for where it is explicitly .NET Core 3.0
) throughout this tutorial?
Co-authored-by: Elinor Fung <elfung@microsoft.com> Co-authored-by: Mateo Torres-Ruiz <mateoatr@users.noreply.github.com>
dotnet/samples#4790 moves the sample one level up in directory - this change already reacts to that and updates the link. |
Thats what dot net is made from! no outdating that! |
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.Corresponding changes to samples: dotnet/samples#4786.