Skip to content

[Mono] MSBuild Task housekeeping #53873

@steveisok

Description

@steveisok

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 NetCoreAppToolCurrent called NetCoreAppMSBuildTasksCurrent and update the tasks in src/tasks to use it.
  • Create a template Sdk.props file for Microsoft.NET.Runtime.RuntimeConfigParser.Task and Microsoft.NET.Runtime.MonoAOTCompiler.Task
  • Create a template Sdk.targets file for Microsoft.NET.Runtime.WebAssembly.Sdk

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions