Reputation: 8392
I know that here there is a similar question but I would like, if possible, to be able to define a relative path for 'Start External Program'
or any workaround that do not constrain me to add a complete new empty project to my solution.
I am using VB.NET in Visual Studio 2010 environment developing WinForms apps.
Upvotes: 6
Views: 6280
Reputation: 34240
While you cannot use project macros like $(SolutionDir)
or environment variables for "Start external program:", you can use relative paths as long as a path relative to the solution directory solves your problem. I just tested VS2010 and a VB.NET WinForms project and set "Start external program:" to:
..\..\..\windows\system32\cmd.exe
and then Ctrl+F5
runs a command prompt. Adjust the number of ..
elements to the folder depth of your project.
Upvotes: 3
Reputation: 1589
You can use project macros, such as $(ProjectDir) and define from there.
See this page
Upvotes: 3
Reputation: 3727
I don't know if it's possible. Maybe using environement variables likes %CD% but i'm not sure.
But, this settings is save into the csproj.user (or probably vbproj.user in your case), so each dev can have his own settings easily :).
Upvotes: 1