how to use namespace of external project?

眉间皱痕 提交于 2020-01-07 03:19:07

问题


Currently :

I have the following Using in my program.

using Mtx;

which allows me to use Mtx.* properties. It refers to a file in "Externals" folder.

Path is : Externals/Mtx.dll

Needed :

However, for debugging purposes, I'd like to now have the whole mtx solution in external and use it.

Path is : Externals/Mtx/(solution in there with all folders)

How can I do so, so instead of Using refers to the Mtx.dll, it now refers to the solution and build it has part of its own?


回答1:


I think that you are misunderstanding some concepts and mixing things. Let me explain with your own explanation:

I have the following Using in my program.

using Mtx; which allows me to use Mtx.* properties. It refers to a file in "Externals" folder.

Path is : Externals/Mtx.dll

The using keyword allows you to use the classes inside a namespace without typing the whole namespace everytime. It has nothing to do with dll classes, you can use all the public dlls insidea class just using the whole namespace + the class name only adding it as a project reference.

Needed :

However, for debugging purposes, I'd like to now have the whole mtx solution in external and use it

For debugging purposes all you need are the pdb's of the dlls used and you will be able to debug any class considering you have its source code without changing anything else.



来源:https://stackoverflow.com/questions/30761543/how-to-use-namespace-of-external-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!