question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issue building with Windows Desktop 6.0.2

See original GitHub issue

After 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:closed
  • Created 2 years ago
  • Reactions:6
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
RussKiecommented, Mar 9, 2022

6.0.3 has been released today, please consider updating. Also check https://github.com/dotnet/core/issues/7176 for suggested workarounds.

0reactions
RaulFunezpcommented, Mar 15, 2022

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.

Me too. A helping workaround is using a global.json in solution dir:

{ “sdk”: { “version”: “6.0.100”, “rollForward”: “disable” } }

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found