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 / IDE / September 2005

Tip: Looking for answers? Try searching our database.

IDE variables in code?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Tony Maresca - 04 Sep 2005 10:43 GMT
Is there any way to expand the value of an IDE
variable like $(ProjectName); $(BuildPath), etc.,
into compiled code?

I know there are no macros in C#, but it sure
would be nice if there was a way to have the
compiler emit things like a project's name and
so forth.

Signature

Tony M.

Carlos J. Quintero [VB MVP] - 05 Sep 2005 09:30 GMT
I think that the IDE does not provide that feature, but you can build some
add-in or macro to retrieve those values from the extensibility model and
insert them in code. My add-in (below) has a Code Templates feature that has
lots of those predefined variables.

Signature

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers:
http://www.mztools.com

> Is there any way to expand the value of an IDE
> variable like $(ProjectName); $(BuildPath), etc.,
[quoted text clipped - 4 lines]
> compiler emit things like a project's name and
> so forth.

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.