数据工厂项目和 msbuild

Data Factory Projects and msbuild

正在尝试为 MS 数据工厂项目设置 CI。 运行 使用 Teamcity 2017.1.2 完全修补了 VS2015,安装了适用于 VS 的数据工厂工具。我在 TeamCity 中尝试了 运行 Visual Studio 2015 步骤和 Msbuild 步骤,但没有任何运气。我是 运行 同一用户帐户下的代理,因为我登录并启动 VS

我可以在代理上启动 VS 并成功构建。如果我使用 TC og 开发人员提示,我会收到以下错误。是否有 dfproj 项目可以使用 msbuild 成功构建?

C:\Users\Administrator\AppData\Roaming\Microsoft\DataFactory Tools for Visual Studio\MsBuild.0\DataFactory.targets( 35,5): error MSB4062: The "Microsoft.WindowsAzure.DataFactoryStudio.DataFactoryProject.ProjectSystem.ADFCompilerTask" t ask could not be loaded from the assembly C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\rj paw4at.rk4\Microsoft.WindowsAzure.DataFactoryStudio.DataFactoryProject.dll. Could not load file or assembly 'Microsoft. VisualStudio.Shell.12.0, Version=12.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies . The system cannot find the file specified.

好的 - 最后只是用 devenv 构建项目并设置 vs 环境变量。感觉微软正在为数据工厂工具 2.0 拖延这个插件(并支持 vs2017!!)。

pushd 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools'    
cmd /c "vsvars32.bat&set" |
foreach {
  if ($_ -match "=") {
    $v = $_.split("="); set-item -force -path "ENV:$($v[0])"  -value "$($v[1])"
  }
}
popd
write-host "`nVisual Studio 2015 Command Prompt variables set." -ForegroundColor Yellow

devenv somesolution.sln /build "Release|x86"devenv agpdatafactory.sln /build "Release|x86"