Visual Studio 2005 crashes when excluding a dataset from a project.

I have a dataset which was corrupted and wish to remove it from a C# project. The IDE bugchecks and sends the error to MS every time I exclude in the IDE TreeView or attempt to delete it.

First of all, is this a bug How do I get around this anomally and preserve the project I am not interested in rebuilding it again to remove unwanted data sets.

Thanks!


Answer this question

Visual Studio 2005 crashes when excluding a dataset from a project.

  • Ilan D

    Follow these steps1
    1. Outside Studio: Make a backup copy of the .csproj (project) file that has the problem file.
    2. In Studio: Unload the project in question by right clicking on the project in the solutions explorer and choose Unload.
    3. Right click the unloaded project in the solution explorer.
    4. Select Edit XXXX.csproj
    5. Visual Studio brings up the .csproj file in all its Xml glory. Find the offending file and remove its node.
    6. Save.
    7. Right click on the project and select Reload Project.
  • Anthony Fine

    I would do what OmegaMan suggests. After unloading the project you can also try opening up the source to the file that is causing trouble for you and delete all the references to the component. There references are typically in a file called XXXX.Designerr.cs. Sometimes you can then reload the project and get back up to work without losing too much work. But often it is simpler to just start again on that form, per OmegaMan's suggestion.

    - Charlie



  • Visual Studio 2005 crashes when excluding a dataset from a project.