Where are the libraries located in C#?
-
I don't tend to move them, instead I add a reference to the project, so I get the "latest version" if it gets updated (and a copy of the DLL will get added to your debug or release folders) or I add the project as an "Existing Project" to the solution which lets me update the DLL project from both solutions (that one takes a little discipline in order to not break other apps!) My Utilities are never constant - I add methods and classes to them all the time, and this way I get the "Latest version" to work with regardless of the project I am working on. The other solution is to install your DLL in the GAC but that means strong names and so forth: How to: Install an assembly into the global assembly cache | Microsoft Docs[^]
Sent from my Amstrad PC 1640 Never throw anything away, Griff Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!
Thanks for the link Griff, it will be very useful. Brian
-
Hi, when you want to reuse a library (a managed code DLL file), you must “add a reference” and Visual Studio will include the DLL in your new project and copy it to the approapriate location. Copying the file yourself would not be sufficient. :)
Luc Pattyn [My Articles] Nil Volentibus Arduum
Hi Luc. When you say reference do you mean add "using Engine3" to my code? If I did that then it still needs to know where to find Engine.dll, maybe your referring to something else. Brian
-
Hi Luc. When you say reference do you mean add "using Engine3" to my code? If I did that then it still needs to know where to find Engine.dll, maybe your referring to something else. Brian
There is a menu item that says either “add ...” or “add reference”, it may be a context menu for your project in the “solution pane”. Look around and you will find it. :)
Luc Pattyn [My Articles] Nil Volentibus Arduum
-
There is a menu item that says either “add ...” or “add reference”, it may be a context menu for your project in the “solution pane”. Look around and you will find it. :)
Luc Pattyn [My Articles] Nil Volentibus Arduum
OK thanks. Brian
-
There is a menu item that says either “add ...” or “add reference”, it may be a context menu for your project in the “solution pane”. Look around and you will find it. :)
Luc Pattyn [My Articles] Nil Volentibus Arduum
I think I found it as Reference Manager. I have a choice of Solution under Projects or Solution under Shared Projects to browse for the dll file.There is also 'Browse recent' but I don't think that's the right one to use. Brian
-
Hopefully this time I appear as BrianTheLion Brian
-
CHill60 wrote:
that's quite cool animal cruelty
FTFY!
Sent from my Amstrad PC 1640 Never throw anything away, Griff Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!
-
Opps I see what you mean. It won't let me change to BrianTheLion (says it's taken) so BriainTheLion well have to do.
-
I think I found it as Reference Manager. I have a choice of Solution under Projects or Solution under Shared Projects to browse for the dll file.There is also 'Browse recent' but I don't think that's the right one to use. Brian
The details vary for different versions of Visual Studio. The dialog you want is called "Add Reference" in VS2008, and "Reference Manager" in VS2015, I don't know for other versions (VS2019 has been made available just now). And I never used the "shared projects" feature. :)
Luc Pattyn [My Articles] Nil Volentibus Arduum
-
It should be BrianTheLoin. It may have picked up Brain from my computer. When the tech installed the operating system he typed in Brain instead of Brian by mistake. Brian
-
CHill60 wrote:
that's quite cool animal cruelty
FTFY!
Sent from my Amstrad PC 1640 Never throw anything away, Griff Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!
-
It should be BrianTheLoin. It may have picked up Brain from my computer. When the tech installed the operating system he typed in Brain instead of Brian by mistake. Brian
And now you have BriainTheLion! :laugh:
Sent from my Amstrad PC 1640 Never throw anything away, Griff Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!
-
Hi Eddy. I just want to use some of the classes within Engine3.dll in a new project. So I need to copy Engine.dll from my old project over to my new project but don't know where the destination is to put Engine3.dll Brian
The assembly would need to become part of the project; easiest way to do so is to create a "bin" folder (or similar) and drop them all there, with "Copy to target" to true. When building, the assemblies would be copied to the build-folder.
Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^] "If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
-
The assembly would need to become part of the project; easiest way to do so is to create a "bin" folder (or similar) and drop them all there, with "Copy to target" to true. When building, the assemblies would be copied to the build-folder.
Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^] "If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
Thanks Eddy, I'll keep that in mind. Brian
-
The details vary for different versions of Visual Studio. The dialog you want is called "Add Reference" in VS2008, and "Reference Manager" in VS2015, I don't know for other versions (VS2019 has been made available just now). And I never used the "shared projects" feature. :)
Luc Pattyn [My Articles] Nil Volentibus Arduum
Hi Luc. I'm using the 2015 version of Visual Studio. Do you know if it's still possible to download the 2015 version should something happen to my 2015 version of Visual Studio? I'm told that there are errors in latest version of Visual Studio. Brian
-
Thanks Eddy, I'll keep that in mind. Brian
-
Hi Luc. I'm using the 2015 version of Visual Studio. Do you know if it's still possible to download the 2015 version should something happen to my 2015 version of Visual Studio? I'm told that there are errors in latest version of Visual Studio. Brian
Luc Pattyn [My Articles] Nil Volentibus Arduum