我在哪裏可以找到構建腳本 - 所有用於構建和鏈接構件(如al.exe等)的工具列表 - 重建,重建visual-Studio解決方案?我在哪裏可以看到Visual Studio使用的構建腳本?
1
A
回答
3
的MSBuild(爲Visual Studio構建引擎)使用,其中用於訴訟的工具(一個或多個)由項目文件正在興建支配的模型。因此,您的工具列表將根據您正在構建的項目類型而有所不同。找出用於構建任何給定解決方案的工具列表的最簡單方法是通過工具 - >選項 - >項目打開MSBuild更詳細的日誌記錄級別(詳細信息或診斷信息)&解決方案 - >構建&在Visual Studio中運行,然後解析/調查構建輸出以指示構建目標當前調用的工具。
0
在每個項目中(在這種情況下,C#的csproj)文件是使用的msbuild /視覺工作室構建的msbuild的鏈接。
例如<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
該目標鏈接到使用的內部文件。
2
尼克Nieslanik他回答說,實際的工具包會根據項目的類型(和目標編程語言),甚至選擇.NET framework版本。
要對MSBuild使用的所有定義,屬性,目標等進行單一視圖,可以生成並查看完全預處理的項目文件(僅適用於MSBuild 4.0或更新版本)。
從msbuild.exe /?
輸出:
/preprocess[:file]
Creates a single, aggregated project file by
inlining all the files that would be imported during a
build, with their boundaries marked. This can be
useful for figuring out what files are being imported
and from where, and what they will contribute to
the build. By default the output is written to
the console window. If the path to an output file
is provided that will be used instead.
(Short form: /pp)
Example:
/pp:out.txt
例子:
msbuild.exe myproj.csproj /pp:out.xml
在這種情況下out.xml
基本上是一個自包含的文件,內嵌有所有Import
-ed項目文件,所以你可以輕鬆地搜索並瀏覽它們。
相關問題
- 1. 我在哪裏可以找到$腳本?
- 2. 我在哪裏可以看到Hudson中的shell腳本輸出
- 3. Visual Studio在哪裏保存前/後構建腳本?
- 4. 我在哪裏可以看看Microsoft.ReportingServices.QueryDesigners.dll?
- 5. 我在哪裏可以看到Channel.write()
- 6. Visual Studio在哪裏不斷構建?
- 7. 我在哪裏可以找到Visual Studio中stdio.h的實現?
- 8. 我在哪裏可以找到Visual Studio的C99數學實現?
- 9. 我在哪裏可以找到WcfTestClient.exe(Visual Studio中的一部分)
- 10. 我在哪裏可以找到Visual Studio項目的「Visual Studio包」模板?
- 11. 我在哪裏可以找到'winmm.lib'(我正在使用Visual Studio 2012)
- 12. 我在哪裏可以找到Visual Studio 2010 RTM發行說明?
- 13. 使用QtSpim時,我在哪裏可以看到程序輸出以及我可以在哪裏輸入值?
- 14. 我在哪裏可以查看Google Apps腳本配額使用情況?
- 15. 我在哪裏可以找到Mule Studio的存檔版本?
- 16. 我可以在哪裏看到我的應用程序的IP?
- 17. iTunes連接 - 我可以在哪裏看到TestFlight構建的崩潰報告?
- 18. 我在哪裏可以看到submit()java腳本函數的內容?
- 19. 我在哪裏可以找到Activity和gradle腳本的Android Studio模板?
- 20. 我在哪裏可以查看我在mysql中使用的SPI
- 21. 我在哪裏可以獲得Visual Studio 2012 Update5的鏈接
- 22. 我可以在哪裏獲得visual studio express的加載項?
- 23. 我在哪裏可以下載Visual Studio 2012報表查看器運行系統?
- 24. 我在哪裏可以找到IIS 6.0的管理腳本?
- 25. 我在哪裏可以得到pymssql的Python腳本
- 26. github:我可以在哪裏看到版本號?
- 27. 哪裏可以找到適用於Visual Studio 2015的wsdl.exe?
- 28. 我在哪裏可以找到適用於Visual Studio 2010的Expression Blend 4?
- 29. 在哪裏可以看到android studio中的數據SQLite
- 30. 在哪裏可以找到 「ConsumeContainerWhitespace」 在Visual Studio 2015年
+1表示工具類型不同。 – 2012-03-06 08:23:37
謝謝!我試圖看到詳細的輸出。但是我看到:任務「Csc」 完成執行任務「Csc」。但它不顯示它如何稱爲csc.exe。是否有可能看到整個呼叫執行csc讓我們說? – pencilCake 2012-03-06 11:43:08
如果您沒有看到日誌中的csc.exe命令行,那麼您沒有以詳細模式運行。在詳細模式下,日誌應顯示如下內容:任務「Csc」 C:\ Windows \ Microsoft.NET \ Framework \ v4.0.30319 \ Csc.exe/noconfig/nowarn:1701,1702/nostdlib +/errorreport:prompt /戰爭 n:4/define:DEBUG; TRACE; SILVERLIGHT/reference:... – 2012-03-06 15:16:05