Click here to Skip to main content
15,889,403 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello Developers and freaks

I'm Ulas From TR. My Question so Simple

So Let say we got two project

P1 : this is the project must take the dll files inside , let's say this is WinForm Project

P2 : this is the DLL Project writen in Dif/Same Computer Doesn't matter any way.
So let name that project DLL , and file name is DLL.dll

so what i try to accomplish with that question



my moving plan so simple.

Let's talk about the question with an example



Inside the P1, there is a class name DLLgatherer

the DLLgatherer look at the specific folder named as DLLB : DLLBucket

C#
using....

internal string DLLBLoc = @"..\\DLLB"; // DLLB is a folder dont forget

public class DLLgatherer
{

public void DLLgatherer()
{

directory DLLBF = new directory("..\\DLLB"); /// look in for the folder, is there file in there

/*
///////////////////////////////////
in here some stuff happend just move that file like a *.txt or else file // Like Normal document , dosen't need to be something else. Don't forget we need DLL
///////////////////////////////////

so in here i wanna do something like that

1.Accesss that dll file let say the dll file name is : DLL.dll
2.with the special code or github repo / open source nuget lib // i need to see the dll access code to re-write under my reqs.
3. try to find this file in DLL.dll>DLLAccessTerminal.cs //this is the standart dll file that i want to write in every dll.
4.DLL.dll>DLLAccessTerminal.cs> // Own standart method work let named as : Panel

DLL.dll > DLLAccessTerminal.cs > public void Panel()...


5. do the rest of the special process with the P1 Program when access the DLL.dll file*/

}

}

So in a simple question, i don't wanna add that dll when i'm making changes over the time. I just wanna write the P1 Project ONCE. For every changes i wanna send the P2'DLL.dll' file in the another computer (when i make changes). when the DLL.dll file reach there, The P1 program see and access that file and do the jop under that file commands. probably we can call the P2 'DLL.dll' file for P1 as a code-protocol-file. in somehow. So i don't wanna implement every changes in dll to the P1 references and after send new exe to the other computer. I just wanna send the dll and the status solve.

I hope the information not weirdo for you so much if you want i can rec my screen and try to more understandable for you people. But i really do this for my Project.

Thank you...

What I have tried:

What I have tried:

i try to send my all code theacher and pros to accomplish that problem that i got but non off them can answer. Please help me.
Posted
Updated 16-Sep-19 22:58pm
v2

1 solution

All you have to do is add a reference to the DLL file in your other projects, and they can access the classes as if they were part of the same project - add a using statement to the top of each file to access the namespace and you're off.
 
Share this answer
 
Comments
NAXSIS61 17-Sep-19 8:16am    
So with the VS X IDE can do that but i need to make with the code

i mean the main project P1 does not requare to re-compile when multiple DLL file need to connect.

so in a code by the way that's so basic.

Application.References AR = Application.References();

AR.Add("DLLB"); // we input DLL location
string[] DLLList = AR.List(); //the class got array to store dll name etc
//let's say DLLB in 3th index.
AR[3].Include();

//so we write method in the main project class can call the DLLB class , methods etc.

i don't wanna use the VS self compiling. i need code to add the DLL
OriginalGriff 17-Sep-19 8:39am    
Just build a Release version of the DLL, and add a reference to that in the other solution project. That will copy the DLL to the BIN folder and you can use it.
NAXSIS61 17-Sep-19 9:00am    
So okay you telling me file copying between projects but i SURELY ask a CODE about that. in any language. the solution that you said i know how to do. but i don't and i can't do that in the project that i was in. i NEED CODEEEEE.
OriginalGriff 17-Sep-19 10:58am    
You don't need a code: all you do is add a reference in your existing project and the system picks it all up from there.
Then, when you release you software, the install program adds the required DLL's to the package and it all gets copied to the client computer.

No code is involved!
NAXSIS61 17-Sep-19 13:15pm    
so the sh*t that you recomend is i already know and do it. Nothing is impossible in programming so you say " no code is involved " it's mean you don't know / how to know. so that's why you can't write. At last and least please don't make nay comment more, thaks you for you helping but it doesn't work cause i know what i need to do MANUALLY = is you recomendation, Okay. Thank you.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900