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

.NET 4.0 構(gòu)建服務(wù)器引用程序集警告 MSB3644

.NET 4.0 build server reference assemblies warnings MSB3644(.NET 4.0 構(gòu)建服務(wù)器引用程序集警告 MSB3644)
本文介紹了.NET 4.0 構(gòu)建服務(wù)器引用程序集警告 MSB3644的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

問題描述

我的構(gòu)建服務(wù)器出現(xiàn)一堆錯誤:

I'm getting a bunch of errors on my build server:

C:WINDOWSMicrosoft.NETFrameworkv4.0.30319Microsoft.Common.targets(847,9):警告 MSB3644:未找到框架.NETFramework,Version=v4.0"的參考程序集.要解決此問題,請為此框架版本安裝 SDK 或 Targeting Pack,或者將您的應(yīng)用程序重新定位到已安裝 SDK 或 Targeting Pack 的框架版本.請注意,程序集將從全局程序集緩存 (GAC) 中解析,并將用于代替引用程序集.因此,您的程序集可能無法正確定位于您想要的框架.[D:adismercuryAdisFeedscacheAdis.Feeds.Cache.ConsoleManagerAdis.Feeds.Cache.ConsoleManager.csproj]

C:WINDOWSMicrosoft.NETFrameworkv4.0.30319Microsoft.Common.targets(847,9): warning MSB3644: The reference assemblies for framework ".NETFramework,Version=v4.0" were not found. To resolve this, install the SDK or Targeting Pack for this framework version or retarget your application to a version of the framework for which you have the SDK or Targeting Pack installed. Note that assemblies will be resolved from the Global Assembly Cache (GAC) and will be used in place of reference assemblies. Therefore your assembly may not be correctly targeted for the framework you intend. [D:adismercuryAdisFeedscacheAdis.Feeds.Cache.ConsoleManagerAdis.Feeds.Cache.ConsoleManager.csproj]

問題是我已經(jīng)安裝了 windows SDK 7.1 的 .NET 部分....我特別小心地選中了 .net 4.0 參考程序集旁邊的框.

The problem is that I have already installed the .NET parts of the windows SDK 7.1. ... I was especially careful to check the box next to the .net 4.0 reference assemblies.

有人對出了什么問題有任何建議嗎?

Does anyone have any suggestions as to what's going wrong?

為了記錄,我使用 Nant 為 msbuild nant 任務(wù)運(yùn)行構(gòu)建腳本(0.86 版)和 nant.contrib (0.85).

For the record I am using Nant to run the build scripts (ver 0.86) and nant.contrib (0.85) for the msbuild nant task.

更新我只是從那個角度往下跑.我使用 msbuild 編譯了解決方案,并在我的開發(fā)機(jī)器上進(jìn)行了診斷日志記錄,然后在構(gòu)建服務(wù)器上再次編譯.然后我比較了日志.

Update I was just running down that angle. I compiled the solution using msbuild with diagnostic logging on my dev machine and then again on the build server. Then I compared the logs.

似乎顯著的區(qū)別在于缺少對 Program FilesReferences Assemblies 路徑的任何引用.特別是在 FrameworkPathOverride 中.

Seems the significant difference there is the lack of any references to the Program FilesReferences Assemblies path. Specifically in FrameworkPathOverride.

所以我嘗試將 FrameworkPathOverride 作為命令行參數(shù)添加到 msbuild.不幸的是,這只是讓我不幸地發(fā)現(xiàn),參考程序集目錄中似乎只有 xml 文件.因?yàn)橹挥?mscorlib.xml.沒有 mscorlib.dll

So I tried adding FrameworkPathOverride as a commandline parameter to msbuild. Unfortunately that just led me to the unfortunate discovery that the reference assemblies directories only seem to have the xml files in them. As in there is only mscorlib.xml. No mscorlib.dll

這到底是怎么回事?!?

What the heck is going on?!?

推薦答案

好的,我找到了一個可行的解決方案.你需要做兩件事:

Ok I found a solution that works. You need to do two things:

  1. 首先將 FrameworkPathOverride 添加為命令行參數(shù),并將其指向引用程序集目錄.

有點(diǎn)像

  msbuild -p:FrameworkPathOverride="C:Program FilesReference AssembliesMicrosoftFramework.NETFrameworkv4.0"

  1. 您需要做的第二件事是找到參考程序集目錄的完整版本.由于windows SDK安裝的副本和visual studio安裝的副本,我只是從我的開發(fā)機(jī)器上復(fù)制了我的.工作正常.

最后一點(diǎn):這可能首先發(fā)生在我身上的原因是我們的構(gòu)建服務(wù)器是一個不錯的舊 Windows Server 2003 版本.Windows SDK 安裝太舊無法應(yīng)付?

One final note: the reason this might have happened to me in the first place is that our build server is a nice old windows server 2003 one. Too old for the windows SDK install to cope with?

這篇關(guān)于.NET 4.0 構(gòu)建服務(wù)器引用程序集警告 MSB3644的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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 站點(diǎn)的“活動用戶數(shù))
Best way to keep track of current online users(跟蹤當(dāng)前在線用戶的最佳方式)
Recommend an Open Source .NET Statistics Library(推薦一個開源的.NET統(tǒng)計庫)
Create a summary description of a schedule given a list of shifts(給定輪班列表,創(chuàng)建時間表的摘要描述)
主站蜘蛛池模板: 国产精品日日夜夜 | 免费在线成人 | 一区二区在线免费观看 | 91麻豆蜜桃一区二区三区 | 久久一二区 | caoporn地址 | 成人精品一区二区 | 国内久久 | 婷婷成人在线 | 亚洲精品丝袜日韩 | 狠狠干网站 | 午夜在线免费观看 | 国产观看 | 久久久久久久电影 | 综合久久av | 好好的日在线视频 | 国产视频一区在线 | 男女羞羞的网站 | 一二三区视频 | 日韩精品一区二区三区在线播放 | 成人在线视频观看 | 老司机精品福利视频 | 免费一区二区三区在线视频 | 激情网五月天 | 免费看国产精品视频 | 日韩在线观看精品 | 欧美在线一区二区三区 | 日韩视频免费 | 黑人中文字幕一区二区三区 | 亚洲成网站 | 最新日韩精品 | 成人免费视频7777777 | 一区在线观看 | 成人av鲁丝片一区二区小说 | 欧美在线观看一区 | 国产精品区一区二 | 91麻豆久久久| 夜夜草av| 国产精品久久久亚洲 | 一级毛片免费视频观看 | 亚洲精品乱码久久久久久按摩观 |