English 中文(简体)
其他解决项目参考的批量级图书馆的地点
原标题:set location of dll class library which is referenced in other project in solution

我正在做一个有3个项目(c#)的解决办法。

  1. Main executable project
  2. Dll
  3. Dll

Main project has references to others. I want to have following file structure in my main project:

main.exe 
Libraries - folder
  + 2.dll
  + 3.dll

但不幸的是,VS将这些DL文件存放到EXE地点。

有什么简单的解决办法?

最佳回答

你们可以改变有关儿童DLLs的输出途径,以指明图书馆。

然而,这不是一条标准道路。 如果你试图部署这支部队,那么,如果你手上从这些地点卸下武器,则你可能会有问题。

如果你的项目参考书标为当地版,那么我并不认为你可以把视觉演播室的档案转换成配置。

但是,你可以在每栋楼后自动将档案移至所希望的子宫。

<>Update>

我爱这个网站,因为它使我能够每天学习新的东西。 作为一个例子,我刚刚发现,即:你可以在你的卷宗中添加其他途径,以补充标准检验途径。

这一配置要素允许。 查询<代码>图书馆 DLs装货的夹,以便你在工作完成后无需做任何额外工作(你仍需要使用后布指挥将其移至该名录)。

这里是支持你的组合的集邮录:

<configuration>
   <runtime>
      <assemblyBinding>
         <probing privatePath="binlibraries"/>
      </assemblyBinding>
   </runtime>
</configuration>
问题回答

我有同样的问题,但以往的例子没有奏效。 只有在我指出这一计划之后,一切都做了以下工作:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <probing privatePath="Libraries"/>
    </assemblyBinding>
  </runtime>
</configuration>




相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签