title: How can I compile ('build') all TypeScript files in a .csproj C# project?
body: <p><strong>Context</strong></p>
  
  <p>Sometimes I would like just build/recompile all TypeScript files in a standard VS 2017 .NET framework C# project (.csproj) without building the dlls, etc. I would be happy even a console command line solution.</p>
  
  <p><strong>What I've done so far:</strong></p>
  
  <p>I can use MSBuild to compile everything: <code>c:\&gt;msbuild.exe my.csproj</code>. I even figured out that the installed nuget package <code>Microsoft.TypeScript.MSBuild.2.7.2</code> is included in my .csproj and has a CompileTypeScript target defined, but unfortunately the <code>c:\&gt;msbuild.exe my.csproj -t:CompileTypeScript</code> returns with 0 Errors, 0 Warnings and does nothing. (supposedly looks for the ts files in in wrong place and found none) Note: referring a not existing target gives an informative error message, so the target is definitely found.</p>
  
  <p><strong>Question</strong></p>
  
  <p>Regardless the MSBuild idea what I was figured out, I would like to compile all TypeScript files where are in the .csproj project and use the same TypeScript compiler settings what are defined there. How can I accomplish this task?</p>