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

后端 未结 7 1126
独厮守ぢ
独厮守ぢ 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:37

    Similar to what Yobi21 suggested, editing the project file and adding these lines to the main in the project file worked for me:

    Program
    $(MSBuildProjectDirectory)\Path\Relative\To\CSProj\Folder
    Any Required Arguments
    

    Watch out for the properties in the .csproj.user file overriding those in your regular project file. Note: Starting with Visual Studio 2017, these properties are contained in the launchsettings.json file.

    This one stumped me until I deleted the entries.

提交回复
热议问题