在使用jenkins的ms build进行构建时,iam出现以下错误,但是我遇到了以下错误...请为此提供帮助
16:41:38 Project "c:\Jenkins\workspace\DeployMetaWrapper\Launcher\MetaWrapper\MetaWrapper.sln" (1) is building "c:\Jenkins\workspace\DeployMetaWrapper\Launcher\MetaWrapper\NetworkFileCopier\NetworkFileCopier.csproj" (10) on node 1 (default targets).
16:41:38 c:\Jenkins\workspace\DeployMetaWrapper\Launcher\MetaWrapper\NetworkFileCopier\NetworkFileCopier.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
16:41:38 Done Building Project "c:\Jenkins\workspace\DeployMetaWrapper\Launcher\MetaWrapper\NetworkFileCopier\NetworkFileCopier.csproj" (default targets) -- FAILED.
16:41:38 Done Building Project "c:\Jenkins\workspace\DeployMetaWrapper\Launcher\MetaWrapper\MetaWrapper.sln" (default targets) -- FAILED.
16:41:38
16:41:38 Build FAILED.
16:41:38
16:41:38 c:\Jenkins\workspace\DeployMetaWrapper\Launcher\MetaWrapper\MetaWrapper\MetaWrapper.csproj : error : Version 3.0.100 of the .NET Core SDK requires at least version 16.3.0 of MSBuild. The current available version of MSBuild is 15.9.21.664. Change the .NET Core SDK specified in global.json to an older version that requires the MSBuild version currently available.
16:41:38
16:41:38
16:41:38 "c:\Jenkins\workspace\DeployMetaWrapper\Launcher\MetaWrapper\MetaWrapper.sln" (default target) (1) ->
16:41:38 "c:\Jenkins\workspace\DeployMetaWrapper\Launcher\MetaWrapper\MetaWrapper\MetaWrapper.csproj" (default target) (2) ->
16:41:38 c:\Jenkins\workspace\DeployMetaWrapper\Launcher\MetaWrapper\MetaWrapper\MetaWrapper.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
16:41:38
16:41:38
16:41:38 "c:\Jenkins\workspace\DeployMetaWrapper\Launcher\MetaWrapper\MetaWrapper.sln" (default target) (1) ->
16:41:38 "c:\Jenkins\workspace\DeployMetaWrapper\Launcher\MetaWrapper\NetworkFileCopier\NetworkFileCopier.csproj" (default target) (10) ->
16:41:38 c:\Jenkins\workspace\DeployMetaWrapper\Launcher\MetaWrapper\NetworkFileCopier\NetworkFileCopier.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
16:41:38
16:41:38 0 Warning(s)
16:41:38 3 Error(s)
16:41:38
16:41:38 Time Elapsed 00:00:01.35
16:41:38 Build step 'Build a Visual Studio project or solution using MSBuild' marked build as failure
16:41:39 Finished: FAILURE
答案 0 :(得分:0)
根据错误消息,似乎计算机上未安装.Net Core SDK