DNT
DNT copied to clipboard
Keep PrivateAssets on switch-to-projects and back
I have a package that is referenced like this:
<PackageReference Include="MyPackage" Version="1.0.0-beta01" PrivateAssets="None" />
When I switch-to-projects
and switch-to-packages
, the PrivateAssets
part is dropped.
Would it be possible to save such properties?
Makes sense to keep it in this config file so that the restore (switch-to-packages) reverts the csproj as it was before.
Any news about this issue ? I currently also have basicly a similar Problem with
<PackageReference Include="MyPackage" Version="1.0.0" IncludeAssets="compile" />
IMHO every additional XML Attribute should be preserved and restored after switch back to packages
Thank you :-)
Hi
I've faced the same issue with <ExcludeAssets>...</ExcludeAssets>
sub-node of PackageReference
node.
Once I do switch-to-projects
and then go back with switch-to-packages
the ExcludeAssets
node disappears.
As a result I have to add it back manually, that might be time consuming.