Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <ItemGroup>
- <TypeScriptCompile Include="$(ProjectDir)***.ts" />
- </ItemGroup>
- <Target Name="TypeScriptCompile" BeforeTargets="Build">
- <Message Text="Compiling TypeScript files" />
- <Exec Command=""$(PROGRAMFILES)Microsoft SDKsTypeScript .8.0.0tsc" -target ES5 @(TypeScriptCompile ->'"%(fullpath)"', ' ')" />
- </Target>
- <ItemGroup>
- <AvailableItemName Include="TypeScriptCompile" />
- </ItemGroup>
- <ItemGroup>
- <TypeScriptCompile Include="$(ProjectDir)***.ts" />
- </ItemGroup>
- <Target Name="BeforeBuild">
- <Exec Command=""$(PROGRAMFILES)Microsoft SDKsTypeScript .8.0.0tsc" -target ES5 @(TypeScriptCompile ->'"%(fullpath)"', ' ')" IgnoreExitCode="true" />
- </Target>
- forfiles /S /P $(ProjectDir) /m *.ts /c "cmd /c tsc @file"
- tsc $(ProjectDir)MyScripts/myfile.ts
Add Comment
Please, Sign In to add comment