Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
240 views
in Technique[技术] by (71.8m points)

c++ - Reset property page settings Visual Studio C 2010 Express

I made some changes to the Property Pages/Configuration Properties a long time ago and I'd like to reset them. I changed stuff like the output directory, code generation settings, etc.

I've tried resetting all environment settings from the Import and Export Settings Wizard. I've also tried the devenv /resetsettings command. Both of which did not work. Reinstalling doesn't work either. May I get some advice on how to restore everything back to the default.

Thank you.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

If I understand you correctly, you are trying to revert to old settings for the Project -> Properties.

This information is stored in the project itself, not in Visual Studio. Look for a file with the extension vcxproj in the solution folder.

You can edit it with Notepad (notepad++), or - you can edit it inside Visual Studio, by

  • right-click the project, unload it, then edit project file, then reload project

Be careful how you edit these settings.

For best results, create a new solution, with a new project, and compare the settings from the newly created project with the existing one.

edit: on my computer (I have VS Ultimate I think, but it shouldn't matter):

To edit, go to Project -> Properties -> VC++ Directories, and on each, at the end of the line, press the arrow down, and click Edit...

VC++ directories:

$(VCInstallDir)bin
$(WindowsSdkDir)binNETFX 4.0 Tools
$(WindowsSdkDir)bin
$(VSInstallDir)Common7Toolsin
$(VSInstallDir)Common7ools

Include Directories:

$(VCInstallDir)include
$(VCInstallDir)atlmfcinclude
$(WindowsSdkDir)include
$(FrameworkSDKDir)include

from what I see in the directions you pointed out, all you have to do is remove from your list, the directories that you no longer want.

In c/c++ -> Code Generation ->

  • enable minimal rebuild: NO
    • enable c++ exceptions: YES (/EHSC)
    • Basic Runtime Checks - Both
    • /MTd

...

General -> Output directory: not sure what is the default, I would put something like

$(SolutionDir)bin$(Platform)$(Configuration)

Also, there seems to be a property sheet that may have been added to your project...

You can generally see the Property Manager from View -> Properties Window (F4).

here, you can expand the project configurations, and simply delete any property sheets you may not want (I expect a new project to have no property sheets).


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...