小编Lui*_*aia的帖子

MSBUILD抛出错误:找不到指定的SDK"Microsoft.NET.Sdk"

我正在尝试使用msbuild命令行构建解决方案,并且我不断收到此错误:

error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.

msbuild的版本是microsoft visual studio 2017工具的最新版本.我正在使用Windows Server 2012 R2,该项目使用.NET Core 2.0.

这是我正在使用的命令:

msbuild.exe /p:Configuration=Release /t:restore C:\Projects\MyProject.sln

完整日志:

    Microsoft (R) Build Engine version 15.3.409.57025 for .NET Framework
    Copyright (C) Microsoft Corporation. All rights reserved.

    Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
    Build started 9/16/2017 3:09:03 PM.
    Project "C:\Projects\MyProject.sln" on node 1 (restore target(s)).
    ValidateSolutionConfiguration:
      Building solution configuration "Release|Any CPU".
    Project …
Run Code Online (Sandbox Code Playgroud)

.net c# msbuild .net-core

27
推荐指数
6
解决办法
1万
查看次数

标签 统计

.net ×1

.net-core ×1

c# ×1

msbuild ×1