Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

狀況

當您重新編譯使用.NET 可移植的程式庫,為目標的 Microsoft.NET Framework 4.5.2 的 Microsoft.NET Framework 4.5.1 應用程式時,會在編譯期間收到下列錯誤訊息︰

未被參考的組件中定義的型別 '{類型}'。您必須新增組件 '{組件}' 的參考。


注意在這個錯誤訊息中{組件}表示其中一個實際檔案,位於 「 C:\Program 檔案 (x86) \Reference Assemblies\Microsoft\Framework\。NETFramework\v4.5.2\Facades"的資料夾。

例如,錯誤訊息類似下列訊息︰

未被參考的組件中定義的型別 'System.Object'。您必須加入至組件參考 ' System.Runtime、 版本 = 4.0.0.0,文化特性 = 中性,PublicKeyToken = b03f5f7f11d50a3a'。

'System.Attribute' 的型別被定義在未被參考的組件。您必須加入至組件參考 ' System.Runtime、 版本 = 4.0.0.0,文化特性 = 中性,PublicKeyToken = b03f5f7f11d50a3a'。

解決方案

若要解決這個問題,安裝更新的版本的 Microsoft.NET Framework 4.5.2 開發人員套件。下載資訊,請參閱微軟知識庫文件 2901951

Need more help?

Want more options?

探索訂閱權益、瀏覽訓練課程、瞭解如何保護您的裝置等等。

社群可協助您詢問並回答問題、提供意見反應,以及聆聽來自具有豐富知識的專家意見。

Was this information helpful?

How satisfied are you with the translation quality?
What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×