Adding nuget files to Different folders in a Visual Studio project -


i have private hosted nuget repository .nupkg including several dll files. these files compiled c++ plugins interacting hardware, printers, cameras etc. have c# project, set startup project in solution. usual way i'm adding these dlls press "add existing item" on project , set build action content , copy output directory copy if newer. when built, dlls can found in output directory.

i want process having these files in nuget repo, when pressing "manage nuget packages" on project, these files added reference. how can define nuget adding dll files? event possible?

it turns out don't need know location of dll. use name , .net find you, because dll referenced.

in sample have referenced nlog nuget package:

var assemblyname = assemblyname.getassemblyname("nlog.dll"); var assembly = assembly.load(assemblyname); var types = assembly.gettypes(); 

from: https://msdn.microsoft.com/en-us/library/system.reflection.assemblyname.getassemblyname%28v=vs.110%29.aspx


Comments