Rider v2022.3 (on Macbook M1) not running .net v3.1 project

Just upgraded this morning, and now when running a .net v3.1 MVC project or unit tests I get the error "You must install or update .NET to run this application." This worked fine with the previous version of Rider.

I was able to get unit tests to run by changing the Unit Testing / Default platform architecture from "automatic" to "x86".

I can run the application by setting the environment variable DOTNET_ROLL_FORWARD = "Major" but this is not an ideal solution.

It appears that when running it is only seeing versions installed to /usr/local/share/dotnet and ignoring /usr/local/share/dotnet/x64. 

As this application ran fine "out of the box" with the previous version of Rider, what can I do to get back to that? 

0
2 comments

This issue looks to be related to this net7.0 breaking change: https://learn.microsoft.com/en-us/dotnet/core/compatibility/deployment/7.0/multilevel-lookup

To resolve, I ended up taking the brute force approach...

- backed up and then deleted the /usr/local/share/dotnet folder
- installed the .net 3.1 SDK (which by default went to /usr/local/share/dotnet/x64)
- manually copied the contents of /usr/local/share/dotnet/x64 to /usr/local/share/dotnet
- then my .net 3.1 solution would work as expected
- unfortunately after installing the .net6.0 ARM64 SDK, things are broken again...



0

Please sign in to leave a comment.