Visual Studio 2019 TypeScript build erorrs after adding site.ts and then nuget package Microsoft.TypeScript.MSBuild

Viewed 229

In Visual Studio 2019 (v16.11.5) I added a site.ts file and some ts code. VS prompted me to install the nuget package Microsoft.TypeScript.MSBuild, which I did. Now on site.ts save site.js is produced just fine, however, now VS won't build the solution and produce a number of TS errors (see screenshot).

When I remove Microsoft.TypeScript.MSBuild the solution builds, but site.ts does not compile on save.

Any idea about what I'm missing (package/setting/other)?

I have a gulpfile.js which I guess could also handle the ts compilation.

enter image description here

1 Answers
Related