CsprojToVs2017
CsprojToVs2017 copied to clipboard
Inline PackageReference PrivateAssets attribute is removed
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.