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
.NET ProgrammingC#

Avatar of undefined
Last Comment
povjetset

8/22/2022 - Mon
rajeshjamnadas

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
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
povjetset

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Your help has saved me hundreds of hours of internet surfing.
fblack61