Overwrite ILLinkTasksAssembly#1822
Conversation
If the Microsoft.NET.ILLink.Tasks package is package referenced directly, overwriting `ILLinkTasksAssembly` guarantees that the SDK uses the right ILLink assembly. Github org searches didn't show any consumer of the private properties, hence removing them for simplification. dotnet/arcade#6936 benefits from this change.
|
We shouldn't get rid of the |
|
For local builds, |
|
I typically like to set it in the project file rather than the command-line. |
|
That still works as props are imported before the project file which means that the value in the project file overwrites what is in the props file (as long as the property isn't passed in globally). |
|
The Sdk.props are imported late in https://github.com/dotnet/sdk/blob/master/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.ILLink.targets#L14. Should that be changed? |
|
oh forget that. yes, we should definitely fix that as props should be imported before the project is evaluated. |
|
Either via a ILLink.props file in the SDK (which then is imported by Microsoft.Net.Sdk.props) or directly in the Microsoft.Net.Sdk.props file. |
|
@sbomer should I take care of that or do you want to? |
|
I will take care of it, thanks! |
They should be imported early per convention. See dotnet/linker#1822
They should be imported early per convention. See dotnet/linker#1822
* Fix ILLink props import They should be imported early per convention. See dotnet/linker#1822
If the Microsoft.NET.ILLink.Tasks package is package referenced directly, overwriting `ILLinkTasksAssembly` guarantees that the SDK uses the right ILLink assembly. Github org searches didn't show any consumer of the private properties, hence removing them for simplification. dotnet/arcade#6936 benefits from this change. Commit migrated from dotnet/linker@7f47c0c
If the Microsoft.NET.ILLink.Tasks package is package referenced directly, overwriting
ILLinkTasksAssemblyguarantees that the SDK uses the right ILLink assembly. Github org searches didn't show any consumer of the private properties, hence removing them for simplification.dotnet/arcade#6936 benefits from this change.