[Silverlight] Project file must include the .NET Framework assembly 'WindowsBase, PresentationCore, PresentationFramework' in the reference list.
標題隨便打
昨天開發Silverlight 4時,想說把圖片包在.xap檔裡編譯,會讓.xap檔太大
於是把images資料夾移到Web Application專案裡的ClientBin資料夾底下
(請注意圖片的Build Action)
(Image Control的Source已經設好路徑)
把images資料夾移到Web App>ClientBin底下
接著Build整個Solution
錯誤就發生了
Error 1 Project file must include the .NET Framework assembly 'WindowsBase, PresentationCore, PresentationFramework' in the reference list. UseResource.Web
看訊息很直覺的,就是對Web App專案加'WindowsBase, PresentationCore, PresentationFramework的參考,但不加還好,加了之後反而錯更多XD
後來發現把ClientBin>images底下的圖片 Build Action改成Content 就OK了