Compile TypeScript on build

后端 未结 1 875
深忆病人
深忆病人 2021-01-24 16:10

I have a ASP.NET Core project (a .xproj file) containing some TypeScript files. When I build this project, all .ts files are automatically transpiled t

相关标签:
1条回答
  • 2021-01-24 16:49

    Add <Import Project="$(VSToolsPath)\DotNet.Web\Microsoft.DotNet.Web.targets" Condition="'$(VSToolsPath)' != ''" /> to the xproj file to get typescript built to JS (got the line from my ASP.NET Core - .xproj file)

    0 讨论(0)
提交回复
热议问题