Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rider was unable to detect MSBuild #36

Open
kostat opened this issue Oct 18, 2021 · 6 comments
Open

Rider was unable to detect MSBuild #36

kostat opened this issue Oct 18, 2021 · 6 comments

Comments

@kostat
Copy link

kostat commented Oct 18, 2021

18/10/2021
12:09 Rider was unable to detect MSBuild
If you think this is an error, please specify a path to MSBuild in Rider settings.
Alternatively, to develop .NET applications, install install .NET Core or Mono.


This is where the files are located when running Rider installed with snap:

image

The flatpak sandbox does not have access there

@ZagButNoZig
Copy link
Contributor

Rider has the host filesystem sandbox permission. This permission allows it to access the whole file system except some blacklisted ones, which also includes /usr where dotnet is located but /usris mounted under /var/run/host/usr. So in order to solve this problem you need to set the executable path to /var/run/host/usr/share/dotnet.

@mfilippov
Copy link

I added support .net and mono detection in /var/run/host. It will available in Rider 2022.1.

@DFSko
Copy link

DFSko commented Jun 14, 2022

In Fedora dotnet located in /usr/lib64/dotnet
After adding /var/run/host/usr/lib64/dotnet to .Net CLI executable path SDK and MSBuild found but i have this error:

MSBuild process was started from '/var/run/host/lib64/dotnet/sdk/6.0.105/MSBuild.dll', but IDE failed to connect to it. It means MSBuild crashed or froze during startup.

image
image

@mfilippov
Copy link

Thanks for the update. I will take a look on .NET SDK detection.

@Frankwayne
Copy link

I'm on WSL2 and I don't have a

/var/run/host

folder. I'm trying to set up remote development on WSL2.

@Frankwayne
Copy link

apparently the dotnet-runtime does not get installed with the aspnet core runtime

dotnet/sdk#38794 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants