From 023de25098b495c107052482f37d858eb435ebae Mon Sep 17 00:00:00 2001 From: Mohamed Hegazy Date: Tue, 31 Mar 2015 00:08:04 -0700 Subject: [PATCH] Created Setting Compiler Options in MSBuild projects (markdown) --- ...ng-Compiler-Options-in-MSBuild-projects.md | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 Setting-Compiler-Options-in-MSBuild-projects.md diff --git a/Setting-Compiler-Options-in-MSBuild-projects.md b/Setting-Compiler-Options-in-MSBuild-projects.md new file mode 100644 index 0000000..5dad8da --- /dev/null +++ b/Setting-Compiler-Options-in-MSBuild-projects.md @@ -0,0 +1,45 @@ +## Overview +Compiler options can be specified using MSBuild properties within an MSBuild project. + +## Example + +```XML + + false + true + + + true + false + + +``` + +## Mappings + +Compiler Option | MSBuild Property Name | Allowed Values +------------------|-----------------------|----------------- +--declaration | TypeScriptGeneratesDeclarations | boolean +--module | TypeScriptModuleKind | AMD or CommonJs +--target | TypeScriptTarget | ES3, ES5 or ES6 +--project | Not supported in VS | +--watch | Not supported in VS | +--charset | TypeScriptCharset | +--diagnostics | Not supported in VS | +--emitBOM | TypeScriptEmitBOM | boolean +--listFiles | Not supported in VS | +--locale | Automatically set to PreferredUILang value | +--mapRoot | TypeScriptMapRoot | File path +--noEmit | Not supported in VS | +--noEmitOnError | TypeScriptNoEmitOnError | boolean +--noImplicitAny | TypeScriptNoImplicitAny | boolean +--noLib | TypeScriptNoLib | boolean +--noResolve | TypeScriptNoResolve | boolean +--out | TypeScriptOutFile | File path +--outDir | TypeScriptOutDir | File path +--preserveConstEnums | TypeScriptPreserveConstEnums | boolean +--removeComments | TypeScriptRemoveComments | boolean +--sourceMap | TypeScriptSourceMap | File path +--sourceRoot | TypeScriptSourceRoot | File path +--suppressImplicitAnyIndexErrors | TypeScriptSuppressImplicitAnyIndexErrors | boolean +