超級網迷

超級網迷+ 電腦迷+ 音樂迷
個人資料
正文

VS2010下編譯錯誤(C#)

(2012-05-06 19:34:12) 下一個
如果在VS2010下編譯時出現下麵的錯誤:

“Cannot embed interop types from assembly 'vjslib.dll' because it is missing either the 'ImportedFromTypeLibAttribute' attribute or the 'PrimaryInteropAssemblyAttribute' attribute”


下麵的方法或許管用:
"Right click on the project in the solution explorer window in order to bring up the context menu. This will give a number of options, but you want the final option, which you can see from the attached "PropertiesSolutionExplorer" image. Then, it will probably open to the last tab you used, but make sure you are on "Application" tab which is visible at the top of the tabs that are on the left side of the dialog. Right click on the drop-down arrow for the "Target framework:" and choose .Net Framework 4.0, not .Net Framework 4.0 Client (which is the default). Anyway, hopefully this post will make more sense." (Check the link)
[ 打印 ]
閱讀 ()評論 (0)
評論
目前還沒有任何評論
登錄後才可評論.