Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I enable the TypeScript tab of a Visual Studio project that's a console or windows service that's self-hosting web-pages

Using Visual Studio 2015 I created a console application to self-host Owin with embedded static files. Since Visual Studio doesn't know it's a web-site project, it ignores TypeScript files. When I go to the project properties, the TypeScript tab's typically there in web projects is missing.

How do I enabled the TypeScript tab so that I can configure TypeScript and use Visual Studio 2015's built-in capabilities to compile TypeScript.

like image 775
zumalifeguard Avatar asked Oct 27 '25 16:10

zumalifeguard


1 Answers

Open the .csproj file in a text editor and add the following line

<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\TypeScript\Microsoft.TypeScript.targets" />

I added it after this command:

<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
like image 68
zumalifeguard Avatar answered Oct 29 '25 06:10

zumalifeguard



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!