Must always do a reubuild and cannot debug!

All,

Forgive me if this is documented or been discussed elsewhere,

but I am at my wits end.

I am new to Visual Studio 2005 (Standard) and have been successfully

writing unit test with NUnit and the TestDriven.Net addin.

Suddenly I cannot run any new test cases, tests or modify an existing

test without having to do a complete rebuild. Just doing build by right-clicking

"Build" in the pop-up context menu does not appear to change the dlls or exes.

In addition, I cannot debug my tests. I select "Test with...Debugger" and the

debugger comes back saying the TestFramework.exe is optimised. However,

the configuration manager clearly shows "(Active) Debug".

Please help or point me in the direction of the FAQ. Thanks for your time and

consideration.



Answer this question

Must always do a reubuild and cannot debug!

  • raptorpete

    Matthew,

    Thanks for your reply.

    No Joy.

    I removed the bin,obj,.user,.suo files and even removed

    all the VS related directories in "Documents and Settings" for

    my user.

    It appears that whatever has gotten VS knickers in a knot is

    not persisted in these locations.

    I have even gone to the extreme of uninstalling and reinstalling VS.

    I don't mine doing a rebuild after every source code change, but it

    is a problem not being able to debug.


  • liquidPhix

    Try this:

    (1) Close the project.
    (2) Delete from the project folder:
    • The "bin" folder
    • The "obj" folder
    • All ".user" files
    • All ".suo" files
    (3) Reopen the project and check if the problem persists.


  • dream123434

    Hi,

    I encountered the same problem. My project is on a file server. When I run my project at my office : simple run works fine but if I run it as disconnected - stand alone (files made available "out of connection"), rebuild is needed.

    Did you finally find a solution

    best regards,

    Gauderic


  • Must always do a reubuild and cannot debug!