Referencing dlls without copying them C# -


when create new c# project , reference dll, dll copied project's output directory when compiling project.

is there way of referencing dll files , not copying them project's output directory, , have executable work them when being run (something assemblies if i'm not mistaken)?

i tried accessing reference dll's properties, , changed copy local false didn't (probably because dll depending on other dlls located in dll's directory).

is there way of doing that?

actually can have assemblies copied gac not ideal solution.

you have remember each assembly copied gac has strong named. if projects uses nuget packages problem install packages gac. believe not purpose of using nuget either.

another option loading dlls different directory default bin folder using <codebase> tag in configuration:

<configuration> <runtime>   <assemblybinding xmlns="urn:schemas-microsoft-com:asm.v1">      <dependentassembly>         <assemblyidentity name="myassembly2"  culture="neutral" publickeytoken="307041694a995978"/>         <codebase version="1.0.1524.23149" href="file://c:/myassemblies/myassembly2.dll"/>      </dependentassembly>   </assemblybinding> </runtime> </configuration> 

but remember possible during runtime.

edit: since problem have refer sdk, under development, think neither gac nor codebase work. 1 thing versioning problem(you have refer specific sdk version), other should recompile tool after new sdk release because metadata stored in assembly, can outdated new sdk version.


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -