![](/img/trans.png)
[英]Referencing a class library without having to reference the library's service references
[英]Create a C# library which in turn references another library without actually having it
我想創建一個 C# 庫HighLevel.dll ,它也使用 Visual Studio 引用另一個庫LowLevel.dll 。 這兩個庫都是單獨存儲庫中的單獨項目。 當我添加LowLevel.dll作為對HighLevel.dll項目的引用時,我實際上需要編譯的LowLevel.dll程序集。 這也意味着克隆HighLevel庫項目的任何人都需要適當的LowLevel.dll 。
是否可以在沒有實際擁有目標LowLevel.dll 的情況下添加引用?
如果這與在運行時加載庫有關,該怎么做?
聽起來您想創建一個引用其他 nuget 包的 nuget 包。 當有人安裝您的軟件包時,其他 nuget 軟件包也會自動拉入。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.