Analytics

2010年12月16日 星期四

[AppFabric Caching Services]解決 編譯前時發生警告訊息 The referenced assembly "Microsoft.ApplicationServer.Caching.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" could not be resolved because it has a dependency on "System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which is not in the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client". Please remove references to assemblies not in the targeted framework or consider retargeting your project. AppfabricConsoleTester


問題

編譯前時發生警告訊息 The referenced assembly "Microsoft.ApplicationServer.Caching.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" could not be resolved because it has a dependency on "System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which is not in the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client". Please remove references to assemblies not in the targeted framework or consider retargeting your project.

在建立好Appfabric的程式以後,當我要執行之前發生以下警告訊息:
2

解決方法



仔細看了一下,裏頭提到which is not in the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client"
所以檢查了一下編譯平台是否如IDE所說不一致
Capture
將它改成.NetFramework 4
4
警告就不見了!!且正常執行!!
3
所以開發Appfabric Caching的Namespace並不包含在.Net Framework 4 Profile Client而是位於.NetFramework 4底下

沒有留言:

熱門文章