This repository was archived by the owner on Jan 23, 2023. It is now read-only.
Repository navigation
Fix ILLink when run from VS/desktop/direct - #42266
Merged
Merged
Conversation
ILLink needs the path to dotnet.exe and was relying on an optional environment variable to find it. Instead use the NetCoreRoot property set by the SDK. This is a direct copy of https://github.com/dotnet/sdk/blob/b28a8efbfb30d84019351abb3aa9a2b15e008662/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.ILLink.targets#L74-L80 We should try to eliminate our custom illink.targets and just configure the built in ones if we can.
ViktorHofer
approved these changes
Oct 31, 2019
safern
approved these changes
Oct 31, 2019
Member
|
A bit late to this, but while the change does fix builds in regular VS sessions, it does not do the same with VS instances started via It seems like it's picking up the testhost sdk. I think we probably need to explicitly set |
sbomer
added a commit
to sbomer/coreclr
that referenced
this pull request
Nov 1, 2019
I'm not sure we ever build corelib using desktop MSBuild, but this should prevent problems like dotnet/corefx#42266 if we do.
sbomer
added a commit
to sbomer/coreclr
that referenced
this pull request
Nov 1, 2019
I'm not sure we ever build corelib using desktop MSBuild, but this should prevent problems like dotnet/corefx#42266 if we do.
sbomer
added a commit
to dotnet/coreclr
that referenced
this pull request
Nov 1, 2019
* Update ILLink.Tasks This adds a few roots that are needed by reflection APIs, experimental (internal) APIs, and by the runtime. * Remove MemoryLoadChangeNotification root The Register/Unregister methods were already being removed by the linker, so we do not need to introduce them. * Keep ThreadPoolBoundHandle implementation of IDisposable * Update to linker version with unusedinterfaces opt * GeneratePackagePath -> GeneratePathProperty This wasn't causing any problems since these packages happened to have tools folders, which always get the path property generated. We could get rid of them, but perhaps it's better to be explicit. * Prevent problems when running on desktop I'm not sure we ever build corelib using desktop MSBuild, but this should prevent problems like dotnet/corefx#42266 if we do.
picenka21
pushed a commit
to picenka21/runtime
that referenced
this pull request
Feb 18, 2022
ILLink needs the path to dotnet.exe and was relying on an optional environment variable to find it. Instead use the NetCoreRoot property set by the SDK. This is a direct copy of https://github.com/dotnet/sdk/blob/dotnet/corefx@b28a8efbfb30d84019351abb3aa9a2b15e008662/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.ILLink.targets#L74-L80 We should try to eliminate our custom illink.targets and just configure the built in ones if we can. Commit migrated from dotnet/corefx@18d2d60
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ILLink needs the path to dotnet.exe and was relying on an optional
environment variable to find it.
Instead use the NetCoreRoot property set by the SDK.
This is a direct copy of
https://github.com/dotnet/sdk/blob/b28a8efbfb30d84019351abb3aa9a2b15e008662/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.ILLink.targets#L74-L80
We should try to eliminate our custom illink.targets and just configure
the built in ones if we can.