Mohammad Javad
Mohammad Javad

Reputation: 584

.NetCore project loading failed in JetBrains Rider on windows

I have installed the latest version of JetBrains Rider 1 EAP and open .NetCore project with project.json that created by VS2015 , I have loading successfully , but when created new .NetCore web project or add new .NetCore class library with .csproj in old project with project.json that library loading failed

Project 'ClassLibrary' load failed: Cannot load the project with the current MSBuild toolset.
Please ensure MSBuild 15.0 is installed.

I have also installed the .NetCore SDK and runtime from microsoft

Upvotes: 6

Views: 9970

Answers (3)

Stachu
Stachu

Reputation: 5857

I faced this issue on Ubuntu, trying to build a .NET Core app.

I found these instructions: https://github.com/microsoft/msbuild/blob/master/documentation/wiki/Building-Testing-and-Debugging-on-.Net-Core-MSBuild.md

Which basically had me:

  • clone msbuild repo locally:

    git clone https://github.com/Microsoft/msbuild

  • build it with "bootstrap = true" mode on:

    ./build.sh /p:CreateBootstrap=true

  • In Rider, point the MsBuild referenced to a "custom" one:

    1. File -> Settings -> Build, Execution, Deployment -> Toolset and Build
    2. Under "Use MSBuild version," select "Custom"
    3. Point to the {cloned msbuild}/artifacts/bin/bootstrap/netcoreapp2.1/MSBuild/MSBuild.dll
    4. Save

And then Rider was happier :)

Upvotes: 1

jeffesp
jeffesp

Reputation: 337

I found that I needed to install the build tools from VS 2017.

Note that after I did that, I get another error which is detailed here: https://youtrack.jetbrains.com/issue/RIDER-6179

Upvotes: 1

Downhillski
Downhillski

Reputation: 2655

You need to build the MSbuild from source after install the latest Mono.

https://github.com/Microsoft/msbuild/wiki/Building-Testing-and-Debugging-on-.Net-Core-MSBuild

./cibuild.sh --target CoreCLR

Upvotes: 1

Related Questions