dotnet / dotnet/project-system
Switch to build config with different framework -> can't run.
- Dominant language
- C#
- Stars
- 1k
- Forks
- 415
- PR merge metrics
- No merged PRs in 30d
Description
_This issue has a corresponding [ticket on Developer Community](https://developercommunity.visualstudio.com/t/Switch-to-build-config-with-different-fr/1562103). 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 \ 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
Contributor guide
Assessment
This issue has not been assessed yet.