Monday, June 3, 2024
 Popular · Latest · Hot · Upcoming
110
rated 0 times [  113] [ 3]  / answers: 1 / hits: 83278  / 8 Years ago, fri, may 20, 2016, 12:00:00

As soon as I add a tsconfig.json file to my Visual Studio 2015 web solution I get the above error.



Also this stops the compiler from re-generating js files even when I set compileOnSave: true.



When I double click the error it takes me into the Microsoft.Typescript.Targets file which contains a lot of issues such as Unknown Item Group TypeScriptCompile. In the error list these appear as warnings but they are there whether I have a tsconfig.json file or not.



Is there any way of solving it or getting more information on what the problem is?


More From » typescript

 Answers
24

Install these 2 NuGet packages:



Microsoft.TypeScript.MSBuild and Microsoft.TypeScript.Compiler



It updates your project with MSBuild task definition and TS compiler and solves the compilation issue


[#62087] Wednesday, May 18, 2016, 8 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
judydestiniem

Total Points: 215
Total Questions: 109
Total Answers: 86

Location: Indonesia
Member since Wed, Jul 7, 2021
3 Years ago
;