我有一個C#項目,其目標框架設置爲.NET 4.5。出於某種奇怪的原因,所有引用都標有黃色警告三角形,如下所示。 我試過卸載並重新加載項目。我什至試圖手動重新添加一個系統引用無濟於事。項目中所有引用的Visual studio 2013黃色警告
我得到的警告是:
警告13引用的組件 'AutoMapper' 找不到。 Services.Contracts警告14找不到引用的組件 'AutoMapper.Net4'。 Services.Contracts 警告15找不到引用的組件'log4net'。 Services.Contracts警告16找不到引用的組件 'Mindscape.LightSpeed'。 Services.Contracts 警告17找不到引用的組件'Mindscape.LightSpeed.Linq' 。 Services.Contracts警告18找不到引用的組件 'System'。 Services.Contracts警告19找不到引用組件'System.Core' 。 Services.Contracts警告25找不到引用的組件'System.Data' 。 Services.Contracts警告24無法找到引用的 組件'System.Data.DataSetExtensions'。 Services.Contracts警告20找不到引用的組件 'System.Runtime.Serialization'。 Services.Contracts 警告21找到的引用組件'System.ServiceModel'不能爲 。 Services.Contracts警告22找不到引用的組件 'System.ServiceModel.Web'。 Services.Contracts 警告26找不到引用的組件'System.Xml'。 Services.Contracts警告23找不到引用的組件 'System.Xml.Linq'。 Services.Contracts
發生了什麼,我該如何解決這個問題?
你確實有.Net 4.5嗎? –
是的。此外,解決方案中的所有其他項目都將目標框架設置爲4.5並編譯正常。 –
不知道項目的年齡,但那些引用的程序集版本是什麼? –