Posts

Showing posts from January, 2019

How to debug msbuild

To do trace in msbuild 1. using message text <Target Name = "MyTarget" > <!-- Some tasks --> <Message Text = "The value of SomeVariable is: $(SomeVariable)" Importance = "High" /> <!-- Some tasks --> </ Target> 2. Let visual studio is able to display verbose message To change the build output verbosity shown in the VS2010 window, open the Options dialog and select the Build and Run settings below the Projects and Solutions node. Unless you explicitly specify a low message importance, your messages should show up at Normalverbosity or higher. Reference [1] Debug msbuild [2] No switch /debug [3] Get message msbuild task

generate type declaration file (.d.ts) on visual studio code

To compile typescipt use following command 1. Open command line 2. Go to current project 3  >"C:\Program FIles (x86)\Microsoft SDKs\Typescript\2.3\tsc" -d -p "./scripts/typings" -outDir "./scripts/typings/jaa" Note -d means Generates corresponding .d.ts file -p means a directory path to a directory containing a tsconfig.json file --outDir means Redirect output structure to the directory. -------------------------------------------- tsconfig.json {   "compilerOptions": {     "target":"es5",     "module":"commonjs",     "declaration":true,     "removeComments": true,     "strict": true   },   "include":[      "D:/xxx/xxx/xx/scripts/typings/**/*"   ],   "files":[      "D:/xxx/xxx/xx/app/utility/yyy.ts",      "D:/xxx/xxx/xx/app/utility/zzz.ts"   ] } -------------------------------------------- Refe...