简体   繁体   中英

No compile time errors for TypeScript

I am failing to get compile time errors or successful builds for TypeScript in VS 2012. I am using this in my project file:

<Target Name="BeforeBuild">
    <Exec Command="&quot;$(PROGRAMFILES)\Microsoft SDKs\TypeScript\0.8.0.0\tsc --module amd -target ES5         &quot; @(TypeScriptCompile ->'&quot;%(fullpath)&quot;', ' ')" IgnoreExitCode="true" />
</Target>

eg errors should look like this:

Greeter.ts(7,26): Supplied parameters do not match any signature of call target

any ideas?

Your closing &quot; is misplaced. Should be:

Command="&quot;$(PROGRAMFILES)\\Microsoft SDKs\\TypeScript\\0.8.0.0\\tsc&quot; module amd -target ES5 @(TypeScriptCompile ->'&quot;%(fullpath)&quot;', ' ')" IgnoreExitCode="true" />

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM