|
Thanks Griff for your reply.
I tried right clicking on Engine3 in the
At the moment Engine.dll is stored at
Documents\Visual Studio 2015\Projects\SuperAdventure3\Engine3
But if I create a new project called such as Test010119 then I want to copy the Engine3.dll over to my new project so I can reuse some of the classes in Engine3. I don't know where to move Engine3.dll so it's recognized by the new program.
Brian
|
|
|
|
|
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
|
|
|
|
|
BTW Brian, you do realize you can have a better username than "Member 14154627" if you want?
It's easy to do, just hover over your username at the top right and select "Settings" - change "Your Display Name" to one that is free ("Brian" is taken, but "Brian The Great" isn't for example - though that last may be a little presumptuous ). Click "Save My Settings" and you have a new display name
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 Griff.
I should now appear as Brian the Lion if all goes well (the name just popped up in my head).
Brian
|
|
|
|
|
Hopefully this time I appear as BrianTheLion
Brian
|
|
|
|
|
At the moment it says "Brain" instead of "Brian" … but that's quite cool
|
|
|
|
|
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!
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.
|
|
|
|
|
The standard libraries that are part of .NET are already on your system. Most of them will be in the GAC.
If you want to distribute your assembly, then I'd suggest CodeProject if you can take the time to write an article on what the thing does, and how/why it was built. If you don't feel like writing an article and just want to share the code, I'd recommend GitHub.
Bastard Programmer from Hell
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.
|
|
|
|
|
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
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
|
|
|
|
|
You're welcome
Bastard Programmer from Hell
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.
|
|
|
|
|
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.
|
|
|
|
|
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.
|
|
|
|
|
|
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.
|
|
|
|
|
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
|
|
|
|
|