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
The wpfapp1.exe file cannot be run using cmd or by double clicking in File Explorer after publish wpf app using cmd "dotnet publish -r win-x64 -c Release --self-contained true /p:PublishTrimmed=true ".
Description
The wpfapp1.exe file cannot be run using cmd or by double clicking in File Explorer after publish wpf app using cmd "dotnet publish -r win-x64 -c Release --self-contained true /p:PublishTrimmed=true ".
Reproduction Steps
<_SuppressWpfTrimError>true</_SuppressWpfTrimError>
Expected behavior
Run wpfapp1.exe succssfully.
Actual behavior
The wpfapp1.exe file cannot be run using cmd or by double clicking in File Explorer. Event Viewer has the application error.
If using cmd "dotnet publish -r win-x64 -c Release --self-contained true" to publish, the .exe file can run successfully.
Regression?
This issue cannot repro in .NET 3.1.
Configuration
.NET SDK 9.0.100-preview.6.24320.9
OS: Win11 23H2 X64
The text was updated successfully, but these errors were encountered: