久久久久久久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)境變量(確認我可以在命令行回顯"它并且它具有預(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)計庫)
主站蜘蛛池模板: 伊人精品久久久久77777 | 日日夜夜草 | 亚洲成人精品免费 | 91精品国产综合久久国产大片 | 成人精品一区二区三区中文字幕 | 久久精品手机视频 | 337p日韩| 亚洲精品在线免费 | 日韩在线欧美 | 在线免费观看视频你懂的 | 精品久久久久久久 | 欧美精品三区 | 干干天天 | 久久九九99 | 久久成人av电影 | 国产xxxx在线 | 欧美午夜精品理论片a级按摩 | 一区二区三区在线观看免费视频 | 国产真实乱对白精彩久久小说 | 精品免费国产 | 秋霞a级毛片在线看 | 欧美成人精品一区二区三区 | 精品在线看 | www.色午夜.com | www.xxxx欧美 | 麻豆av电影网 | 国产精品美女久久久久aⅴ国产馆 | 懂色中文一区二区在线播放 | 激情六月丁香 | 亚洲精品永久免费 | 风间由美一区二区三区在线观看 | 国产高清免费在线 | 成人在线中文字幕 | 一区二区三区视频在线观看 | 久久av一区二区三区 | 欧美激情五月 | 成人在线视频观看 | 粉嫩一区二区三区国产精品 | 蜜桃视频在线观看www社区 | 日韩在线欧美 | 中文成人在线 |