Hi,
I'd like to alter the default list of directories that VS.NET 2003
uses when building C++. I'd like to do this using a script or program.
Documentation on automation was promising (the DTE.Properties help) --
but notes that only the info listed on that page can be altered... and
it doesn't list the include path. What is the proper way to go about
this?
In a bit more detail. One can add a directory to the default
multi-project list of include path searches in VS.NET by going to
Tools->Options->Projects->VC++ Directories and then selecting "Include
Files" and adding the directory. I'd like to do exactly this, but under
scriopt/program control.
Burried in the registry are a list of the include paths
(HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\7.1\VC\VC_OBJECTS_PLATFORM_INFO\Win32\Directories)
but altering things there doesn't change anything when the environment
is restarted. I also looked in AppData directory and failed to find
anything obvious (a quick text search of the files there).
At that point I hit upon the idea of using automation to do it. After
all, if I did that, perhaps I'd even survive the upgrade to 2005. Alas,
I can't find the entrypoint to alter that information. The above
referenced page from MSDN documentation doesn't menting the
projects->include files path.
Guidence most appricated!
Cheers,
Gordon.
Gordon - 08 Mar 2005 22:27 GMT
Hi again,
If this isn't the right place to ask, please let me know where i
should ask.
Basically, the question is: how can I, using the installer or a
program, modify the include paths that are used by VC++? I want to
modify the list of include and library search directories that are
found in VS.NET->Tools->Options->Projects->VC++ Directories.
Many thanks in advance!
Cheers,
Gordon.
SGreene - 09 Mar 2005 15:46 GMT
hi
have a look at the VCCLCompilerTool object.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcext/html/vxlr
fVCProjectEngineLibraryVCCLCompilerTool.asp
and at its property "FullIncludePath"
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcext/html/vxlr
ffullincludepathproperty.asp
SGreene
> Hi again,
> If this isn't the right place to ask, please let me know where i
[quoted text clipped - 9 lines]
> Cheers,
> Gordon.
Gordon - 09 Mar 2005 16:37 GMT
Hi,
Thanks! You got the answer. The property you gave there has only
"get" acessors -- so it is read only, so it won't quite work.
But at least I know where the data is stored on a per-user basis now.
The web page describing the dialog:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vsintro7/html/v
xurfVCDirectoriesProjectsOptionsDialogBox.asp
puts it in local settings. I just need to figure out how to make my
installer look for that file, if it finds it, modify it. Thanks! At
least I can see my way to doing what I need to do now!