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.

UWP does not work when Targeting Windows build 10240

See original GitHub issue

I have upgraded to the Latest version of Rg.popup V1.1.3.73-pre and my UWP has a target version and min version of Windows 10 build 10240

I then run my program on UWP and I start to get this error:

“System.IO.FileLoadException: Could not load file or assembly ‘System.Runtime.WindowsRuntime, Version=4.0.14.0, Culture=neutral, PublicKeyToken=b77a5c561934e089’. The located assembly’s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)\r\n”

After digging around the internet the only mention of this version of the library I can find is here: https://github.com/dotnet/docs/issues/3644#issuecomment-343339458

Which states:

The update was only was published as part of Microsoft.NETCore.UniversalWindowsPlatform and you have to target Fall Creator’s Update or higher for the APIs I have listed above. That gets you the following version of the assembly (4.0.3.0 is the latest standalone):

System.Runtime.WindowsRuntime, Version=4.0.14.0, Culture=neutral, PublicKeyToken=b77a5c561934e089

So essentially I think by using API’s from this latest version of the library it means that the minimum you can support is Fall Creators update

2 solutions:

  1. take the code that is using the latest API out of the plugin
  2. Microsoft release V4.0.14 as a seperate nuget (this would be the best solution as I would imagine there are probably other people / plugins that will be hitting this error pretty soon)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:11 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
JKennedy24commented, Jan 30, 2018

@EmilAlipiev I am using .Net Standard 1.4. The only reason is because I am sharing this library with an old .Net Framework 4.5 project.

If you push your project to .Net Standard 2.0 you are forced to use Creators Fall Update

If you use .Net Standard 1.6. you can support Windows 10 10240 as a minimum.

The only reason I want to support the min version of Windows 10 is so I can say to my clients “it will work on any windows 10 machine” and don’t have to follow it up with (only if its fully up to date)

Hope that clarifies

1reaction
EP01commented, Jan 30, 2018

Just wanted to say thanks for fixing this @rotorgames! Much appreciated!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to Run UWP project - Developer Community
Hi, I just updated to 16.4.0 and I am unable to run my UWP project that targets windows 10 16299. I get Could...
Read more >
Choose a UWP version - UWP applications
When writing a UWP app in Microsoft Visual Studio, you can choose which version to target. Learn about the difference between different UWP...
Read more >
Manual: UWP build settings
10240.0 or higher for building UWP apps, and doesn't support Windows 8/8.1 SDKs. Minimum Platform Version, Select the minimum Windows 10 release version ......
Read more >
Windows Store Build Errors: SDK Universal 10
I am developing on a windows 10 machine, I have the Universal SDK installed ... Yes, I can build a UWP apps no...
Read more >
Which Windows 10 version should I target?
Always target the initial release (SDK 10240) so everyone having Windows 10 installed can use your app. Downside: you can't use the latest...
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