2015-07-10 69 views
0

我在Project Proj1中有一個類,並且我想將它訪問到另一個Project Proj2中。兩個項目都在同一個解決方案中。我該怎麼辦它.Thanks提前如何在同一個項目解決方案中調用一個dll類到另一個dll

+0

將Proj1的參考文獻添加到Proj2中 –

+0

@ManishParakhiya,並將其作爲回答發佈,可能只有更多的解釋。 – Rahul

+0

其實這裏的循環依賴問題@ManishParakhiya –

回答

0

你能做的就是添加從Project 2項目引用到項目1項,像這樣:

  1. 在 「參考」 的項目2

右擊enter image description here

  • 添加參考...
  • enter image description here

  • 解決方案|項目
  • enter image description here

  • 蜱項目1(在我來說,我有一個名爲 「庫」 的項目,但同樣適用)
  • enter image description here

    然後點擊確定。這允許您訪問您的類以及您引用的項目中的每個其他類,只要訪問修飾符允許。

    相關問題