Visual Studio: “Apply Code Changes” is disabled

2019-05-14 06:34发布

I am using Visual Studio 2005. When I debug my project, "Apply Code Changes" is disabled in the menu. At one time this worked on my project, but today doesn't. What settings should I check to allow this to work.

Things I have already checked:

I am in debug mode.
"Debug Information Format" is set to "Program Database for Edit & Continue."

2条回答
爷、活的狠高调
2楼-- · 2019-05-14 07:17

If it worked previously and suddenly stopped working (without project changes), it's most likely that your incremental link file is corrupt.

Try deleting your .ilk file.

查看更多
小情绪 Triste *
3楼-- · 2019-05-14 07:30

Finally found the setting I was missing:

In the project properties, go to Configuration Properties->Linker->General. Set "Enable Incremental Linking" to "Yes."

Hopefully this information can help someone else in the future.

查看更多
登录 后发表回答