Skip to content

Extract common packagereferences for MSBuild tasks that ship in the SDK #51444

@rainersigwald

Description

@rainersigwald

Several projects in this repo build MSBuild task assemblies. They all have clauses in their project file like

<PackageReference Include="System.Collections.Immutable" VersionOverride="$(SystemCollectionsImmutableToolsetPackageVersion)" />
<PackageReference Include="System.Reflection.Metadata" VersionOverride="$(SystemReflectionMetadataToolsetPackageVersion)" />
<PackageReference Include="System.Reflection.MetadataLoadContext" VersionOverride="$(SystemReflectionMetadataLoadContextToolsetPackageVersion)" />

That serve to keep the .NET Framework task unified with the dependencies that MSBuild has. Unfortunately they can differ.

We should extract the concept of "this project builds SDK MSBuild tasks" to an imported SDKDeliveredMSBuildTask.props file that includes the references like that, and import it in the various projects that build tasks.

You can find those projects by searching for SystemReflectionMetadataToolsetPackageVersion and other properties to make sure you've found them all.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions