Can I get the default settings for Visual C++ 2010? I messed up a bit when I tried to get DarkGDK to work with it. I need to know what is the default "Include Directories", "Library Directories", "Additional Dependencies", and lastly "Ignore Specific Default Libraries". Thanks.
What settings did the brand new project have in those four fields?
If those weren't right, time to run "Repair Installation" from control panel or the Visual Studio Help menu.
My "Additional Dependencies" is "kernel32.lib;user32.lib;gdi32.lib;comctl32.lib;ole32.lib;shell32.lib;winmm.lib", but whether that's applicable to you or not depends on the project type.
Executable Directories is "$(VCInstallDir)bin;$(WindowsSdkDir)bin\NETFX 4.0 Tools;$(WindowsSdkDir)bin;$(VSInstallDir)Common7\Tools\bin;$(VSInstallDir)Common7\tools;$(VSInstallDir)Common7\ide;$(ProgramFiles)\HTML Help Workshop;$(FrameworkSDKDir)\bin;$(MSBuildToolsPath32);$(VSInstallDir);$(SystemRoot)\SysWow64;$(FxCopDir);$(PATH);"
Include Directories is "$(VCInstallDir)include;$(VCInstallDir)atlmfc\include;$(WindowsSdkDir)include;$(FrameworkSDKDir)\include;"
Library Directories is "$(VCInstallDir)lib;$(VCInstallDir)atlmfc\lib;$(WindowsSdkDir)lib;$(FrameworkSDKDir)\lib"
Ignore Specific Default Libraries is blank.
Related
I Use Visual Studio Ultimate 2012 and try open "project property pages".
I need open the Properties of the project, go to Configuration Properties → General → Platform Toolset. Here switch to any older version of the toolset: Visual Studio 2012 (v110xp), or any other choice.
This window should look like this:
| "Configuration Properties"
-|General
-|Debugging
-|VC++ Directories
-|C/C++
--|General
--|Optimization
--|Preprocessor
--|Code Generator
--|Language
--|Precomplied Header
--|Output files
--|Browse information
--|Advanced
--|All option
--|Command Line
-|Linker
...
But my version looks like this:
"project property pages
-|Application
-|Build
-|Build events
-|Debug
-|Resourses
-|Services
-|Settings
-|Reference Path
-|Signing
-|Security
-|Publish
-|Code Analysis
How do I get to the window?
I think it's a bug on VS2012, it always do this to me.
You must use older toolset (or install vs2013).
As you can't change it in VS2012 (property doesn't available), you must change manually project file. Open vcxproj file in a text editor, and change all occurences of
<PlatformToolset>v110</PlatformToolset>
by
<PlatformToolset>v100</PlatformToolset>
Then save and reopen the project in VS2012
i just installed visual studio 2010 and it is not opening any projects .I can make projects but i can not add any file in it and also it is not opening recent projects.
I am stuck here , kindly cooperate with me!
OK, sounds like the installaion got munged up.
first obvious questions: do you have any code that has actually been saved?
If "yes," copy that code to an alternate location, and use the simplest solution: use the Windows Control Panel to deinstall the MSVC instance and reinstall. If no code saved, just de-install and reinstall.
That's the obvious answer. You may also check the location for the project files, and the settings Visual Studios uses.
from the toolbar, click "tools".
From the drop-down list select "options"
Within the displayed list, scroll down to "projects and solutions"
expand that list (click on the little "+" box)
3 locations will be displayed.
Make sure you have write permission to all three locations
all the check boxes should be selected. Especially the one marked "save new projects when created"
click "OK" to accept the changes
I would like to add an include and library path to the default configuration in VC++ 2012. I know I can add it manually per project, but there is a checkbox "Inherit from parent or project defaults". I would like to modify this "project defaults" so it applies to all my projects.
Any clue of where to edit this?
***EDIT
No, that answer doesn't help. I edited the vsvars32.bat file, run the bat to check that INCLUDE and LIB variables where updated with my own path (and they are), but when I start MSVC++ 2012 my added path is not included.
It's a bit of a pain, and there is a blog post on MSDN that explains in detail, but in summary here's how you do it:
Open a project, any project.
From the menu, choose View / Property Manager (near the bottom of the menu)
In the property manager window, expand the project tree to show Debug and Release nodes
Expand either Debug or Release (it doesn't matter which)
Right-click on Microsoft.Cpp.Win32.user
Choose Properties from the pop-up menu
You should see a dialog where you can edit the VC++ Directories entry like this:
Once you OK through everything, any project you create or load will inherit these defaults.
I would like to change the "Visual Studio 2010" folders location to my Dropbox folder, so it gets synced every time I make a change. I have searched on the internet, but haven't found a solution yet.
Is it possible to change the "Visual Studio 2010" folders location from within Visual Studio 2010, specifically Visual C# Express 2010?
If you want to relocate everything in the Visual Studio 2010 folder, it takes a couple steps:
In Visual Studio, go to Tools > Options > Projects and Settings > General. Set the three locations as desired.
In Registry Editor, navigate to HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0. Set the remaining locations that still reference Documents\Visual Studio 2010 as desired.
Tools > Options > Projects and Solutions > General > "Projects location" setting. Change the others too if you routinely create templates.
As stated by the other answers, some of the paths are configurable (settings, default projects location, and the user template locations) and can be set under Tools->Options. However, it is important to note that the actual registry value that determines the root path is at HKCU\Software\Microsoft\VisualStudio\12.0\VisualStudioLocation, and that this value is only taken into account if HKCU\Software\Microsoft\VisualStudio\12.0\MyDocumentsLocation is set correctly.
To change these registry keys properly:
Make sure Visual Studio is not running.
Open the registry editor and first make sure that HKCU\Software\Microsoft\VisualStudio\12.0\MyDocumentsLocation is set to your actual My Documents location (this is very important, otherwise some of the other paths in the registry will take on default values on the next open/close cycle) and does not have a trailing slash. If this registry value is not there, you must add it.
Change the HKCU\Software\Microsoft\VisualStudio\12.0\VisualStudioLocation to whatever path you'd like the files to be stored at.
(Optional, but recommended) Search for more references to the old path in the registry under both 12.0 and 12.0_Config and update them accordingly.
Note that if you ever change the location of My Documents in Windows, several of the paths (including VisualStudioLocation, which most of the others are based on) will revert to their defaults, and you'll have to follow the steps above again.
(Modify the Visual Studio version number as applicable -- 12.0 is for VS2013, 11.0 for VS2012, etc.)
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\12.0\NewProjectDialog\MRUSettingsVenusProjectLocationEntries
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\12.0\NewProjectDialog\MRUSettingsLocalProjectLocationEntries
if above solution doesnt work try this ones.
From Tools Option> projects and Solution as show down
In case someone come across this question these days, in VS2017 Community there is a "Location" node under Tools-> Options-> Projects and Solutions-> Locations. The fields are no longer under "General".
Is there a place to set header and library path for ALL projects in VC2010 express?
When i set them they seem to only apply to a single project (eg i have to set them everytime i start a new project).
I think you can set the env vars: INCLUDE and LIBPATH for this.
Not sure how to do it from the GUI - but from the control panel it is straightforward. I don't know if Visual Studio appends to that or just sets/overwrites it though.
Use property sheet files. *.vsprops Change default one for the platform you need. They are under Property Manager Tab, near Solution Explorer.
See this MSDN help for mor information: "VC++ Directories Property Page"