Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / General / April 2006

Tip: Looking for answers? Try searching our database.

Extracting VC++ Project Settings using Automation

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mike M - 27 Apr 2006 14:06 GMT
I am curious to know if I can extract project settings using the VS.NET
Automation model.  In the project settings property page, I want to access
the C++ & Linker command lines displayed in the dialog.  Is this possible?  I
did not see an obvious way of doing using the object model.

Thanks,
MIke
Carlos J. Quintero [VB MVP] - 27 Apr 2006 15:17 GMT
Hi Mike,

I am not sure it you can get the command-line, but the project properties
are stored in EnvDTE.Project.Properties and configuration (Debug, Release)
properties in EnvDTE.Configuration.Properties. Maybe the specific VC++
extensibility model has something more to offer
(VCProjectConfigurationProperties, for example).

Signature

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio
You can code, design and document much faster:
http://www.mztools.com

>I am curious to know if I can extract project settings using the VS.NET
> Automation model.  In the project settings property page, I want to access
[quoted text clipped - 4 lines]
> Thanks,
> MIke
Mike M - 27 Apr 2006 15:23 GMT
Thanks for the info...I'll take a look.

Cheers,
Mike
Mike M - 27 Apr 2006 17:44 GMT
> Hi Mike,
>
[quoted text clipped - 3 lines]
> extensibility model has something more to offer
> (VCProjectConfigurationProperties, for example).

I found the VCCLCompilerTool & VCLinkerTool objects in the VC++ Project
Model...your right, the objects only offer read/write access to each project
property but does not provide any methods for generating the command line for
the given compiler settings.  

I guess the VS.NET team does the work of inspecting each project attribute
and generates the command-line for the view only.  It would have been nice if
the objects exposed that functionality...guess it can be something for the
wish list.

Thanks for the point in the right direction.

Cheers,
Mike

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.