Unable to connect to MSBuild process to load project
Hello,
I'm using Rider to develop Aspnet core microservices. I use Msbuild 17.0 to build the solution. Everything was working fine until I opened my project yesterday and got the following error :"Unable to connect to MSBuild process to load project" for all of my microservices. The following message is also displayed: "MSBuild process was started from '/usr/share/dotnet/sdk/7.0.302/MSBuild.dll', but the IDE failed to connect to it. It means that MSBuild crashed or froze during startup. This error usually occurs because of invalid Mono. Try to update Mono Runtime. Current Mono: /usr/bin/mono-sgen Also MSBuild package must be installed." I tried to update Mono, but it seems like I have the latest version (6.12.0.182). I also tried to reinstall the dotnet sdk but I still get the same error.
Please sign in to leave a comment.
same for me
```
MSBuild process was started from '/usr/share/dotnet/sdk/7.0.302/MSBuild.dll', but the IDE failed to connect to it. It means that MSBuild crashed or froze during startup. This error usually occurs because of invalid Mono. Try updating Mono Runtime. Current Mono: /usr/bin/mono-sgen Also MSBuild package must be installed.
```
reinstalling .Net not helping
I finally managed to fix this issue by removing everything related to dotnet framework:
An then reinstalling according to the doc: https://learn.microsoft.com/en-us/dotnet/core/install/linux-ubuntu-2204
Now when I type:
I can see that the sdk and runtimes are installed correctly.
Hey Oleksii Bobyr,
Have you tried to reinstall dotnet framework as well?
Yeah, reinstalling as mentioned above worked. Scary is, tat it just stopped working without any action taken by me…. Microsoft is the answer I guess
If this issue is happening in MacOS,
- Reinstall MonoFramework
- Reinstall Dotnet framework.
Above two steps should do the trick.