Typescript build options on Console app

583 views Asked by At

I want to create web app on TypeScript, wich hosted in console app (NancyFx self host). When i create class ASP.NET Web Application in project properties i can select AMD module system. But in cosole app i can't see this page.

enter image description here

Also in Web Essetials (v 2.5.3) there is no this settings too.

enter image description here

How i can enabled this option directly without adding ///<amd... /> in each file.

1

There are 1 answers

2
Sergey Shulik On BEST ANSWER

I found solution: in ProjectName.csproj just add

<PropertyGroup Condition="'$(Configuration)' == 'Debug'">
   <TypeScriptModuleKind>amd</TypeScriptModuleKind>
</PropertyGroup>