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.

Build fail on windows 11 after .NET 5.0 update (Unoffical 4.x works, All deps including .NET 5.0 is installed.)

See original GitHub issue

Have you checked Github Issues for similar errors? Yes

Exception

The process failed to execute!
Error: 
CSC : error CS1705: Assembly 'IL2CPU.Debug.Symbols' with identity 'IL2CPU.Debug.Symbols, Version=10.0.0.0, Culture=neutral, PublicKeyToken=d73cc016e472ae16' uses 'System.Runtime, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Runtime' with identity 'System.Runtime, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' [C:\Users\Malte0621\Downloads\build\Cosmos\source\Cosmos.VS.DebugEngine\Cosmos.VS.DebugEngine.csproj]

VS Output Logs https://pastebin.com/raw/2j3xvHQX

To Reproduce Attempt to build the project using install-VS2019.bat on windows 11, with .NET 5.0 and all deps installed. (All repos cloned, everything setup as told)

Screenshots image

Context Before posting please confirm that the following are in order [ x ] Both Cosmos VS Extensions are installed [ x ] In the NuGet Package Manager “Include prerelease” is selected [ x ] The Cosmos NuGet package store is selected (NOT nuget.org) in ‘Manage NuGet Packages’ [ x ] The Cosmos NuGet packages are installed

Add any other context about the problem which might be helpful. Only occuress after .NET 5.0 upgrade, unofficial 4.x ones I used compiles without problem. (I have .NET 5.0 SDK and Runtime installed.) I am however on windows 11.

Unoffical Ones I used: https://github.com/xccoreco

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
KM198912commented, Nov 19, 2021

restart the install bat with admin permissions

0reactions
TaromaruYukicommented, Nov 25, 2021

Can you please run msbuild -restore Build.sln /bl from a devenv console and upload the created log file and report any errors thrown. Then please repeat the process for msbuild -restore Build.sln /bl /property:Net48=True.

This does work, for me at least. Running the two commands, not as admin, then opening install-VS2019.bat as admin. Even if errors are listed in the two commands. Cloned the 4 repo’s today.

I am on Windows 11, version 21H2, build 22000.318. 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Windows Update keeps trying to install unneeded .NET ...
Windows Update keeps trying to install unneeded . NET updates — and - Microsoft Community.
Read more >
Troubleshoot .NET Framework targeting errors
To resolve the error, make sure that your application targets a .NET version that's compatible with the version that's targeted by the projects ......
Read more >
Fix .NET Framework 'This application could not be started'
.NET Framework 4.8 is preinstalled on Windows 11 and Windows 10 May 2019 Update and later versions. Attempt to launch the application.
Read more >
Install .NET on Windows
In this article, you'll learn how to install .NET on Windows. .NET is made up of the runtime and the SDK. The runtime...
Read more >
Started to get "This project is targeting a version of .NET ...
1). In VS Installer > Individual components tab > check if components like .NET 5.0 Runtime or related components are checked. If it/they...
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