Compile Question
-
How do you compile to a library in C#. or how can i bring a DLL into the final exe so I don't have to install the dll. I have classes that i use often and don't like just copying the .cs into my project. I'd like a library to link from but don't know how to make it. Thanks
Ronald Hahn, CNT - Computer Engineering Technologist New Technologies Analyst HahnTech Affiliated With Code Constructors Edmonton, Alberta, Canada Email: rhahn82@telus.net
-
How do you compile to a library in C#. or how can i bring a DLL into the final exe so I don't have to install the dll. I have classes that i use often and don't like just copying the .cs into my project. I'd like a library to link from but don't know how to make it. Thanks
Ronald Hahn, CNT - Computer Engineering Technologist New Technologies Analyst HahnTech Affiliated With Code Constructors Edmonton, Alberta, Canada Email: rhahn82@telus.net
HahnTech wrote:
How do you compile to a library in C#
Create a class library project and just compile it ;)
HahnTech wrote:
or how can i bring a DLL into the final exe so I don't have to install the dll.
copy the code over from the DLL to your form. This is ugly, the better way is:
HahnTech wrote:
I'd like a library to link from but don't know how to make it.
Add a reference to your DLL from your form. In the solution explorer there a folder called "References". You can there rightclick, "Add Reference" -> "Browse" -> select your DLL regards
-
HahnTech wrote:
How do you compile to a library in C#
Create a class library project and just compile it ;)
HahnTech wrote:
or how can i bring a DLL into the final exe so I don't have to install the dll.
copy the code over from the DLL to your form. This is ugly, the better way is:
HahnTech wrote:
I'd like a library to link from but don't know how to make it.
Add a reference to your DLL from your form. In the solution explorer there a folder called "References". You can there rightclick, "Add Reference" -> "Browse" -> select your DLL regards
I can make a DLL by using the create a class library project. And i can add a made dll as a reference into a new project but then i have to push the dll with the exe all the time. In C++ i can compile to a *.lib and tell the linker where the lib file is and it will compile the code from the lib into the exe and i don't need to push the lib all over the place. Is that possible in C#?
Ronald Hahn, CNT - Computer Engineering Technologist New Technologies Analyst HahnTech Affiliated With Code Constructors Edmonton, Alberta, Canada Email: rhahn82@telus.net
-
I can make a DLL by using the create a class library project. And i can add a made dll as a reference into a new project but then i have to push the dll with the exe all the time. In C++ i can compile to a *.lib and tell the linker where the lib file is and it will compile the code from the lib into the exe and i don't need to push the lib all over the place. Is that possible in C#?
Ronald Hahn, CNT - Computer Engineering Technologist New Technologies Analyst HahnTech Affiliated With Code Constructors Edmonton, Alberta, Canada Email: rhahn82@telus.net
You're looking for ILMerge[^].
Regards Senthil _____________________________ My Blog | My Articles | WinMacro
-
You're looking for ILMerge[^].
Regards Senthil _____________________________ My Blog | My Articles | WinMacro
Yes I am! Thank you!
Ronald Hahn, CNT - Computer Engineering Technologist New Technologies Analyst HahnTech Affiliated With Code Constructors Edmonton, Alberta, Canada Email: rhahn82@telus.net