Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

475
Views
Is the .NET SDK not backwards compatible with older runtimes?

We have installed .NET desktop runtime 6.0.1 on our machines. Building happens in a docker container with an image built on mcr.microsoft.com/dotnet/sdk:6.0-windowsservercore-ltsc2022, which was apparently updated to SDK 6.0.102. Now our app will crash at startup saying

Unhandled exception. 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)

Local builds work just fine, I have SDK 6.0.101 installed.

The target framework in the project is defined as

<TargetFramework>net6.0-windows</TargetFramework>

so I thought it should run on any .NET 6.0, not only on 6.0.2, no matter with which SDK it's built. According to MS Docs it should even run on 6.1 by default, unless a different <RollForward> policy is defined.

What are we missing?

Edit: It must be something with WPF, because console applications built on that container work just fine...

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

This seems to be a known bug in .net 6.0.2

see: https://github.com/dotnet/core/issues/7172#issuecomment-1034105137

for a workaround you could try this: https://github.com/dotnet/winforms/issues/6663#issuecomment-1034371295

Or just use the sdk:6.0.101-windowsservercore-ltsc2022 image till a fixed version is released

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!