2016-10-02 184 views
1

我正在嘗試爲新的ASPNET Core web應用程序設置構建定義。Visual Studio Team Services ASPNET CORE構建失敗

構建定義的設置是正是這一點: Official Docs

構建在構建解決方案與此錯誤失敗:

Issues 
Build 

File name doesn't indicate a full path to a executable file. 

GETSDKTOOLINGINFO (0, 0) 
The project is configured to use .NET Core SDK version 1.0.0-preview2-003131 which is not installed or cannot be found under the path C:\Program Files\dotnet. These components are required to build and run this project. Download the version of .NET Core SDK specified in global.json or update the SDK version in global.json to the version that is installed. 

Process 'msbuild.exe' exited with code '1'. 

上的任何猜測如何解決這個問題? 謝謝 Francesco

+0

你解決這個問題,我的解決方案? –

+0

如果我們的解決方案解決了您的問題,您可以將其標記爲答案。 –

回答

1

您需要安裝相應版本的.Net SDK來構建代理機器。

您可以參考this文章下載.Net Core 1.0.0-preview2-003131並將其安裝到您的構建機器上。

+0

網址被破壞了,所以我更新了它 –

+0

@CiaranBruen謝謝。 –

0

假設您使用的是託管構建代理。據Software on the hosted build server,託管生成服務器部署有以下.NET框架:

  • .NET 4.6
  • .NET 4.5.2
  • .NET 4.5.1
  • .NET 4.5
  • .NET 3.5 SP1
  • .NET核心1.0預覽2工裝

你可以嘗試d eploy一個本地構建代理,並安裝.NET Core 1.0.1 SDK 1.0.0-preview2-003131與VSTS一起工作:https://www.visualstudio.com/en-us/docs/build/admin/index#deploy_agent

如果你堅持使用託管生成代理,那麼你需要使用安裝在VSTS Microsoft.NETCore.App的版本,例如:

"dependencies": { 
    "Microsoft.NETCore.App": { 
     "version": "1.0.0-rc2-3002702", 
     "type": "platform" 
    }, 
0

對我來說,這只是一個變化在global.config:

{ 
    "projects": [ "src", "test" ], 
    "sdk": { 
    "version": "1.0.0-preview2-003121" 
    } 
} 

只要1.0.0-preview2-003131不適用於VSO建立主機

相關問題