簡體   English   中英

將我的VS2010定位到.NET4框架時遇到的問題

[英]Problems with targeting my VS2010 to .NET4 Framework

我不斷收到有關VS2010中框架的以下消息。 另外,我不能再將.net 4添加為目標框架。 我嘗試安裝/修復.net 4框架。 它一直告訴我一切都很好,但是隨后我仍然收到消息,無法定位.net 4或從項目屬性的下拉列表中添加它。 我不知所措。 任何建議將不勝感激。

Warning 8   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.

您是否嘗試過下載並安裝此程序?:

http://www.microsoft.com/download/zh-CN/details.aspx?displaylang=en&id=8279

它為其他人工作。

據我所知,這與僅用於運行應用程序的.NET框架不同。

C:\\ Program Files [(x86)] \\參考程序集\\ Microsoft \\ Framework.NETFramework \\ v4.0

這是VS查找參考程序集的文件夾。 它在您的機器上是否包含正確的東西? 如果不是,則需要修復VS。

該文件夾不是.NET 4安裝的一部分,因此,修復.NET 4並沒有太大幫助。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM