Click here to Skip to main content
15,888,057 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I have Sp1 patch for VS2008. Os Win7 32bit.
Visual Studio Team System 2008 Team Suite
I have setted the "Debuging"->"Enable Edit and Continue" check box.
My project has "(/INCREMENTAL)" switch on.
But "apply code change" is always gray and disabled.
I have googled but can find a resolution. Help me please!
Posted

Stopping code changes in managed code can produce unexpected results. Applying changes to managed code is normally a quick process, so there is seldom a need to stop code changes in managed code.

This menu item is visible only when code changes are being applied. If you choose this option, none of the code changes are committed.
 
Share this answer
 
Comments
jiazhiqiang 8-Mar-12 20:47pm    
A litter confusing,^_^.

you said "If you choose this option, none of the code changes are committed." "this option" represent which?

I mean I want to use the [Apply code change Alt +F10] function,But unfortunately ,it's always disabled even I have checked on "Debuging"->[Enable Edit and Continue] option.

Do you have a good method?
I found this, and it is totally bizarre. For me it turns out that if I have a .cpp with no #include files, "apply code changes" is always greyed after making changes. As soon as I add a #include directive, even for an empty header file, it is enabled again when I make a change. Even more bizarrely, the header has to be enclosed in double quotes, not <>.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900