我有一个包含两个项目的解决方案。其中一个项目是具有DLL文件的库。我希望能够在另一个项目中引用此项目库以使用其类。我的最终目标是这样做,同时仍然可以访问库源代码。我尝试了引用.dll和引用.csproj。两种情况都可以工作,但我得到了120个警告,代码为CS0436:
Warning CS0436 The type 'BitField' in 'C:\FilePath' conflicts with the imported type
'Typename' in 'LibraryName, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
Using the type defined in 'C:\FilePath'. LibraryName C:\FilePath 38 Active
我花了一个多小时阅读MSDN指南和这个网站上的其他帖子。因此,我非常希望没有人将其标记为重复线程。