是否有可能有相对的参考? [英] Is it possible to have relative references?

查看:101
本文介绍了是否有可能有相对的参考?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

所以我的bin目录包含我所有的.dll,.exes等等。现在,由于我的应用程序支持扩展,我希望它们是放置在子文件夹中,"模块"。因为它们引用了我的主.exe,它位于扩展名上方的目录中,
,当我构建它们时,.exe被复制到Modules文件夹,但我希望扩展名知道.exe位于他们上面的文件夹,他们应该使用它。示例:

So I have my bin directory with all my .dlls, .exes, etc. Now, since my app supports extensions, I would like them to be placed in a child folder, "Modules". Since they reference my main .exe, which would be in my directory above the extensions, that .exe is copied to the Modules folder when I build them, but I want the extensions to know that the .exe is located in the folder above them, and that they should use that. Example:

我的主要程序集位于文件夹C:\ AppName \ bin中。我的扩展名位于C:\ AppName \ bin\Modules文件夹中。由于我的扩展引用了主.exe,Visual Studio会自动将.exe复制到Modules文件夹。我希望Visual Studio知道$。b $ b .exe位于它们上面的文件夹中。

I have my main assemblies in folder C:\AppName\bin. My extensions are located in the C:\AppName\bin\Modules folder. Since my extensions reference the main .exe, Visual Studio automagically copies the .exe to the Modules folder. I want Visual Studio to know that the .exe is located in the folder above them.

如果你不明白,我会尽量让它更清楚。

If you don't understand, I will try to make it more clear.

谢谢,

Theo

推荐答案

你能澄清一下吗?你的意思是"扩展"?
Could you clarify as to what you mean by "extensions"?


这篇关于是否有可能有相对的参考?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆