|
-
Aug 28th, 2018, 06:30 AM
#1
Library Deployment
We have a library that provides read only functionality to some databases. This library depends on two othe libraries. All works as expected when testing with a sample application.
My question is how to provide developers that work in other agencies this library / libraries. What I have done so far is to make copies of all three libraries and give that to the developers. That seems to work, but I don't know why.
What I don't understand is how the references are resolved. Any insight would be appreciated, especially if it means I don't have to worry
-
Aug 28th, 2018, 07:58 AM
#2
Re: Library Deployment
A .NET assembly basically looks in the same folder and in the GAC by default for any assemblies it references, so if your developers are adding references to the DLLs you provide and setting Copy Local to True for those references (which should happen by default) then they will end up in the same folder as the EXE and everything will just work.
A slightly better option might be to create a NuGet package and host it on your network. They can then add that package in VS and it will be downloaded from the appropriate source and everything will just work. The nice thing about NuGet is that it makes it easy to package dependencies and also provide updates.
-
Aug 28th, 2018, 08:07 AM
#3
Re: Library Deployment
 Originally Posted by jmcilhinney
A .NET assembly basically looks in the same folder and in the GAC by default for any assemblies it references, so if your developers are adding references to the DLLs you provide and setting Copy Local to True for those references (which should happen by default) then they will end up in the same folder as the EXE and everything will just work.
A slightly better option might be to create a NuGet package and host it on your network. They can then add that package in VS and it will be downloaded from the appropriate source and everything will just work. The nice thing about NuGet is that it makes it easy to package dependencies and also provide updates.
Thanks John.
-
Aug 28th, 2018, 08:24 AM
#4
Re: Library Deployment
If you're interested in NuGet, you might start here:
https://theroks.com/create-and-host-...uget-packages/
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|