Problematic Typescript to deal with again!
Here's what I have. It builds fine on Save but simply won't build at all on compile. I'm loathe to follow too many instructions on the internet as so many different methods to get this working seem to exist. This is what I've tried:
Checking that TypeScriptCompile action is set on files
I've added the property group section (which seems to have got compile on save working) This has solved this problem in the past.
<PropertyGroup Condition="'$(Configuration)' == 'Debug'">
<TypeScriptTarget>ES3</TypeScriptTarget>
<TypeScriptRemoveComments>false</TypeScriptRemoveComments>
<TypeScriptSourceMap>true</TypeScriptSourceMap>
<TypeScriptModuleKind>AMD</TypeScriptModuleKind>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)' == 'Release'">
<TypeScriptTarget>ES3</TypeScriptTarget>
<TypeScriptRemoveComments>true</TypeScriptRemoveComments>
<TypeScriptSourceMap>false</TypeScriptSourceMap>
<TypeScriptModuleKind>AMD</TypeScriptModuleKind>
</PropertyGroup>
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\TypeScript\Microsoft.TypeScript.targets" />
The only other compilicating factor is that I'm using Durandal and therefore I have added my typescript objects into this structure: App/viewModels and App/modules.