[英]Show Typescript command line options when building in Visual Studio
I'm trying to familiarize myself with the VS 2015 Typescript project, and the differences between all the build options. 我试图让自己熟悉VS 2015 Typescript项目以及所有构建选项之间的差异。 When I read questions/answers on SO, they are usually referring to command line options, and I don't always know how they translate to the Typescript Build options in the VS 2015 UI.
当我阅读有关SO的问题/答案时,它们通常是指命令行选项,而且我并不总是知道它们如何转换为VS 2015 UI中的Typescript Build选项。
Is there a window somewhere (or extension?) that shows the actual command line that visual studio runs when you select the various project Typescript Build options? 当您选择各种项目的Typescript Build选项时,是否有一个窗口(或扩展名)显示Visual Studio运行的实际命令行?
Visual Studio compiles TypeScript via Microsoft.TypeScript.targets
, that pass a path to options file to tsc.exe, eg: Visual Studio通过
Microsoft.TypeScript.targets
编译TypeScript,该脚本将选项文件的路径传递到tsc.exe,例如:
"C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.5\tsc.exe" @"C:\Users\Username\AppData\Local\Temp\tmp12bc368455ec43d08c6a17ac865eb778.rsp"
content of .rsp
file: .rsp
文件的内容:
--sourcemap --target ES6 --noEmitOnError --locale en-US "C:\Users\Username\Documents\Visual Studio 2015\Projects\TypeScriptHTMLApp1\TypeScriptHTMLApp1\app.ts" ......
Unfortunately it is a temporary file, so it's hard to get options from it. 不幸的是,它是一个临时文件,因此很难从中获取选项。
You can open .csproj
file in text editor, find MSBuild options and get command-line equivalents: 您可以在文本编辑器中打开
.csproj
文件,找到MSBuild选项并获取等效的命令行:
https://github.com/Microsoft/TypeScript/wiki/Setting-Compiler-Options-in-MSBuild-projects https://github.com/Microsoft/TypeScript/wiki/Setting-Compiler-Options-in-MSBuild-projects
Update: You can enable verbose build output in Tools -> Options: 更新:您可以在工具->选项中启用详细的构建输出:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.