I have a WPF app that I built from scratch using Visual Studio 2008 Beta 2. It compiles and runs fine in the folder where I created it originally.
I got it to a point where I was ready to commit it to posterity, at which point I checked the solution into our source control repository (Subversion). When I check out a clean copy, I can build, but I get the following exception when I try to run:
System.IO.Exception "Cannot locate resource 'window1.xaml'."
When I checked it in, I followed the procedure that I've followed in the past when checking in WPF apps:
1) Create the empty repository
2) Check out the empty repository into a new folder
3) Copy the solution folder into the checkout folder
4) Delete the bin and obj folders and the .suo file
5) Add and commit the remaining files and folders
6) Open the .sln file in Visual Studio. Re-set the correct project as the startup project, then F5 to build and run.
At that point I get the exception.
I repeated this without the source-control steps, i.e. I just did steps 3, 4 and 6 into a separate folder, and got the same result. So something's getting lost in step 4.
Is this a bug, or do I need to revise my procedures for VS 2008
Thanks,
Allan