This solution contains a web site…

I kept getting a message from Visual Studio 2008 when opening a solution saying:

This solution contains a web site at ‘http://localhost/Services’. There is already a web site at this location on this computer. Do you wish to use this existing location for your web site (existing files will be overwritten)?

It looks like the (one?) cause is a corrupt solution file.

Continue reading

Automatic Test Cleanup in VS 2008

I’m working on switching from VS 2005 to VS 2008. I just tried running some unit tests and got the following dialog:

clean-up-tests.jpg

Hooray! I’ve been trying to figure out how to implement automatic test cleanup myself, but I (fortunately) hadn’t had time to devote serious effort to it. Up to this point, the TestResults directory would just continue to grow and grow until you either went in deleted the directory or ran an Ant target we have for ensuring any testing left-overs get mopped up.

XP Common Controls with VC++ 2005

This morning I was asked to enable the Windows XP visual styles for our application. No problem — I’ve done that for applications many times. Just drop the appropriate manifest file in the right place, call InitCommonControls and all should be well. When I tried that this morning, though, I got an error message: “An application has made an attempt to load the C runtime library incorrectly. Please contact the application’s support team for more information.” I suspected our support team wasn’t going to be much help on this one. The Visual C++ 2005 runtime library configuration strikes again. Continue reading