Adding a new class to a dll

  • Thread starter =?iso-8859-1?q?H=E5vard_Olerud_Eriksen?=
  • Start date
?

=?iso-8859-1?q?H=E5vard_Olerud_Eriksen?=

I've got a dll which houses a namespace hierarchy of useful utilities.
I decided that I wanted to add another class to this namespace today. I
then started up the project, copied the class file to the project
directory, clicked add existing item, and added the class. I then
recompiled the dll.
I then removed the reference to the original dll, and re-added the
reference to (what I thought) get the updated dll. The problem though
is that my new class does not show up in the namespace..
I've tried to delete all occurences of the dll, recompile the, remove
the reference and then add it again, but my changes refuse to appear.
I also tried to move the class to a new sub-namespace but this also
does not appear.

Does anyone have any explanation to what I'm doing wrong?
 
R

Rudderius

Håvard Olerud Eriksen said:
I've got a dll which houses a namespace hierarchy of useful utilities.
I decided that I wanted to add another class to this namespace today. I
then started up the project, copied the class file to the project
directory, clicked add existing item, and added the class. I then
recompiled the dll.
I then removed the reference to the original dll, and re-added the
reference to (what I thought) get the updated dll. The problem though
is that my new class does not show up in the namespace..
I've tried to delete all occurences of the dll, recompile the, remove
the reference and then add it again, but my changes refuse to appear.
I also tried to move the class to a new sub-namespace but this also
does not appear.

Does anyone have any explanation to what I'm doing wrong?
Are you sure the new class is in the same namespace as the others?
Did you check if you compiled the Debug/Release version of the new dll
and if it is that one you are trying to use?
 
?

=?iso-8859-1?q?H=E5vard_Olerud_Eriksen?=

Yes, I've doublechecked this. My release version is compiled to a
shared network drive and I've deleted the file, then recompiled to make
sure it's the correct location with the correct timestamp. I've also
compared the namespace names of two "siblings" but afaiks it's all
correct.
 
S

Stoitcho Goutsev \(100\)

Håvard,

Make sure that your class is declared as *public*. Keep in mind that the
default is *internal*, which means they can only be used inside the
assembly.
 
?

=?iso-8859-1?q?H=E5vard_Olerud_Eriksen?=

Bingo. That was the one thing I'd overlooked. Thanks a bunch!

Håvard
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top