如何使用外部项目的命名空间?
how to use namespace of external project?
当前:
我的程序中使用了以下内容。
using Mtx;
这允许我使用 Mtx.* 属性。它指的是 "Externals" 文件夹中的一个文件。
路径是: Externals/Mtx.dll
需要:
但是,出于调试目的,我现在想在外部拥有整个 mtx 解决方案并使用它。
路径是: Externals/Mtx/(solution in there with all folders)
我该怎么做,而不是使用引用 Mtx.dll
,它现在引用解决方案并构建它有自己的一部分?
我认为您误解了一些概念并且混淆了一些东西。让我用你自己的解释来解释:
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
using
关键字允许您在命名空间内使用 classes,而无需每次都键入整个命名空间。它与 dll classes 无关,您可以在 class 中使用所有 public dll,只需使用整个命名空间 + class 名称,仅将其添加为项目参考。
Needed :
However, for debugging purposes, I'd like to now have the whole mtx
solution in external and use it
出于调试目的,您只需要使用的 dll 的 pdb,考虑到您拥有源代码而无需更改任何其他内容,您将能够调试任何 class。
当前:
我的程序中使用了以下内容。
using Mtx;
这允许我使用 Mtx.* 属性。它指的是 "Externals" 文件夹中的一个文件。
路径是: Externals/Mtx.dll
需要:
但是,出于调试目的,我现在想在外部拥有整个 mtx 解决方案并使用它。
路径是: Externals/Mtx/(solution in there with all folders)
我该怎么做,而不是使用引用 Mtx.dll
,它现在引用解决方案并构建它有自己的一部分?
我认为您误解了一些概念并且混淆了一些东西。让我用你自己的解释来解释:
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
using
关键字允许您在命名空间内使用 classes,而无需每次都键入整个命名空间。它与 dll classes 无关,您可以在 class 中使用所有 public dll,只需使用整个命名空间 + class 名称,仅将其添加为项目参考。
Needed :
However, for debugging purposes, I'd like to now have the whole mtx solution in external and use it
出于调试目的,您只需要使用的 dll 的 pdb,考虑到您拥有源代码而无需更改任何其他内容,您将能够调试任何 class。