我正在開發在Visual Studio代碼F#,當我嘗試編譯我的代碼用假我得到上述錯誤:MSB3245:無法解析此引用(System.Drawing.Imaging)
warning MSB3245: Could not resolve this reference. Could not locate the assembly "System.Drawing.Imaging". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
然後一長串「考慮<various filepaths>
,但它不存在。」包括我的.NET Framework文件夾和GAC,這很奇怪。我就老老實實預料成像在System.Drawing.dll
是一個命名空間中聲明,但是編譯器甚至不似乎認爲此選項...
我得到相同的錯誤與System.Windows.Media
,System.Windows.Media.Imaging
和System.Windows.Media.IO
。可能相關的事實是,智能感知沒有拿起這些名稱空間,雖然它確實找到System.Drawing.Imaging ...