# VS2010 project defaults?

## Recommended Posts

EmperorXYZ    100
Hi, every time I want to create a directX project in VS2010, I have to go into project properties VC++ directories and add the include and library paths to the project because for some reason those paths are not added automatically. When adding directories, I notice that there is a way to inherit values from parent or project defaults. Is there a way to edit the project defaults to always put those include and library path in every new projects? Thanks.

##### Share on other sites
GWDev    286
Is that what you are looking for?

--GWDev

##### Share on other sites
Ximmer    314
With a c++ project loaded, click View->Property Manager
Expand your project and then any of the configurations
Double click Microsoft.Cpp.Win32.user
Edit the VC++ Directories here and then any of your Cpp projects should inherit these values

##### Share on other sites
EmperorXYZ    100
Thanks Ximmer, but I think only projects in the same solution will inherit.

I've checked that link and it sends me to a folder with props files which I assume changes VS2010. Problem is while I can edit them with notepad, I haven't found one that controls include and library paths.

##### Share on other sites
Ximmer    314
Microsoft.Cpp.Win32.user is the template for all 32 bit cpp applications, I put my fmod lib/inc paths as well as my D3D lib/inc paths there and I never have to touch path settings again for any of my d3d or fmod applications.

I have several computers that I develop on with different paths to the sdk's, if the settings were stored in my projects or solutions I would not be able to easily switch computers while developing. by setting the paths in the property manager I can change machines without having to deal with the path issues every time.

the link provided by GWDev is basically editing the same files, only the property manager method is user friendly (albiet alot of information to sift through) here's what my Microsoft.Cpp.Win32.user.props file looks like:

[code]
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="<a href="http://schemas.microsoft.com/developer/msbuild/2003">http://schemas.microsoft.com/developer/msbuild/2003</a>">
<PropertyGroup>
<IncludePath>C:\DevStudio10\SDK\fmod\api\inc;C:\DevStudio10\SDK\DirectX\Include;C:\DevStudio10\SDK\FMOD\api\inc;C:\DevStudio10\SDK\DevIL\include;$(IncludePath)</IncludePath> </PropertyGroup> <PropertyGroup> <LibraryPath>C:\DevStudio10\SDK\fmod\api\lib;C:\DevStudio10\SDK\DirectX\Lib\x86;C:\DevStudio10\SDK\FMOD\api\lib;C:\DevStudio10\SDK\DevIL\lib;$(LibraryPath)</LibraryPath>
</PropertyGroup>
</Project>
[/code]

##### Share on other sites
EmperorXYZ    100
Oh wait, sorry, it did work. Maybe I had to shut VS2010 down and restart it before I can create a new project. Thanks