I am using Visual Studio 2005.
I've created 'Project1' and added a class library with 'class1' and built it to a DLL. I can use this class in 'Project2' without any problem.
However if I then add 'class2' to the library in 'Project1' and build it again I can still only access 'class1' from 'Project2'. This applies even if I remove the reference to the DLL and then add it again.
Am I doing something wrong?, or is it not possible to alter a class library after it has been used?
AlanPosted Nov 26, 2007, 4:26 AM
Thanks, they are public now and its working
AlanPosted Nov 23, 2007, 11:00 AM
Wow, you're the third Alan we have currently posting on the forum :)
When you added the second class to the dll did you remember to declare it as 'public'? If you didn't, then it will be 'internal' by default and so not accessible by the executable.
If you did declare it as 'public', then my guess is that you're somehow still referencing the original dll rather than the new version, despite removing the reference and adding it again. I'd make sure that all versions of the dll, debug or release, on your system relate to the new version.