My namespace disappeared/corrupt?

  • Thread starter Rob R. Ainscough
  • Start date
R

Rob R. Ainscough

I have a VB.NET/VS 2005 Windows Form app that references My.Computer in a
class (DLL) -- the app has been working fine no errors for several weeks.
So today I open up the solution and come to build the solution and the code
starts telling "Computer" is not a member of "My" in one of my class
libraries (DLL).

This code has been working and nothing has changed in the class, but
suddenly all the My. references now generate errors??

Today's daily R&D project to find out why VS 2005 has crapped out on me
again. About the only thing I have done was uninstall MSN 8.0 which for
some bizarre reason told me I need to shutdown VS 2005 before it would
uninstall??

Rob
 
R

Rob R. Ainscough

Interesting, the problem seems to be related to my Namespace name I used in
the class library.

Namespace Applications

Public Class MyClass

Private Function DoSomething()

My.Computer.FileSystem.FileExists(...

End Function

End Class

End Namespace

If I change the Namespace to "Apps" then VS 2005 doesn't bark at this. Big
problem now, I have a lot of other code the reference this namespace and why
is this suddenly a problem for VS 2005 now when my apps have been building
fine and running fine for a while?
 

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