Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I'm not sure if this is the correct method of dealing with the problem, but here's what I did to get "compile on save" working on my project...</p> <p>After noticing that Compile On Save worked when starting from a new <strong>HTML Application with TypeScript</strong> project, I did a comparison between that and my non-working ASP MVC project. Turns out, my ASP MVC project was missing this bit of code..</p> <pre><code> &lt;PropertyGroup Condition="'$(Configuration)' == 'Debug'"&gt; &lt;TypeScriptTarget&gt;ES3&lt;/TypeScriptTarget&gt; &lt;TypeScriptRemoveComments&gt;false&lt;/TypeScriptRemoveComments&gt; &lt;TypeScriptSourceMap&gt;true&lt;/TypeScriptSourceMap&gt; &lt;TypeScriptModuleKind&gt;AMD&lt;/TypeScriptModuleKind&gt; &lt;/PropertyGroup&gt; &lt;PropertyGroup Condition="'$(Configuration)' == 'Release'"&gt; &lt;TypeScriptTarget&gt;ES3&lt;/TypeScriptTarget&gt; &lt;TypeScriptRemoveComments&gt;true&lt;/TypeScriptRemoveComments&gt; &lt;TypeScriptSourceMap&gt;false&lt;/TypeScriptSourceMap&gt; &lt;TypeScriptModuleKind&gt;AMD&lt;/TypeScriptModuleKind&gt; &lt;/PropertyGroup&gt; &lt;Import Project="$(VSToolsPath)\TypeScript\Microsoft.TypeScript.targets" /&gt; </code></pre> <p>Copy/pasting that into my ASP MVC project gave me Compile On Save support again. Of course, it's still not exactly what I expected. The resultant JS files are not added to the project automatically, so that's something I had to do manually. I also had to manually group the JS file with the TS file to mimic the same experience I was getting with WE2. </p> <p>Hope that helps someone. Would love to hear some feedback on the solution. </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload