.NETコアアプリケーションの開発により、本当に不満を募らせ始めています。TFS 2015ビルドで.NETコアを構築できません
私たちはすべての.NETコアプロジェクトを収集したソリューション/リポジトリを持っていますが、Visual Studio 2015をローカルで構築するためにローカルでうまく動作しますが、CIビルドやその他のビルドをセットアップしようとすると、私たちは常にバックに取得
エラーは、我々は運と前dotnet restore
を実行している悪名高い"GETSDKTOOLINGINFO(0,0): Error : The project is configured to use .NET Core SDK version 1.0.0-preview2-1-003177 which is not installed or cannot be found."
です。多かれ少なかれ、すべてを試しました。
そしてここで迷惑な部分と、実際に問題が来る:
我々はビルドコマンドをコピーして、通常のコマンドプロンプトでビルドエージェントサーバー上でローカルで実行した場合、それはエラーなしで、うまく動作します
たとえば、このコマンド:"C:\Program Files (x86)\MSBuild\14.0\bin\amd64\msbuild.exe" "D:\_work\11\s\core.sln" /nologo /m /nr:false /fl /flp:"logfile=D:\_work\11\s\core.sln.log" /dl:CentralLogger,"D:\agent\worker\Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll"*ForwardingLogger,"D:\agent\worker\Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll"
TFSのビルドを介して動作しません。
このコマンドは、ビルドエージェントマシンでローカルに動作します。
編集1:以下の画面は特別なビルドステップを使用していないことを示しています。私たちは "msbuild build step"に変わり、同じ結果を出しました。
EDIT 2:この問題を持っていたし、それを渡す持っている
2017-02-23T08:24:34.3679600Z Starting task: Build solution
2017-02-23T08:24:34.4304594Z Executing the powershell script: D:\tasks\VSBuild\1.0.16\VSBuild.ps1
2017-02-23T08:24:34.6335861Z D:\agent\worker\tools\NuGet.exe restore "D:\_work\5\s\ServiceFabric.Frontend.sln" -NonInteractive
2017-02-23T08:24:35.0085872Z MSBuild auto-detection: using msbuild version '14.0' from 'C:\Program Files (x86)\MSBuild\14.0\bin'.
2017-02-23T08:24:35.1335875Z Restoring NuGet package Microsoft.VisualStudio.Azure.Fabric.MSBuild.1.4.0.
2017-02-23T08:24:35.4054303Z Adding package 'Microsoft.VisualStudio.Azure.Fabric.MSBuild.1.4.0' to folder 'D:\_work\5\s\packages'
2017-02-23T08:24:35.7960574Z Added package 'Microsoft.VisualStudio.Azure.Fabric.MSBuild.1.4.0' to folder 'D:\_work\5\s\packages'
2017-02-23T08:24:35.8273065Z C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe "D:\_work\5\s\ServiceFabric.Frontend.sln" /nologo /m /nr:false /t:"Clean" /fl /flp:"logfile=D:\_work\5\s\ServiceFabric.Frontend.sln-clean.log" /dl:CentralLogger,"D:\agent\worker\Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll"*ForwardingLogger,"D:\agent\worker\Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll" /p:platform="x64" /p:configuration="release" /p:VisualStudioVersion="14.0"
2017-02-23T08:24:35.9210571Z Build started 2017-02-23 09:24:35.
2017-02-23T08:24:35.9523075Z 1>Project "D:\_work\5\s\ServiceFabric.Frontend.sln" on node 1 (Clean target(s)).
2017-02-23T08:24:35.9523075Z 1>ValidateSolutionConfiguration:
2017-02-23T08:24:35.9523075Z Building solution configuration "release|x64".
2017-02-23T08:24:36.0148080Z 1>Project "D:\_work\5\s\ServiceFabric.Frontend.sln" (1) is building "D:\_work\5\s\Common\Log\Log.xproj" (2) on node 1 (Clean target(s)).
2017-02-23T08:24:36.0148080Z 2>CoreClean:
2017-02-23T08:24:36.0148080Z Creating directory ".\obj\Release\".
2017-02-23T08:24:36.0148080Z 2>Done Building Project "D:\_work\5\s\Common\Log\Log.xproj" (Clean target(s)).
2017-02-23T08:24:36.2648091Z 1>Project "D:\_work\5\s\ServiceFabric.Frontend.sln" (1) is building "D:\_work\5\s\ServiceFabric\Clients\FronEnd.sfproj" (5) on node 4 (Clean target(s)).
2017-02-23T08:24:36.2648091Z 5>CoreClean:
2017-02-23T08:24:36.2648091Z Creating directory "obj\x64\Release\".
2017-02-23T08:24:36.3116863Z 5>Project "D:\_work\5\s\ServiceFabric\Clients\FronEnd.sfproj" (5) is building "D:\_work\5\s\ServiceFabric\Clients\Portal.xproj" (6) on node 1 (Clean target(s)).
2017-02-23T08:24:36.3116863Z 6>CoreClean:
2017-02-23T08:24:36.3116863Z Creating directory ".\obj\Release\".
2017-02-23T08:24:36.3585616Z PreComputeCompileTypeScript:
2017-02-23T08:24:36.3585616Z C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.8\tsc.exe --noEmitOnError
2017-02-23T08:24:36.3585616Z 6>Done Building Project "D:\_work\5\s\ServiceFabric\Clients\Portal.xproj" (Clean target(s)).
2017-02-23T08:24:36.3585616Z 5>Done Building Project "D:\_work\5\s\ServiceFabric\Clients\FronEnd.sfproj" (Clean target(s)).
2017-02-23T08:24:36.3898104Z 1>Project "D:\_work\5\s\ServiceFabric.Frontend.sln" (1) is building "D:\_work\5\s\Common\Core\Core.xproj.metaproj" (8) on node 1 (Clean target(s)).
2017-02-23T08:24:36.3898104Z 8>Project "D:\_work\5\s\Common\Core\Core.xproj.metaproj" (8) is building "D:\_work\5\s\Common\Core\Core.xproj" (9) on node 2 (Clean target(s)).
2017-02-23T08:24:36.3898104Z 9>CoreClean:
2017-02-23T08:24:36.3898104Z Creating directory ".\obj\Release\".
2017-02-23T08:24:36.3898104Z 9>Done Building Project "D:\_work\5\s\Common\Core\Core.xproj" (Clean target(s)).
2017-02-23T08:24:36.3898104Z 8>Done Building Project "D:\_work\5\s\Common\Core\Core.xproj.metaproj" (Clean target(s)).
2017-02-23T08:24:36.3898104Z 1>Done Building Project "D:\_work\5\s\ServiceFabric.Frontend.sln" (Clean target(s)).
2017-02-23T08:24:36.3898104Z Build succeeded.
2017-02-23T08:24:36.3898104Z 0 Warning(s)
2017-02-23T08:24:36.3898104Z 0 Error(s)
2017-02-23T08:24:36.3898104Z Time Elapsed 00:00:00.46
2017-02-23T08:24:36.4054367Z C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe "D:\_work\5\s\ServiceFabric.Frontend.sln" /nologo /m /nr:false /fl /flp:"logfile=D:\_work\5\s\ServiceFabric.Frontend.sln.log" /dl:CentralLogger,"D:\agent\worker\Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll"*ForwardingLogger,"D:\agent\worker\Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll" /p:platform="x64" /p:configuration="release" /p:VisualStudioVersion="14.0"
2017-02-23T08:24:36.4835619Z Build started 2017-02-23 09:24:36.
2017-02-23T08:24:36.4991873Z 1>Project "D:\_work\5\s\ServiceFabric.Frontend.sln" on node 1 (default targets).
2017-02-23T08:24:36.4991873Z 1>ValidateSolutionConfiguration:
2017-02-23T08:24:36.4991873Z Building solution configuration "release|x64".
2017-02-23T08:24:36.5460612Z 1>Project "D:\_work\5\s\ServiceFabric.Frontend.sln" (1) is building "D:\_work\5\s\ServiceFabric\Clients\FronEnd.sfproj" (2) on node 1 (default targets).
2017-02-23T08:24:36.5460612Z 2>PrepareForBuild:
2017-02-23T08:24:36.5460612Z Creating directory "bin\Release\".
2017-02-23T08:24:36.8273147Z 2>Project "D:\_work\5\s\ServiceFabric\Clients\FronEnd.sfproj" (2) is building "D:\_work\5\s\ServiceFabric\Clients\Portal.xproj" (3) on node 1 (default targets).
2017-02-23T08:24:36.8273147Z 3>PrepareForBuild:
2017-02-23T08:24:36.8273147Z Creating directory ".\bin\".
2017-02-23T08:24:36.8273147Z PreComputeCompileTypeScript:
2017-02-23T08:24:36.8273147Z C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.8\tsc.exe --noEmitOnError
2017-02-23T08:24:36.8273147Z CompileTypeScript:
2017-02-23T08:24:36.8273147Z C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.8\tsc.exe --noEmitOnError
2017-02-23T08:24:36.8429390Z ##[error]GETSDKTOOLINGINFO(0,0): Error : The .NET Core SDK is not installed or cannot be found. These components are required to build and run this project.
2017-02-23T08:24:36.8429390Z 3>GETSDKTOOLINGINFO : error : The .NET Core SDK is not installed or cannot be found. These components are required to build and run this project. [D:\_work\5\s\ServiceFabric\Clients\Portal.xproj]
2017-02-23T08:24:36.8429390Z 1>Project "D:\_work\5\s\ServiceFabric.Frontend.sln" (1) is building "D:\_work\5\s\Common\Configuration.Core\Configuration.Core.xproj" (5) on node 2 (default targets).
2017-02-23T08:24:36.8429390Z 5>PrepareForBuild:
2017-02-23T08:24:36.8429390Z Creating directory ".\bin\".
2017-02-23T08:24:36.8429390Z 3>Done Building Project "D:\_work\5\s\ServiceFabric\Clients\Portal.xproj" (default targets) -- FAILED.
2017-02-23T08:24:36.8429390Z 2>Done Building Project "D:\_work\5\s\ServiceFabric\Clients\FronEnd.sfproj" (default targets) -- FAILED.
2017-02-23T08:24:36.8585648Z 5>Project "D:\_work\5\s\Common\Configuration.Core\Configuration.Core.xproj" (5) is building "D:\_work\5\s\Common\Core\Core.xproj" (7) on node 2 (default targets).
2017-02-23T08:24:36.8585648Z 7>PrepareForBuild:
2017-02-23T08:24:36.8585648Z Creating directory ".\bin\".
2017-02-23T08:24:36.8898141Z 1>Project "D:\_work\5\s\ServiceFabric.Frontend.sln" (1) is building "D:\_work\5\s\Common\Log\Log.xproj" (6) on node 4 (default targets).
2017-02-23T08:24:36.8898141Z 6>PrepareForBuild:
2017-02-23T08:24:36.8898141Z Creating directory ".\bin\".
2017-02-23T08:24:36.9054497Z ##[error]GETSDKTOOLINGINFO(0,0): Error : The .NET Core SDK is not installed or cannot be found. These components are required to build and run this project.
2017-02-23T08:24:36.9054497Z 6>GETSDKTOOLINGINFO : error : The .NET Core SDK is not installed or cannot be found. These components are required to build and run this project. [D:\_work\5\s\Common\Log\Log.xproj]
2017-02-23T08:24:36.9054497Z 6>Done Building Project "D:\_work\5\s\Common\Log\Log.xproj" (default targets) -- FAILED.
2017-02-23T08:24:36.9054497Z 7>Done Building Project "D:\_work\5\s\Common\Core\Core.xproj" (default targets) -- FAILED.
2017-02-23T08:24:36.9210662Z 1>Done Building Project "D:\_work\5\s\ServiceFabric.Frontend.sln" (default targets) -- FAILED.
2017-02-23T08:24:36.9210662Z Build FAILED.
2017-02-23T08:24:36.9210662Z "D:\_work\5\s\ServiceFabric.Frontend.sln" (default target) (1) ->
2017-02-23T08:24:36.9210662Z "D:\_work\5\s\ServiceFabric\Clients\FronEnd.sfproj" (default target) (2) ->
2017-02-23T08:24:36.9210662Z "D:\_work\5\s\ServiceFabric\Clients\Portal.xproj" (default target) (3) ->
2017-02-23T08:24:36.9210662Z (GetSDKToolingInfoTarget target) ->
2017-02-23T08:24:36.9210662Z GETSDKTOOLINGINFO : error : The .NET Core SDK is not installed or cannot be found. These components are required to build and run this project. [D:\_work\5\s\ServiceFabric\Clients\Portal.xproj]
2017-02-23T08:24:36.9210662Z "D:\_work\5\s\ServiceFabric.Frontend.sln" (default target) (1) ->
2017-02-23T08:24:36.9210662Z "D:\_work\5\s\Common\Log\Log.xproj" (default target) (6) ->
2017-02-23T08:24:36.9210662Z GETSDKTOOLINGINFO : error : The .NET Core SDK is not installed or cannot be found. These components are required to build and run this project. [D:\_work\5\s\Common\Log\Log.xproj]
2017-02-23T08:24:36.9210662Z 0 Warning(s)
2017-02-23T08:24:36.9210662Z 2 Error(s)
2017-02-23T08:24:36.9210662Z Time Elapsed 00:00:00.43
2017-02-23T08:24:36.9366903Z ##[error]Unexpected exit code received from msbuild.exe: 1
2017-02-23T08:24:36.9679398Z Finishing task: VSBuild
2017-02-23T08:24:36.9835654Z ##[error]Task VSBuild failed. This caused the job to fail. Look at the logs for the task for more details.
誰でもログイン?
私たちは基本的に気が張り付きました!
ありがとうございます!
TFSビルドエージェントに.net core SDKをインストールする必要があります。 – Venky
@Venky - 私たちはTeamCityを運営していないため、TFSを運用しています。そして答える前に投稿を読んでください... –
あなたはちょっとだけ待つ必要があります。 Microsoftが正式に.NET Core SDK 1.0をリリースした3月7日、ベンダーは.NETコアプロジェクトの構築に何らかのサポートを提供できるはずです。プレビュー2。あなたが使用している1は本当に時代遅れです。 –