Typescript build error (TS5007)

I am trying to get typescript building through build servers on visualstudio.com, and I have done the usual task of casting typescript to the original control. But I get the following problem:

VSTSC: Error TS5007: Build: Unable to resolve file: 'COMPUTE_PATHS_ONLY. [C: \ a \ SRC \ Main \ RecruitCloud \ RecruitCloud.csproj]

I am aware of encoding problems, but in all the examples that I saw, a critical file was indicated in the error message.

I'm starting to think that this can be up to the number of typescript files that I compile in the project.

Any ideas?

+4
source share
2 answers

This is a configuration option. 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;
}

!responseFileCommands.Contains(), base.ExecuteTool().

, , , . , TypeScript.Tasks.dll. VS2013 4 11 2014 27816 .

+6

Unicode. powershell script ( Windows?)

Get-ChildItem *.txt | ForEach-Object {
$content = $_ | Get-Content

Set-Content -PassThru $_.Fullname $content -Encoding UTF8 -Force}
0

All Articles