I'm working on a VS add-in. How do I expand variables like $(ProjectDir)
?
I think you want something similar to what an answer to a related question on SO describes.
The linked answer speaks to VC++ projects and VCProject
etcetera; but a quick search yielded the VSProject
interface , which seems to provide a starting point for something similar with C#/VB.NET projects.
Specifically check out the VSProject.Project
property and the Project.ConfigurationManager
property to which the VSProject
interface page directly and indirectly links.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.