Issue building with Windows Desktop 6.0.2
See original GitHub issueAfter updating to 6.0.2 you may experience issues running WPF apps built against 6.0.2 on 6.0.0 or 6.0.1 runtime with the following error.
CoreCLR Version: 6.0.121.56705
.NET Version: 6.0.1
Description: The process was terminated due to an unhandled exception.
Exception Info: System.IO.FileLoadException: Could not load file or assembly 'PresentationFramework, Version=6.0.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. The located assembly's manifest definition does not match the assembly reference. (0x80131040)
File name: 'PresentationFramework, Version=6.0.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
For an available workaround please refer to https://github.com/dotnet/core/issues/7176.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:6
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Issue building with Windows Desktop 6.0.2 #7176
We are aware of an issue where some customers are unable to run Windows Forms apps built against 6.0.2. This appears as a...
Read more >NET 6.0 Known Issues
1 and 6.0.2 are security releases, and customers are encouraged to update to the latest version. Issues building WPF application with Windows Desktop...
Read more >Started to get "This project is targeting a version of .NET ...
No problems, I've been able to continue working on the project, ... App 6.0.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Read more >Download .NET 6.0 (Linux, macOS, and Windows)
NET 6.0 downloads for Linux, macOS, and Windows. ... Build apps - SDK ... NET Desktop Runtime enables you to run existing Windows...
Read more >NETSDK1045: The current .NET SDK does not support ...
Open the Solution Properties window (ctrl-click the solution in the Solution window and select Properties), select Build - General, and uncheck ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
6.0.3 has been released today, please consider updating. Also check https://github.com/dotnet/core/issues/7176 for suggested workarounds.
Thank you FG-rgb
After several weeks trying to solve this problem with the other suggestions your workaround works fine for me using a global.json and version 6.0.103.
I am using WPF, .NET 6.0.3, .NET SDK 6.0.201.