Wednesday 3 May 2017

Configure TypeScript in VS 2013

While use typescript in VS 2013 everyone want to find the solution for
"typescript json configuration file not found in VS2013"

To execute the typescript and produce the respect JS please add the below code in your project file  instead of  typescriptjsonconfiguration file because this file only available in VS 2015.

/*Start*/

 <PropertyGroup Condition="'$(Configuration)' == 'Debug'">
    <TypeScriptTarget>ES5</TypeScriptTarget>
    <TypeScriptModuleKind>commonjs</TypeScriptModuleKind>
    <TypeScriptModuleResolution>node</TypeScriptModuleResolution>
    <TypeScriptSourceMap>True</TypeScriptSourceMap>
    <TypeScriptEmitDecoratorMetadata>True</TypeScriptEmitDecoratorMetadata>
    <TypeScriptExperimentalDecorators>True</TypeScriptExperimentalDecorators>
    <TypeScriptRemoveComments>False</TypeScriptRemoveComments>
    <TypeScriptNoImplicitAny>True</TypeScriptNoImplicitAny>
  </PropertyGroup>

/*End*/


How to add this in project file:
1. goto the folder location of your project(open project in file explorer)
2.there you can see the Visual C# project file just write click and edit that in notepad
3.There you can see the different <propertyGroup> tags below of one tag add the above code.
  then run the application .

Thanks
Pradeep