Visual Studio 2005 possible project corruption/IDE issues
<p>I have come across a variety of problems, all of which I think are related and I hope someone here can give me some pointers on what is going on.</p>

<p>Basically I am working on a .NET2 C# project and all was going well until yesterday.  I have a dataset, which connects into an Access Database and I added a Query to one of my table adapters as I have done many times before.  When I tried to compile an error appeared (unfortunately I forgot to copy the error text) saying that it couldn't save the dataset designed and recommended I ran the Custom Tool (which I did).  This, for some reason created a copy of my DataSetDesigner.cs, which brought up a load of error messages as you would expect.  I did a bit of investigation and found an article which recommended removing both designers and running the custom tool again, so I did that and it created the designer correctly (it called it Designer2, which is annoying but compared to the other problems pretty minor).  Everything else has started happening since this.</p>

<p>At this stage everything went mad.  When I tried to compile the project I got a load of errors about my TableAdapters being missing from the form, so I have recreated them and it now compiles.  HOWEVER during the compilation phase I get 530 warnings like the one below:</p>

<blockquote>
  <p>Warning   425 The type 'Money_Monitor_2.frmAddAccount' in '\Money Monitor 2\Money Monitor 2\frmAddAccount.cs' conflicts with the imported type 'Money_Monitor_2.frmAddAccount' in '\Money Monitor 2\Money Monitor 2\bin\Debug\Money Monitor 2.exe'. Using the type defined in '\Money Monitor 2\Money Monitor 2\frmAddAccount.cs'.    </p>
</blockquote>

<p>In addition pretty much every time I try to compile I get errors similar to the following:</p>

<blockquote>
  <p>Error 1   Unexpected error creating debug information file 'Money Monitor 2\Money Monitor 2\obj\x86\Debug\Money Monitor 2.PDB' -- '\Money Monitor 2\Money Monitor 2\obj\x86\Debug\Money Monitor 2.pdb: The process cannot access the file because it is being used by another process.
  '   </p>
  
  <p>Error 3   .resources file is possibly corrupt.  Deleting "obj\x86\Debug\Money_Monitor_2.frmAddAccount.resources"  \Money Monitor 2\Money Monitor 2\ResGen Money Monitor 2</p>
  
  <p>Error 1   Couldn't write output file "obj\x86\Debug\Money_Monitor_2.frmAddAccount.resources"  \Money Monitor 2\Money Monitor 2\obj\x86\Debug\Money_Monitor_2.frmAddAccount.resources  </p>
  
  <p>Error 2   Specific exception: "IOException"  Message: "The process cannot access the file 'Money Monitor 2\obj\x86\Debug\Money_Monitor_2.frmAddAccount.resources' because it is being used by another process."   Money Monitor 2\Money Monitor 2\obj\x86\Debug\Money_Monitor_2.frmAddAccount.resources      </p>
</blockquote>

<p>I can get around the errors above by cleaning the build, but then I get back to my 500+ warnings.</p>

<p>Has anyone seen anything similar or have any idea what is going on?</p>

<p>Thanks in advance</p>

<p>Andrew</p>
