2017-02-22 8 views
0

이제 .NET Core 응용 프로그램을 개발할 때 정말로 혼란스러워지고 있습니다.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 빌드 단계"로 변경되었습니다.

enter image description here

편집 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. 

누구 로그?

기본적으로 atm을 느낍니다.

미리 감사드립니다.

+0

TFS 빌드 에이전트에 .net 핵심 SDK를 설치해야합니다. – Venky

+0

@Venky - 우리는 TeamCity를 실행하지 않고 TFS를 실행하고 있습니다. 그리고 대답하기 전에 게시물을 읽어보십시오 ... –

+0

당신은 며칠 더 기다려야합니다. Microsoft가 공식적으로 .NET Core SDK 1.0을 릴리스 한 3 월 7 일, 공급 업체는 .NET Core SDK 1.0을 기반으로 .NET Core 프로젝트를 구축하는 데 대한 지원을 제공 할 수 있어야합니다. 미리보기 2.1 당신은 정말로 시대에 뒤 떨어진 것입니다. –

답변

1

이것은 출시 후 아무런 문제가 무엇인지 정확히 모르는 상태에서 미리보기 상태에 연결 한 것이므로 문제가되지 않습니다. 하지만 더 이상 잘못되었습니다 :)

0

Team Foundation Server (TFS) 빌드 정의에서 루틴을 복원, 빌드, 테스트, 압축 및 게시하기위한 명령 줄 빌드 단계를 추가합니다. (이들은 별도의 빌드 단계가 될 것이며 각 VS 프로젝트에 대해 테스트, 팩 및 게시가 필요할 것입니다.)

물론 이것은 TFS 빌드 에이전트에 설치된 dotnet cli 도구가 있다고 가정합니다.

기본적으로 빌드 서버의 dev 컴퓨터의 명령 줄에서 무엇을 할 것인지 모방합니다.

+0

나는 한 번 더 모든 것을 통과 할 것이다. 고마워. –