Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
tools
vsnet.act
vsnet.debugging
vsnet.documentation
vsnet.enterprise.tools
vsnet.general
vsnet.ide
vsnet.jlca
vsnet.servicepacks
vsnet.setup
vsnet.vsip
vsnet.vss
vsnet.vstools.office
vstudio.development
vstudio.extensibility
vstudio.general
vstudio.helpauthoring
vstudio.setup
vstudio.sourcesafe
  
 
date: Thu, 24 Apr 2008 06:14:01 -0700,    group: microsoft.public.vstudio.extensibility        back       


Creating a custom Output file macro   
I would like to be able to create a macro such as $(OutDir) with my own 
value, lets say $(MyOutDir).

How would I get started on this? There is tons of information on extending 
the vs2008 environment, but I hope I don't need to get that deep right now. I 
need the 10 minute version on how to do this, if that is possible.
-- 
Scott
date: Thu, 24 Apr 2008 06:14:01 -0700   author:   Scott am

RE: Creating a custom Output file macro   
Hello Scott,

I'm not sure I have understood your issue completely. It seems you want to 
add a System Environment Variable, correct? I'm sorry, but I don't' think 
it is Macro related. Am I missing anything here? If I misunderstand anthing 
here, please don't hesitate to correct me. 
Moreover, could you please also let us know the reason why do you want to 
add such Environment Variable? Do you have any business requirement? 
The more details you provide, the more helpful answer we can provide.

Please also feel free to let me if I have any more concern. We are glad to 
assist you.
Have a great day,
Best regards,
Wen Yuan

Microsoft Online Community Support 
Delighting our customers is our #1 priority. We welcome your comments and 
suggestions about how we can improve the support we provide to you. Please 
feel free to let my manager know what you think of the level of service 
provided. You can send feedback directly to my manager at: 
msdnmg@microsoft.com.
==================================================
Get notification to my posts through email? Please refer to 
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues 
where an initial response from the community or a Microsoft Support 
Engineer within 1 business day is acceptable. Please note that each follow 
up response may take approximately 2 business days as the support 
professional working with you may need further investigation to reach the 
most efficient resolution. The offering is not appropriate for situations 
that require urgent, real-time or phone-based interactions or complex 
project analysis and dump analysis issues. Issues of this nature are best 
handled working with a dedicated Microsoft Support Engineer by contacting 
Microsoft Customer Support Services (CSS) at  
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
date: Fri, 25 Apr 2008 11:24:36 GMT   author:   (Wen Yuan Wang [MSFT])

Re: Creating a custom Output file macro   
Scott wrote:
> I would like to be able to create a macro such as $(OutDir) with my own 
> value, lets say $(MyOutDir).

(This is how you could do this in VS2005.)

You can create a property sheet, inherit your project settings from it, 
and create that makro in the property sheet. (See also the Property 
Manager view.)

Gerhard
date: Fri, 25 Apr 2008 10:01:47 -0300   author:   Gerhard Fiedler

RE: Creating a custom Output file macro   
Pick a cpp project from the solution view in VS2008, Click properties, Build 
Events, post-Build events. Then click the ... at the end of the Command line 
text box. Now click on Macros>>

Now you can see a name with its corresponding value, I assumed these were 
macros since they were displayed when I clicked the "Macros" button. 

What ever they are called I would like to "simply" create one for all 
projects in my solution or better yet, global to all my solutions. 

All projects that I deal with seem to have the same capability in the post 
build event dialog, and I would like to create a common "macro" for a output 
directory. Yes I can create a path with a combination of these macros, but a 
single macro for all projects would make these commands easier to read and 
less error prone.
-- 
Scott


""Wen Yuan Wang [MSFT]"" wrote:

> Hello Scott,
> 
> I'm not sure I have understood your issue completely. It seems you want to 
> add a System Environment Variable, correct? I'm sorry, but I don't' think 
> it is Macro related. Am I missing anything here? If I misunderstand anthing 
> here, please don't hesitate to correct me. 
> Moreover, could you please also let us know the reason why do you want to 
> add such Environment Variable? Do you have any business requirement? 
> The more details you provide, the more helpful answer we can provide.
> 
> Please also feel free to let me if I have any more concern. We are glad to 
> assist you.
> Have a great day,
> Best regards,
> Wen Yuan
> 
> Microsoft Online Community Support 
> Delighting our customers is our #1 priority. We welcome your comments and 
> suggestions about how we can improve the support we provide to you. Please 
> feel free to let my manager know what you think of the level of service 
> provided. You can send feedback directly to my manager at: 
> msdnmg@microsoft.com.
> ==================================================
> Get notification to my posts through email? Please refer to 
> http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
> ications.
> 
> Note: The MSDN Managed Newsgroup support offering is for non-urgent issues 
> where an initial response from the community or a Microsoft Support 
> Engineer within 1 business day is acceptable. Please note that each follow 
> up response may take approximately 2 business days as the support 
> professional working with you may need further investigation to reach the 
> most efficient resolution. The offering is not appropriate for situations 
> that require urgent, real-time or phone-based interactions or complex 
> project analysis and dump analysis issues. Issues of this nature are best 
> handled working with a dedicated Microsoft Support Engineer by contacting 
> Microsoft Customer Support Services (CSS) at  
> http://msdn.microsoft.com/subscriptions/support/default.aspx.
> ==================================================
> This posting is provided "AS IS" with no warranties, and confers no rights.
> 
>
date: Fri, 25 Apr 2008 06:26:02 -0700   author:   Scott am

Re: Creating a custom Output file macro   
Gerhard,

Thanks for the reply. 

I tried this in VS2008 and it seems to work just fine. 

Thanks again.
-- 
Scott


"Gerhard Fiedler" wrote:

> Scott wrote:
> > I would like to be able to create a macro such as $(OutDir) with my own 
> > value, lets say $(MyOutDir).
> 
> (This is how you could do this in VS2005.)
> 
> You can create a property sheet, inherit your project settings from it, 
> and create that makro in the property sheet. (See also the Property 
> Manager view.)
> 
> Gerhard
>
date: Fri, 25 Apr 2008 06:42:03 -0700   author:   Scott am

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us