You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I add the SDK Microsoft.NET.Sdk.Publish to a .NET Windows WPF project which references a NuGet package (e.g. Microsoft.EntityFrameworkCore), the file obj\project.assets.json is removed after running dotnet build --no-incremental. The same happens after a rebuild in Visual Studio.
If you delete MainWindow.xaml the issue does not occur anymore. If you add a new Window/Page/UserControl it appears again.
My expectation is that the project.assets.json file stays there and does not get deleted.
This affects .NET 8.0 as well as 9.0.
To Reproduce
Create a new WPF Application, add the Microsoft.NET.Sdk.Publish SDK and reference any NuGet package (e.g. Microsoft.EntityFrameworkCore).
Describe the bug
If I add the SDK
Microsoft.NET.Sdk.Publish
to a .NET Windows WPF project which references a NuGet package (e.g.Microsoft.EntityFrameworkCore
), the fileobj\project.assets.json
is removed after runningdotnet build --no-incremental
. The same happens after a rebuild in Visual Studio.If you delete
MainWindow.xaml
the issue does not occur anymore. If you add a new Window/Page/UserControl it appears again.My expectation is that the
project.assets.json
file stays there and does not get deleted.This affects .NET 8.0 as well as 9.0.
To Reproduce
Create a new WPF Application, add the
Microsoft.NET.Sdk.Publish
SDK and reference any NuGet package (e.g.Microsoft.EntityFrameworkCore
).Example *.csproj file
Further technical details
dotnet --info
Visual Studio 17.13.6
The text was updated successfully, but these errors were encountered: