Link to home
Start Free TrialLog in
Avatar of povjetset
povjetset

asked on

vs2010 not doing "build and run" for C#/WPF app when xaml or cs file is modified

I have a C# WPF application.
When I edit a xaml file (or a xaml.cs file or just a cs file) and hit F5 to start debugging, vs2010 doesn't recompile my C# app on one of my 2 machines (I have vs2010 installed on two machines (one Vista, one Win7)
On my Win7 machine, the app builds and then runs under the debugger (and I see my window changes that I just made in the xaml).
On my Vista machine, the app is not rebuilt and I don't see my xaml window changes.

I've compared my Tools/Options/Projects and Solutions/Build and Run settings on the 2 machines, and both are set to "Save all changes" before building, "Always build"  out of date projects on run, and "do not launch" on build error.

What's going on?
I doubt it's ths OS, but the Vista machine was upgraded from VS2005 so maybe some weird setting was migrated/set during that process?
Also, note that in a C++ app, if I edit a .cpp file and hit F5, the app is properly rebuilt first - this only seems to be happening in the C# app
Avatar of rajeshjamnadas
rajeshjamnadas
Flag of India image

Goto Tools-Customise- In that u can reset all setting if the problem is caused because of 2005 updation.
let me know if this work
Avatar of povjetset
povjetset

ASKER

the only thing I see to reset in Tools-Customize is a given menu (e.g. Build menu) but that didn't help (not surprising, as I hadn't customized that).

Also, I did in fact upgrade from VS2005 on the other machine as well (there may have been fewer settings there as it was a newer second machine; the Vista was my primary dev machine)
ASKER CERTIFIED SOLUTION
Avatar of povjetset
povjetset

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial