問題描述
我可以在 4.0 應用程序中引用 .NET 3.5 .DLL 嗎? (Can I reference a .NET 3.5 .DLL in a 4.0 app?)
主題說明了一切...如果我有一個 .NET 4.0 應用程序,我可以添加對 2.0/3.0/3.5 .DLL 的引用嗎?我沒有安裝 VS2010,所以我無法檢查自己(我目前正在研究)。
我試圖在 SO 和 Google 上查找信息,但我遇到了衝突答案。
參考解法
方法 1:
Yes, you can ‑ but if it's a mixed mode assembly (i.e. contains a mixture of native code and .NET code) then I believe that can cause problems. (IIRC the MySql driver had this problem recently, and devs had to rebuild under .NET 4 to get it to work.)