我正在嘗試將幾個 dll 合并為一個 dll。我正在使用 ILMerge。它工作正常,但是在我添加了新代碼和新 dll 之后,它在運(yùn)行 ILMerge 時給了我一個異常。圖書館正在合并。只有當(dāng)我添加在 Visual Studio 中創(chuàng)建的主 dll 時,它才會引發(fā)異常。我收到這樣的錯誤:An exception occurred during merging:ILMerge.Merge: The assembly 'YamadaGS1_128' was not merged in correctly. It is still listed as an external reference in the target assembly. in ILMerging.ILMerge.Merge() in ILMerging.ILMerge.Main(String[] args)我嘗試添加/closed選項(xiàng)或更改Assembly Name,但它給出了相同的錯誤。我已將 ADODB 代碼添加到我的項(xiàng)目中。我不確定,還有沒有其他變化。但是在代碼修改后,我得到了這樣的錯誤。
1 回答

鳳凰求蠱
TA貢獻(xiàn)1825條經(jīng)驗(yàn) 獲得超4個贊
我已經(jīng)找到了解決我的問題的方法。
我必須設(shè)置embedded interop type
的ADODB
,以false
在VisualStudio中。
- 1 回答
- 0 關(guān)注
- 537 瀏覽
添加回答
舉報
0/150
提交
取消