![](/img/trans.png)
[英]C# - with a reference to a base class, how can I access a property of the inherited class if I know that my reference is to the inherited class?
[英]How can I build my c# class library along with the reference?
我正在創建一個基礎類庫,該類庫大量包裝了另一個DLL參考。 我正在嘗試構建DLL,但似乎不包含參考。
有沒有一種方法可以將整個解決方案與參考DLL一起構建和打包到DLL中?
我想通了。 我使用Microsoft的ilmerge( https://www.microsoft.com/zh-cn/download/details.aspx?id=17630 )將DLL合並到單個DLL文件中。
只需遍歷以下內容,您將獲得合並的DLL。
步驟1:安裝ilmerge並將其放在系統類路徑中步驟2:
ilmerge /out:MergedDLLName.dll /closed DLL1.dll DLL2.dll DLL3.dll
希望這可以幫助。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.