久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

運行 MSBuild 無法讀取 SDKToolsPath

Running MSBuild fails to read SDKToolsPath(運行 MSBuild 無法讀取 SDKToolsPath)
本文介紹了運行 MSBuild 無法讀取 SDKToolsPath的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

問題描述

您好,在使用 VS2008 及其相關(guān)工具進行編譯時,我在運行用于正確構(gòu)建基于 .Net 2.0 的網(wǎng)站的 NAnt 腳本時遇到了一些問題.我最近將所有項目/解決方案文件升級到 VS2010,現(xiàn)在我的構(gòu)建失敗并出現(xiàn)以下錯誤:

Howdy, I'm having a bit of an issue runnning a NAnt script that used to properly build my .Net 2.0 based website, when compiling with VS2008 and it's associated tools. I've recently upgraded all the project/solution files to VS2010, and now my build fails with the following error:

[執(zhí)行]C:WindowsMicrosoft.NETFramework64v4.0.30319Microsoft.Common.targets(2249,9):錯誤 MSB3086:找不到任務(wù)"sgen.exe" 使用 S dkToolsPath ""或注冊表項"HKEY_LOCAL_MACHINESOFTWAREMicrosoftMicrosoftSDKsWindowsv7.0A".確保SdkToolsPath 設(shè)置和工具存在于正確的處理器中下的具體位置SdkToolsPath 和 Microsoft已安裝 Windows SDK

[exec] C:WindowsMicrosoft.NETFramework64v4.0.30319Microsoft.Common.targets(2249,9): error MSB3086: Task could not find "sgen.exe" using the S dkToolsPath "" or the registry key "HKEY_LOCAL_MACHINESOFTWAREMicrosoftMicrosoft SDKsWindowsv7.0A". Make sure the SdkToolsPath is set and the tool exists in the correct processor specific location under the SdkToolsPath and that the Microsoft Windows SDK is installed

現(xiàn)在,我確實在構(gòu)建服務(wù)器上安裝了 Windows SDK 的早期版本 (.Net 3.5),并且安裝了完整的 .Net 4.0 框架,但我沒有運行過特定于 .Net 4.0 版本的Windows SDK.

Now, I DO have prior versions (.Net 3.5) of the Windows SDK installed on the build server, and the full .Net 4.0 framework is installed, but I've not run across a .Net 4.0 specific version of the Windows SDK.

經(jīng)過一番實驗和研究,我終于設(shè)置了一個新的環(huán)境變量SDKToolsPath",并將其指向我的 windows 6.0 sdk 文件夾中的 sgen.exe 副本.這產(chǎn)生了相同的錯誤,但它讓我注意到即使設(shè)置了 SDKToolsPath 環(huán)境變量(確認(rèn)我可以在命令行回顯"它并且它具有預(yù)期值),錯誤消息似乎表明它是沒有被閱讀(注意空引號).

After a bit of experimentation and research, I finally just setup a new environmental variable "SDKToolsPath" and pointed it to the copy of sgen.exe in my windows 6.0 sdk folder. This generated the same error, but it got me to notice that even though the SDKToolsPath environmental variable IS set (confirmed that I can "echo" it at the command line and it has the expected value), the error message seems to indicated that it's not being read (note the empty quotes).

我發(fā)現(xiàn)的大部分信息都是特定于 .Net 3.5(或更早版本)的.目前還沒有多少與 4.0 相關(guān)的內(nèi)容.搜索錯誤代碼 MSB3086 也沒有任何用處.知道這可能是什么嗎?

Most of the information I've found is .Net 3.5 (or earlier) specific. Not much 4.0 related out there yet. Searching for error code MSB3086 generated nothing useful either. Any idea what this might be?

斯科特

推薦答案

我不得不硬著頭皮在我們的構(gòu)建服務(wù)器上安裝 VS 2010 來解決這個問題.據(jù)我所知,MSDN 上的任何地方都沒有 7.0A 版本的 Windows SDK.但是,安裝 VS 2010 似乎會安裝它,在 Program FilesMicrosoft SDKsWindows 中創(chuàng)建一個 7.0A regkey 和一個 7.0A 文件夾.

I had to bite the bullet and install VS 2010 on our build server to fix this issue. As far as I can see, there's no 7.0A version of the Windows SDK available anywhere on MSDN. However, installing VS 2010 appears to install it, creating a 7.0A regkey and a 7.0A folder in Program FilesMicrosoft SDKsWindows.

這篇關(guān)于運行 MSBuild 無法讀取 SDKToolsPath的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!

相關(guān)文檔推薦

Is there a way to know if someone has bookmarked your website?(有沒有辦法知道是否有人為您的網(wǎng)站添加了書簽?)
Use of Different .Net Languages?(使用不同的 .Net 語言?)
Determining an #39;active#39; user count of an ASP.NET site(確定 ASP.NET 站點的“活動用戶數(shù))
Select x random elements from a weighted list in C# (without replacement)(從 C# 中的加權(quán)列表中選擇 x 個隨機元素(無需替換))
Best way to keep track of current online users(跟蹤當(dāng)前在線用戶的最佳方式)
Recommend an Open Source .NET Statistics Library(推薦一個開源的.NET統(tǒng)計庫)
主站蜘蛛池模板: 18岁毛片 | 国产一级网站 | 欧美精品一区在线观看 | 日韩午夜在线 | 久草免费福利视频 | 日韩视频精品 | 午夜精品免费 | 日韩国产中文字幕 | 国产成人小视频 | 男女免费视频 | 欧美一级在线观看 | 国产精品久久久久久久成人午夜 | 午夜黄视频 | 欧美天天干 | 精品一区二区三区免费看 | 免费av在线| 在线观看网址你懂的 | 欧美日韩综合网 | 欧美日韩精品一区二区 | 亚洲日本高清 | 密乳av | 黄色国产精品 | 久久精品一区二区三区不卡牛牛 | 黄大色黄大片女爽一次 | 成 人 黄 色 片 在线播放 | 成人国产在线 | 国产成人+综合亚洲+天堂 | 国产一区高清 | 极品尤物一区二区三区 | 午夜免费福利视频 | 天堂va蜜桃一区二区三区 | 色综合99 | 成人免费看片39 | 成人一级视频 | 国产精品看片 | 成人午夜网站 | 免费在线观看黄 | 国产精品伦 | 91中文在线| www.日韩| 91免费版看片 |