Rub*_*ord 4 msbuild typescript
我一直试图通过visualstudio.com上的构建服务器来构建typescript,我已经完成了将typescript引入源代码控制的正常做法.但我得到以下问题:
VSTSC:错误TS5007:构建:无法重新引用文件:'COMPUTE_PATHS_ONLY'.[C:\一个\ SRC \主\ RecruitCloud\RecruitCloud.csproj]
我知道编码问题,但在我看到的所有示例中,错误消息中都指出了罪魁祸首文件.
我开始认为这可能是我正在项目中编译的打字稿文件的数量.
有任何想法吗?
这是VsTsc任务的配置选项,即运行编译器的任务.它用在PreComputeCompileTypeScript目标中.目的是使VsTsc任务完成所有动作,除了运行编译器.这并没有在你的机器上实现,它确实运行了编译器.然后扔了一个合适的,因为它找不到名为COMPUTE_PATHS_ONLY的文件.
VsTsc任务存储在C:\ Program Files(x86)\ MSBuild\Microsoft\VisualStudio\v12.0\TypeScript\TypeScript.Tasks.dll中.用反编译器查看程序集:
protected override int ExecuteTool(string pathToTool, string responseFileCommands, string commandLineCommands)
{
if (this.Configurations.Contains("--sourcemap"))
{
this.generateSourceMaps = true;
}
else
{
this.generateSourceMaps = false;
}
if (this.Configurations.Contains("--declaration"))
{
this.generateDeclarations = true;
}
else
{
this.generateDeclarations = false;
}
this.GenerateOutputPaths();
if (!responseFileCommands.Contains("COMPUTE_PATHS_ONLY"))
{
return base.ExecuteTool(pathToTool, responseFileCommands, commandLineCommands);
}
return 0;
}
Run Code Online (Sandbox Code Playgroud)
注意!responseFileCommands.Contains()测试绕过base.ExecuteTool()调用.
我只能想到你的机器上的方法看起来不像这样.最有可能的原因是你有一个过时的TypeScript.Tasks.dll版本.在安装了VS2013 Update 4的计算机上,它的日期为2014年11月11日,大小为27816字节.
| 归档时间: |
|
| 查看次数: |
3300 次 |
| 最近记录: |