Question regarding the DLL files
-
While creating C# Class Library (DLL) Using Visual Studio .NET, once we have created the dll file, then if we want to use the dll file in someother projoect then I have to add it as a reference by Project->Add reference. I was wondering if I have to do it everytime I create a new client program or just I have do it once and then in each client project/program I can call the namesapce by
using mcMath;
\\ Assuming that my dll is called mcMath -
While creating C# Class Library (DLL) Using Visual Studio .NET, once we have created the dll file, then if we want to use the dll file in someother projoect then I have to add it as a reference by Project->Add reference. I was wondering if I have to do it everytime I create a new client program or just I have do it once and then in each client project/program I can call the namesapce by
using mcMath;
\\ Assuming that my dll is called mcMathYou would stil have to add the reference to each application that you wrote that uses this .DLL. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-
You would stil have to add the reference to each application that you wrote that uses this .DLL. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
Can I create an installer which installs itself and I don't need to add it as a reference always? Regards and Thanks a lot, Amit
-
Can I create an installer which installs itself and I don't need to add it as a reference always? Regards and Thanks a lot, Amit
There's no such thing. The only way to get this functionality is if you modify the project templates to include your reference in the default list of references for that project. There's no such thing as just typeing
using ...
and having the reference automatically made. The only reason you think you see this is because the namespace that your using is part of an existing reference. Try it, create a new C# application, but don't add anything to it. Look under References and you'll see that there is a default set already made. Look in the Object Browser and you'll find that every namespace under those references (the .DLL's) is available just by typingusing ...
at the top of your code. But this exists ONLY because the references have already been made. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome