-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Closed
Description
As discovered in #53827, we are hardcoding paths to net6.0 and net472 for MSBuild tasks that are configured to multi-target. We should instead create a template props file and generate with the tool version we have configured in runtime.
Also, while we are at it, we should create a property similar to NetCoreAppToolCurrent and use it within our tasks. NetCoreAppToolCurrent will likely bump more aggressively between new sdks and we won't really need to.
So, the issue boils down to:
- Create a property similar to
NetCoreAppToolCurrentcalledNetCoreAppMSBuildTasksCurrentand update the tasks insrc/tasksto use it. - Create a template Sdk.props file for
Microsoft.NET.Runtime.RuntimeConfigParser.TaskandMicrosoft.NET.Runtime.MonoAOTCompiler.Task - Create a template Sdk.targets file for
Microsoft.NET.Runtime.WebAssembly.Sdk
radical