When referencing a package with developmentDependency set and explicitly changing the <PrivateAssets> and <IncludeAssets> lines, on an update to the package, the changes are overwritten with the defaults for a development dependency.
Include the Microsoft.EntityFrameworkCore.Design package, normally a development dependency
Modify the <PackageReference> in the project's csproj file to the following:
NuGet Product Used
Visual Studio Package Management UI
Product Version
VS 17.2.6, NuGet 6.2.1
Worked before?
No
Impact
It's more difficult to complete my work
Repro Steps & Context
Edit: Video of issue: https://youtu.be/axtNPpq9_OE
When referencing a package with
developmentDependency
set and explicitly changing the<PrivateAssets>
and<IncludeAssets>
lines, on an update to the package, the changes are overwritten with the defaults for a development dependency.Microsoft.EntityFrameworkCore.Design
package, normally a development dependency<PackageReference>
in the project'scsproj
file to the following:6.0.9
Expected Behavior:
Only the version is incremented and the custom
<PrivateAssets>
and<IncludeAssets>
statements are not overridden.Verbose Logs
Logs are from VS's package manager output