Visual Studio 2017 does not compile typescript

I recently upgraded to VS 2017, and I use a solution that worked great in VS 2015. I turned on the Compile on Save feature in Tools> Text Editor> TS / JS> Project, and I certainly I am using the correct "code generation" option, but VS will not compile any typescript file.
The output js file already exists, it was generated by VS 2015, and when I save the ts file, the bottom line shows the message "Output (s) was generated successfully", but there are no changes in the js file.
Please note that the project is under source control, but both ts and js files are checked for editing.
I read on the Internet that similar issues were resolved using the latest VS updates, and I'm surethat my version of VS is updated.
Does anyone know what is going on?

+6
source share
4 answers

Solved by installing gulp and manually compiling TypeScript if necessary.

-1
source

Check ts file properties in Solution explorer. If Create action = Content , change it to a TypeScript file

enter image description here

+13
source
  • Visual Studio 2017.
  • : > >
  • //- Visual #/Web/ASP.Net
  • , .
  • : "MVC"
  • , .
  • "" .
  • >
  • Visual #/Web/ TypeScript
  • , "file1.ts".
  • class Foo { } .
  • , "file.js" "file.js.map" . (, " ", .js .js.map.)
  • VS2017, TS. .
  • , , , .

, , TypeScript.

:

TS2.4 VS2017.

, - , , TS2.4 VS2017: https://blogs.msdn.microsoft.com/typescript/2017/06/27/announcing-typescript-2-4/

: http://download.microsoft.com/download/7/0/A/70A6AC0E-8934-4396-A43E-445059F430EA/2.4.1-TS-release-dev14update3-20170626.1/TypeScript_SDK.exe

0

.NET Core 2.1, VS New Project React, .csproj <TypeScriptCompileBlocked>true</TypeScriptCompileBlocked> false.

!?!?!

0

Source: https://habr.com/ru/post/1680866/


All Articles