project-system icon indicating copy to clipboard operation
project-system copied to clipboard

Switch to build config with different framework -> can't run.

Open vsfeedback opened this issue 2 years ago • 0 comments

This issue has a corresponding ticket on Developer Community. Please vote and comment there to make sure your voice is heard.


[severity:It's more difficult to complete my work]

I have different build configs for the solution. Plugin architecture, ~30 projects, some are 472 only (legacy dependencies which aren't upgradeable by me), some are netcoreapp31.

"Shell" app is generally "netcoreapp3.1;net472" for targetFrameworks unless I'm working with a build config which is netCnetcoreapp31 only,

Problem: I was set to debug against 472 and I just switched to a build config (PluginX) which is only netcoreapp3.1. Now when I go to run, I get the error:

The debug executable <foo> specified in the 'Shell' debug profile does not exist.

It's trying to run the 472 version of shell, which isn't valid for the PluginX configuration. But since there's only one targetFramework at the moment, I'm not given the menu option to change between 472 and 3.1.

There's a workaround, switch to a different build config that has 472 & 3.1, change to 3.1 for debug on the 'Shell' dropdown for debugging, and then switch back to the PluginX build config.. But that's not entirely obvious.

Cheers, Peter

vsfeedback avatar May 17 '23 23:05 vsfeedback