5

我已经安装了最新版本的 JetBrains Rider 1 EAP 并使用 VS2015 创建的 project.json 打开 .NetCore 项目,我已经成功加载,但是当创建新的 .NetCore Web 项目或添加新的 .NetCore 类库时使用旧的 .csproj项目与 project.json 库加载失败

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

我还安装了 Microsoft 的 .NetCore SDK 和运行

4

3 回答 3

1

安装最新的 Mono 后,您需要从源代码构建 MSbuild。

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

./cibuild.sh --target CoreCLR
于 2017-04-06T02:30:10.143 回答
1

我发现我需要从 VS 2017安装构建工具。

请注意,在我这样做之后,我收到另一个错误,详细信息如下:https ://youtrack.jetbrains.com/issue/RIDER-6179

于 2017-05-08T23:08:47.377 回答
0

我在 Ubuntu 上遇到了这个问题,试图构建一个 .NET Core 应用程序。

我找到了这些说明: https ://github.com/microsoft/msbuild/blob/master/documentation/wiki/Building-Testing-and-Debugging-on-.Net-Core-MSBuild.md

这基本上让我:

  • 在本地克隆 msbuild 存储库:

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

  • 使用“bootstrap = true”模式构建它:

    ./build.sh /p:CreateBootstrap=true

  • 在 Rider 中,将引用的 MsBuild 指向一个“自定义”:

    1. 文件 -> 设置 -> 构建、执行、部署 -> 工具集和构建
    2. 在“使用 MSBuild 版本”下,选择“自定义”
    3. 指向{cloned msbuild}/artifacts/bin/bootstrap/netcoreapp2.1/MSBuild/MSBuild.dll
    4. 节省

然后骑手更开心了:)

于 2019-06-13T16:57:50.893 回答