asp.net - Where to specify --module flag in VS 2015? -


i using typescript 1.5 , vs 2015 rc new asp.net 5 project templates. typescript compiles fine getting following error on exported classes:

cannot compile external modules unless "-module" flag provided

i want silence error unable specify typescript options though vs 2015. tried tsconfig.json file seems not effective add file. perhaps there additional step missing. can ?

typically setting in project properties on typescript build tab in project properties (for current build configuration such debug or release).

since saying typescript build tab doesn't appear, may not have valid reference typescript "props" file in project. line in .csproj or similar file:

<import project="$(msbuildextensionspath32)\microsoft\visualstudio\v$(visualstudioversion)\typescript\microsoft.typescript.default.props" condition="exists('$(msbuildextensionspath32)\microsoft\visualstudio\v$(visualstudioversion)\typescript\microsoft.typescript.default.props')" />

if doesn't exist, add project , fix path correct install of visual studio , typescript (just search "microsoft.typescript.default.props" file on hard drive). when reload project, typescript build properties tab should appear.

the other thing need reference typescript "targets" file such this:

<import project="$(msbuildextensionspath32)\microsoft\visualstudio\v$(visualstudioversion)\typescript\microsoft.typescript.targets" condition="exists('$(msbuildextensionspath32)\microsoft\visualstudio\v$(visualstudioversion)\typescript\microsoft.typescript.targets')" />

note targets reference has low possible in project - possibly before </project> tag.

initialization of typescript in visual studio dependent on .props , .targets files existing issue.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -