Visual Studio 在线构建 - Visual Studio SDK 和 Modellng SDK

Visual Studio Online Build - Visual Studio SDK and Modellng SDK

我已将 Visual Studio SDK and Modeling SDK 包含在我的项目中以构建我的 T4 模板。它一直运行良好,直到我想设置 VSO Build,这给了我以下错误:

The imported project "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\TextTemplating\Microsoft.TextTemplating.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.

但是,我无法找到 import/include 将提到的 SDK 放入构建机器的任何选项或设置。

VSO Hosted build agent 没有安装 Modeling SDK,详情参考Hosted pool and Hosted build controller

要构建您的解决方案,您需要deploy your own build agent并在其上安装所需的 SDK。