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.