admin管理员组文章数量:1024582
I have to remote debug on many Machines and currently it is done with an Outputpath in the *.csproj Build to set the Networkdirectory that both Machines can Access, but the Configuration that is used has to be set in the launchSettings.json. So currently I have to set the path manually for building and then select the corresponding Startprofile to connect to the Machine.
Currently, we use the remoteDebugEnabled and the remoteDebugMachine setting in the launchSettings.json but I was hoping to use the same Properties in the Buildconfiguration. But when I comment the settings from the Launchsettings and just put it in the conditional Propertygroup it just does not work.
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Remotedebug PC2|AnyCPU'">
<DefineConstants>TRACE;_DEV</DefineConstants>
<OutputPath>\\PC2\RemoteDebugging$\Program2024</OutputPath>
<RemoteDebugEnabled>true</RemoteDebugEnabled>
<RemoteDebugMachine>PC2</RemoteDebugMachine>
<PlatformTarget>x86</PlatformTarget>
</PropertyGroup>
and the launchSettings.json:
"profiles": {
"Program2024": {
"commandName": "Project"
//"PC2": {
// "remoteDebugEnabled": true,
// "remoteDebugMachine": "PC2"
}
I tried Rebuilding the Project but it will just simply not start remotely but instead is using a locally compiled *.exe
I have to remote debug on many Machines and currently it is done with an Outputpath in the *.csproj Build to set the Networkdirectory that both Machines can Access, but the Configuration that is used has to be set in the launchSettings.json. So currently I have to set the path manually for building and then select the corresponding Startprofile to connect to the Machine.
Currently, we use the remoteDebugEnabled and the remoteDebugMachine setting in the launchSettings.json but I was hoping to use the same Properties in the Buildconfiguration. But when I comment the settings from the Launchsettings and just put it in the conditional Propertygroup it just does not work.
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Remotedebug PC2|AnyCPU'">
<DefineConstants>TRACE;_DEV</DefineConstants>
<OutputPath>\\PC2\RemoteDebugging$\Program2024</OutputPath>
<RemoteDebugEnabled>true</RemoteDebugEnabled>
<RemoteDebugMachine>PC2</RemoteDebugMachine>
<PlatformTarget>x86</PlatformTarget>
</PropertyGroup>
and the launchSettings.json:
"profiles": {
"Program2024": {
"commandName": "Project"
//"PC2": {
// "remoteDebugEnabled": true,
// "remoteDebugMachine": "PC2"
}
I tried Rebuilding the Project but it will just simply not start remotely but instead is using a locally compiled *.exe
版权声明:本文标题:c# - Using Buildconfiguration instead of launchsettings.json for Settings for RemoteDebbuging - Stack Overflow 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745619851a2159509.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论