在C#解决方案中添加属于另一个解决方案的项目(Add projects in C# solution which belong to another solution)

编程入门 行业动态 更新时间:2024-10-24 15:21:45
在C#解决方案中添加属于另一个解决方案的项目(Add projects in C# solution which belong to another solution)

我有一个解决方案,它有许多项目,每个项目都引用第三方文件夹中的程序集。

我现在需要有权调试这些程序集的代码,幸运的是我必须编写代码。

我想知道在我当前的解决方案中引用程序集代码的最佳方法是什么?

我应该删除所有对程序集的引用(在第三方文件夹中),然后将这些程序集的项目添加到我当前的解决方案中,还是有更好的方法? 虽然这让我可以访问代码,但我在这里看到的问题是程序集最初是在第三方文件夹中,因此我需要确保在检查代码时必须切换回第三方文件夹。

必须有比这更好的方法吗?

I have a solution which has a number of projects and each project refers to assemblies that are in a third party folder.

I now need to have access for debugging the code of those assemblies and fortunately I have to code.

I was wondering what the best way is to reference the code of the assemblies in my current solution?

Should I remove all my references to the assemblies (in third party folder) and then add the projects of those assemblies to my current solution or is there a better way? Although this gives me access to the code, the problem I see here is the assemblies were originally in a third party folder so I will need to make sure I have to switch back to the third party folder when I check my code back in.

There must be a better way than this?

最满意答案

实际上你只需要第三方DLL的相应pdb文件。 pdb文件包含所有必要的信息。 无需删除引用。

You actually just need the corresponding pdb files of the third party DLLs. The pdb file contains all necessary information. No need to remove the references.

更多推荐

本文发布于:2023-08-07 19:23:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1465534.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:解决方案   项目   Add   belong   solution

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!