I want to define my own environment variables which are used in the project settings, like $(TARGETPATH) and some predefined variables do.
How can I do this in C#?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Consider using this visual studio addin: http://workspacewhiz.com/SolutionBuildEnvironmentReadme.html the addin was made for Visual Studio 2008/2005/2003/2002 but might also work for 2010/2012 (havn’t tested). With that addin you can set custom variables for every solution.
And for a complete list of all the existing variables: http://msdn.microsoft.com/en-us/library/c02as0cs.aspx