У меня есть проект фабрики данных в моем решении и теперь в процессе создания определения сборки.Build Azure Data Factory Project с использованием TFS Build Server 2013
Когда сервер сборки начинает строить решение, он дает исключение, говоря, что путь C:\Windows\ServiceProfiles\NetworkService\AppData\Roaming\Microsoft\DataFactory Tools for Visual Studio\MsBuild\1.0\DataFactory.targets
не найден. Я уже установил расширения на сервере сборки, но указанные выше файлы входят и находятся в моей папке AppData.
Как я могу построить проект фабрики данных с использованием определения сборки TFS?
PS> Я использую сервер TFS 2013, а Visual Studio Ultimate 2013 также установлен на сервере сборки.
EDIT
Даже когда я использую MSBuild из командной строки сборки завершается с ошибкой ниже
"C:\Builds\103\mysolutiion\BuildDefinition\src\DataFactory\AdfApp\AdfApp.dfproj" (default target) (1) ->
(JsonCompilerTarget target) ->
C:\Users\myusername\AppData\Roaming\Microsoft\DataFactory Tools for Visual Studio\MsBuild\1.0\DataFactory.targets(35,5): error MSB4018: The "ADFCompilerTask" task failed unexpectedly.\r [C:\Builds\103\mysolutiion\BuildDefinition\src\DataFactory\AdfApp\AdfApp.dfproj]
C:\Users\myusername\AppData\Roaming\Microsoft\DataFactory Tools for Visual Studio\MsBuild\1.0\DataFactory.targets(35,5): error MSB4018: System.AggregateException: One or more errors occurred. ---> System.ArgumentNullException: Value cannot be null.\r [C:\Builds\103\mysolutiion\BuildDefinition\src\DataFactory\AdfApp\AdfApp.dfproj]
C:\Users\myusername\AppData\Roaming\Microsoft\DataFactory Tools for Visual Studio\MsBuild\1.0\DataFactory.targets(35,5): error MSB4018: Parameter name: source\r [C:\Builds\103\mysolutiion\BuildDefinition\src\DataFactory\AdfApp\AdfApp.dfproj]
C:\Users\myusername\AppData\Roaming\Microsoft\DataFactory Tools for Visual Studio\MsBuild\1.0\DataFactory.targets(35,5): error MSB4018: at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source, Func`2 predicate)\r [C:\Builds\103\mysolutiion\BuildDefinition\src\DataFactory\AdfApp\AdfApp.dfproj]
C:\Users\myusername\AppData\Roaming\Microsoft\DataFactory Tools for Visual Studio\MsBuild\1.0\DataFactory.targets(35,5): error MSB4018: at Microsoft.VSAuthoring.SDK.Common.VSAuthoring.VersionCenter.GetDefault()\r [C:\Builds\103\mysolutiion\BuildDefinition\src\DataFactory\AdfApp\AdfApp.dfproj]
C:\Users\myusername\AppData\Roaming\Microsoft\DataFactory Tools for Visual Studio\MsBuild\1.0\DataFactory.targets(35,5): error MSB4018: at Microsoft.VSAuthoring.SDK.BuildSystem.JsonCompilerTask.get_ProjectVersion()\r [C:\Builds\103\mysolutiion\BuildDefinition\src\DataFactory\AdfApp\AdfApp.dfproj]
C:\Users\myusername\AppData\Roaming\Microsoft\DataFactory Tools for Visual Studio\MsBuild\1.0\DataFactory.targets(35,5): error MSB4018: at Microsoft.VSAuthoring.SDK.BuildSystem.JsonCompilerTask.<ValidateConfigFiles>d__1b.MoveNext()\r [C:\Builds\103\mysolutiion\BuildDefinition\src\DataFactory\AdfApp\AdfApp.dfproj]
C:\Users\myusername\AppData\Roaming\Microsoft\DataFactory Tools for Visual Studio\MsBuild\1.0\DataFactory.targets(35,5): error MSB4018: --- End of stack trace from previous location where exception was thrown ---\r [C:\Builds\103\mysolutiion\BuildDefinition\src\DataFactory\AdfApp\AdfApp.dfproj]
C:\Users\myusername\AppData\Roaming\Microsoft\DataFactory Tools for Visual Studio\MsBuild\1.0\DataFactory.targets(35,5): error MSB4018: at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r [C:\Builds\103\mysolutiion\BuildDefinition\src\DataFactory\AdfApp\AdfApp.dfproj]
C:\Users\myusername\AppData\Roaming\Microsoft\DataFactory Tools for Visual Studio\MsBuild\1.0\DataFactory.targets(35,5): error MSB4018: at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r [C:\Builds\103\mysolutiion\BuildDefinition\src\DataFactory\AdfApp\AdfApp.dfproj]
C:\Users\myusername\AppData\Roaming\Microsoft\DataFactory Tools for Visual Studio\MsBuild\1.0\DataFactory.targets(35,5): error MSB4018: at Microsoft.VSAuthoring.SDK.BuildSystem.JsonCompilerTask.<ValidateJsons>d__7.MoveNext()\r [C:\Builds\103\mysolutiion\BuildDefinition\src\DataFactory\AdfApp\AdfApp.dfproj]
C:\Users\myusername\AppData\Roaming\Microsoft\DataFactory Tools for Visual Studio\MsBuild\1.0\DataFactory.targets(35,5): error MSB4018: --- End of stack trace from previous location where exception was thrown ---\r [C:\Builds\103\mysolutiion\BuildDefinition\src\DataFactory\AdfApp\AdfApp.dfproj]
C:\Users\myusername\AppData\Roaming\Microsoft\DataFactory Tools for Visual Studio\MsBuild\1.0\DataFactory.targets(35,5): error MSB4018: at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r [C:\Builds\103\mysolutiion\BuildDefinition\src\DataFactory\AdfApp\AdfApp.dfproj]
C:\Users\myusername\AppData\Roaming\Microsoft\DataFactory Tools for Visual Studio\MsBuild\1.0\DataFactory.targets(35,5): error MSB4018: at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r [C:\Builds\103\mysolutiion\BuildDefinition\src\DataFactory\AdfApp\AdfApp.dfproj]
C:\Users\myusername\AppData\Roaming\Microsoft\DataFactory Tools for Visual Studio\MsBuild\1.0\DataFactory.targets(35,5): error MSB4018: at Microsoft.WindowsAzure.DataFactoryStudio.DataFactoryProject.ProjectSystem.ADFCompilerTask.<ExecuteAsync>d__2.MoveNext()\r [C:\Builds\103\mysolutiion\BuildDefinition\src\DataFactory\AdfApp\AdfApp.dfproj]
C:\Users\myusername\AppData\Roaming\Microsoft\DataFactory Tools for Visual Studio\MsBuild\1.0\DataFactory.targets(35,5): error MSB4018: --- End of inner exception stack trace ---\r [C:\Builds\103\mysolutiion\BuildDefinition\src\DataFactory\AdfApp\AdfApp.dfproj]
C:\Users\myusername\AppData\Roaming\Microsoft\DataFactory Tools for Visual Studio\MsBuild\1.0\DataFactory.targets(35,5): error MSB4018: at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)\r [C:\Builds\103\mysolutiion\BuildDefinition\src\DataFactory\AdfApp\AdfApp.dfproj]
C:\Users\myusername\AppData\Roaming\Microsoft\DataFactory Tools for Visual Studio\MsBuild\1.0\DataFactory.targets(35,5): error MSB4018: at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)\r [C:\Builds\103\mysolutiion\BuildDefinition\src\DataFactory\AdfApp\AdfApp.dfproj]
C:\Users\myusername\AppData\Roaming\Microsoft\DataFactory Tools for Visual Studio\MsBuild\1.0\DataFactory.targets(35,5): error MSB4018: at Microsoft.VSAuthoring.SDK.BuildSystem.JsonCompilerTask.Execute()\r [C:\Builds\103\mysolutiion\BuildDefinition\src\DataFactory\AdfApp\AdfApp.dfproj]
C:\Users\myusername\AppData\Roaming\Microsoft\DataFactory Tools for Visual Studio\MsBuild\1.0\DataFactory.targets(35,5): error MSB4018: at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()\r [C:\Builds\103\mysolutiion\BuildDefinition\src\DataFactory\AdfApp\AdfApp.dfproj]
C:\Users\myusername\AppData\Roaming\Microsoft\DataFactory Tools for Visual Studio\MsBuild\1.0\DataFactory.targets(35,5): error MSB4018: at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__20.MoveNext()\r [C:\Builds\103\mysolutiion\BuildDefinition\src\DataFactory\AdfApp\AdfApp.dfproj]
C:\Users\myusername\AppData\Roaming\Microsoft\DataFactory Tools for Visual Studio\MsBuild\1.0\DataFactory.targets(35,5): error MSB4018: ---> (Inner Exception #0) System.ArgumentNullException: Value cannot be null.\r [C:\Builds\103\mysolutiion\BuildDefinition\src\DataFactory\AdfApp\AdfApp.dfproj]
C:\Users\myusername\AppData\Roaming\Microsoft\DataFactory Tools for Visual Studio\MsBuild\1.0\DataFactory.targets(35,5): error MSB4018: Parameter name: source\r [C:\Builds\103\mysolutiion\BuildDefinition\src\DataFactory\AdfApp\AdfApp.dfproj]
C:\Users\myusername\AppData\Roaming\Microsoft\DataFactory Tools for Visual Studio\MsBuild\1.0\DataFactory.targets(35,5): error MSB4018: at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source, Func`2 predicate)\r [C:\Builds\103\mysolutiion\BuildDefinition\src\DataFactory\AdfApp\AdfApp.dfproj]
C:\Users\myusername\AppData\Roaming\Microsoft\DataFactory Tools for Visual Studio\MsBuild\1.0\DataFactory.targets(35,5): error MSB4018: at Microsoft.VSAuthoring.SDK.Common.VSAuthoring.VersionCenter.GetDefault()\r [C:\Builds\103\mysolutiion\BuildDefinition\src\DataFactory\AdfApp\AdfApp.dfproj]
C:\Users\myusername\AppData\Roaming\Microsoft\DataFactory Tools for Visual Studio\MsBuild\1.0\DataFactory.targets(35,5): error MSB4018: at Microsoft.VSAuthoring.SDK.BuildSystem.JsonCompilerTask.get_ProjectVersion()\r [C:\Builds\103\mysolutiion\BuildDefinition\src\DataFactory\AdfApp\AdfApp.dfproj]
C:\Users\myusername\AppData\Roaming\Microsoft\DataFactory Tools for Visual Studio\MsBuild\1.0\DataFactory.targets(35,5): error MSB4018: at Microsoft.VSAuthoring.SDK.BuildSystem.JsonCompilerTask.<ValidateConfigFiles>d__1b.MoveNext()\r [C:\Builds\103\mysolutiion\BuildDefinition\src\DataFactory\AdfApp\AdfApp.dfproj]
C:\Users\myusername\AppData\Roaming\Microsoft\DataFactory Tools for Visual Studio\MsBuild\1.0\DataFactory.targets(35,5): error MSB4018: --- End of stack trace from previous location where exception was thrown ---\r [C:\Builds\103\mysolutiion\BuildDefinition\src\DataFactory\AdfApp\AdfApp.dfproj]
C:\Users\myusername\AppData\Roaming\Microsoft\DataFactory Tools for Visual Studio\MsBuild\1.0\DataFactory.targets(35,5): error MSB4018: at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r [C:\Builds\103\mysolutiion\BuildDefinition\src\DataFactory\AdfApp\AdfApp.dfproj]
C:\Users\myusername\AppData\Roaming\Microsoft\DataFactory Tools for Visual Studio\MsBuild\1.0\DataFactory.targets(35,5): error MSB4018: at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r [C:\Builds\103\mysolutiion\BuildDefinition\src\DataFactory\AdfApp\AdfApp.dfproj]
C:\Users\myusername\AppData\Roaming\Microsoft\DataFactory Tools for Visual Studio\MsBuild\1.0\DataFactory.targets(35,5): error MSB4018: at Microsoft.VSAuthoring.SDK.BuildSystem.JsonCompilerTask.<ValidateJsons>d__7.MoveNext()\r [C:\Builds\103\mysolutiion\BuildDefinition\src\DataFactory\AdfApp\AdfApp.dfproj]
C:\Users\myusername\AppData\Roaming\Microsoft\DataFactory Tools for Visual Studio\MsBuild\1.0\DataFactory.targets(35,5): error MSB4018: --- End of stack trace from previous location where exception was thrown ---\r [C:\Builds\103\mysolutiion\BuildDefinition\src\DataFactory\AdfApp\AdfApp.dfproj]
C:\Users\myusername\AppData\Roaming\Microsoft\DataFactory Tools for Visual Studio\MsBuild\1.0\DataFactory.targets(35,5): error MSB4018: at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r [C:\Builds\103\mysolutiion\BuildDefinition\src\DataFactory\AdfApp\AdfApp.dfproj]
C:\Users\myusername\AppData\Roaming\Microsoft\DataFactory Tools for Visual Studio\MsBuild\1.0\DataFactory.targets(35,5): error MSB4018: at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r [C:\Builds\103\mysolutiion\BuildDefinition\src\DataFactory\AdfApp\AdfApp.dfproj]
C:\Users\myusername\AppData\Roaming\Microsoft\DataFactory Tools for Visual Studio\MsBuild\1.0\DataFactory.targets(35,5): error MSB4018: at Microsoft.WindowsAzure.DataFactoryStudio.DataFactoryProject.ProjectSystem.ADFCompilerTask.<ExecuteAsync>d__2.MoveNext()<---\r [C:\Builds\103\mysolutiion\BuildDefinition\src\DataFactory\AdfApp\AdfApp.dfproj]
C:\Users\myusername\AppData\Roaming\Microsoft\DataFactory Tools for Visual Studio\MsBuild\1.0\DataFactory.targets(35,5): error MSB4018: [C:\Builds\103\mysolutiion\BuildDefinition\src\DataFactory\AdfApp\AdfApp.dfproj]
Можете ли вы запустить проект с помощью командной строки MSBuild на вашей машине агента сборки? –
Приложите подробный журнал здесь. –
@Amruta Вы нашли решение этой проблемы? – jaspernygaard