CsprojToVs2017 icon indicating copy to clipboard operation
CsprojToVs2017 copied to clipboard

Inline PackageReference PrivateAssets attribute is removed

Open starkcolin opened this issue 5 years ago • 0 comments

When upgrading or cleaning up csproj files that have inline PrivateAssets attributes on PackageReference items, the attributes are incorrectly removed.

Example: <PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.9.6" PrivateAssets="All" />

becomes: <PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.9.6" />

I am not sure if this occurs with any other inline attributes, but all attributes should be preserved on upgrade.

starkcolin avatar Oct 07 '19 16:10 starkcolin