Copy DLL from assembly to deployment

NET on my local computer I have a link to a DLL in a local local folder. I was wondering how can I “package” this DLL with my site deployment? When I deploy to an intermediate server, it starts complaining that it does not have this DLL. (This is not in the GAC staging server). Thanks.

+3
source share
3 answers

If your DLL link is not in the target computer's GAC, you must put the DLL in your web page \bin. For asp.net sites, DLL links must exist in the GAC or in a folder \bin. Alternatively, you can install your DLL in the GAC of your target computer using something like a WebSetup project.

+2
source

Have you tried to set the DLL link for CopyLocal = true?

+1
source

Visual Studio Save the reference location as relative paths, so put it in a folder in your project and make sure that the Copy Local property is correct, it will force VS to copy the file to the output directory.

+1
source

Source: https://habr.com/ru/post/1704856/


All Articles