Using relative path for “Start external program” in VS.NET 2010

后端 未结 7 1089
独厮守ぢ
独厮守ぢ 2020-12-13 04:13

I\'ve seen a few posts related to this topic but none with any conclusive answers...

When debugging my VS.NET 2010 app, I\'m trying to start an external program whos

相关标签:
7条回答
  • 2020-12-13 04:40

    You can change the .user in notepad while solution is closed to even include relative paths. It is ,however, horrific. Example:

    <StartProgram>$([System.IO.Path]::GetDirectoryName($([System.IO.Path]::GetDirectoryName($(SolutionDir))))\MyCustomBindir\MyCustomProgram.exe</StartProgram>

    This is without scroll

    <StartProgram>
    $([System.IO.Path]::GetDirectoryName($([System.IO.Path]::GetDirectoryName( $(SolutionDir))
    ))\MyCustomBindir\MyCustomProgram.exe
    </StartProgram>

    The windows predefined folders can be used too.

    <StartProgram>$(AppData)\MyCustomBindir\MyCustomProgram.exe</StartProgram>

    Remeber the xml conifg .user file is parsed when loading the solution not when pressing the Start debug button so any changes to the .user file must happen while the solution is closed.

    0 讨论(0)
提交回复
热议问题