简体   繁体   中英

how to use namespace of external project?

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM