I'll try to be as specific as possible.
We work with TFS and we use typescript for client-side scripts.
When we develop locally we can do everything perfectly normal but the problem comes whith the published websites from TFS.
The problem is that when we want to do a deploy, or if we want to automatize it, we need to do a workaround because under _PublishedWebsites typescript seems to not compile anything, and the scripts folder only contains the .ts files.
For now, the workaround is to go to the build folder and copy from there the .js files. This workaround works for now but I think the ideal scenario would be to have the .js files generated under the _PublishedWebsites folder.
We've tried different options but we couldn't find a solution yet, also the information found around is not very huge.
Any help would be appreciated.
Thanks.
EDIT: we are using VS 2013 and latest TFS and Typescript version. The ts files are added in a MVC project.
I had the same problem and the following worked for me:
Example:
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\TypeScript\Microsoft.TypeScript.targets" />
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With