Search code examples
visual-studiotypescriptamdweb-essentials

Typescript build options on Console app


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.


Solution

  • I found solution: in ProjectName.csproj just add

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