project namespace issues

I have a project that was working fine. I made some significant changes to the project, and then started getting an error saying some objects don't belong to the namespace, even though they are in the same project and have the namespace at the top of the class. It appears some pointer got messed up and now only newly added objects appear in the autolist members for the namespace. In fact, some objects required that I preceed things (such as Settings) with the namespace, others don't like it. They are supposed to all be in the same namespace. Any idea how I can fix this

Answer this question

project namespace issues

  • Walter R

    Hi,

    You can do the following steps:

    • Right click the project and set the default namespace
    • Perform a Replace by setting the following things:
      • Find what: old namespace
      • Replace with: new namespace
      • Look in: Current Project

    Greetz,

    Geert

    Geert Verhoeven
    Consultant @ Ausy Belgium

    My Personal Blog



  • Prudhvidhar

    thanks for the quick reply. The only problem is the namespace hasn't changed in the project. In this example the namespace is "Document", and yet in the dataset designer "MyDataSet.Designer.cs" file, I have to refer to the dataset as Document.MyDataset, even though is is clearly in the "Document" namespace. It's really weird. It is like something I did broke a reference to the namespace, and now the project is treating objects in it as if they are in two different namespaces. It kinda hard to explain.
  • UnKnown Nick

    Moved to C# IDE forum.


  • project namespace issues