Note that there are some explanatory texts on larger screens.

plurals
  1. POVisual Studio 2012 TypeScript project ignoring two files during compile
    primarykey
    data
    text
    <p><br> I have a Visual Studio 2012 TypeScript project. When I first made the project I added 2 new .ts files these were Framework.ts &amp; Graphics.ts. I recently added two more TypeScript files to be declaration files and named them .d.ts such as Framework.d.ts and Graphics.d.ts. The interesting part is that all 4 of these files have the Build Action Property set to TypeScriptCompile yet only 2 of them build (Framework.ts and Graphics.ts) the other .d.ts files still have the original .js build code regarding a shapes module. I thought perhaps there was a problem with the .d.ts extension and renamed these files to Framework_d.ts and Graphics_d.ts. This didn't build them either!</p> <p>At this point I am at a loss. I looked at the csproj file:</p> <pre><code>&lt;TypeScriptCompile Include="Framework\Framework.d.ts" /&gt; &lt;Content Include="Framework\Framework.d.js"&gt; &lt;DependentUpon&gt;Framework.d.ts&lt;/DependentUpon&gt; &lt;/Content&gt; &lt;Content Include="Graphics\Graphics.d.js"&gt; &lt;DependentUpon&gt;Graphics.d.ts&lt;/DependentUpon&gt; &lt;/Content&gt; &lt;Content Include="TestPages\SpriteBatch.html" /&gt; &lt;TypeScriptCompile Include="Framework\Framework.ts" /&gt; &lt;Content Include="Framework\Framework.js"&gt; &lt;DependentUpon&gt;Framework.ts&lt;/DependentUpon&gt; &lt;/Content&gt; &lt;Content Include="Graphics\Graphics.js"&gt; &lt;DependentUpon&gt;Graphics.ts&lt;/DependentUpon&gt; &lt;/Content&gt; &lt;TypeScriptCompile Include="Graphics\Graphics.d.ts" /&gt; &lt;TypeScriptCompile Include="Graphics\Graphics.ts" /&gt; </code></pre> <p>And then the execute command for the typescript compiler:</p> <pre><code>&lt;Target Name="BeforeBuild"&gt; &lt;Exec Command="&amp;quot;$(PROGRAMFILES)\Microsoft SDKs\TypeScript\0.8.0.0\tsc&amp;quot; @(TypeScriptCompile -&gt;'&amp;quot;%(fullpath)&amp;quot;', ' ')" /&gt; &lt;/Target&gt; </code></pre> <p>This really should build these files too. I just have no idea why it refuses to. Does anyone know how to fix this?</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.
 

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