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.
Relative Path Extension for VS CodePress Ctrl+Shift+H (Mac: Cmd+Shift+H ) and start typing the file you want.
In Visual Studio, click Tools > Options. Expand Projects and Solutions and click Locations. The Projects location field defines the default location for storing new projects. You can change this path if you are using a different working folder.
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.
You can use project macros, such as $(ProjectDir) and define from there.
See this page
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With