我们刚刚将
javascript文件转换为typescript.一切都在本地构建就好了,但我们在TFS(云版本,即tfs.visualstudio.com)的构建给了我们错误:
The imported project "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\TypeScript\Microsoft.TypeScript.targets" was not found. Confirm that the path in the declaration is correct,and that the file exists on disk.
在本地,我们使用的是打字稿版本0.9.1.1和VS2012
并建议?
解决方法
要确保使用Microsoft.TypeScript.targets的Web项目在构建服务器上成功构建,您有两个选择:
>在构建服务器上安装TypeScript
>将Microsoft.TypeScript.targets所需的文件复制到其他源控制文件夹并更改其中的路径引用
csproj文件到这个文件夹.