C#C
C#8mo ago
yourFriend

✅ When targeting multiple frameworks, which one runs when pressing Ctrl + F5 in VS Code?

Anyone knows which app runs when pressing Ctrl + F5 (Running without debugging) when targeting multiple frameworks in a console project?

I have attached pic of project file, launch config file and build process which starts after pressing Ctrl + F5 in VS Code.

I have both <TargetFrameworks>net9.0;net8.0</TargetFrameworks> in project file.
While I have "launchConfigurationId": "TargetFramework=net8.0" in launch config file.

Both net9.0 and net8.0 got build as I can see them in their respective directories that is debug\net9.0 and debug\net8.0. But I am not sure that which one ends up running.
Screenshot_511.png
Screenshot_512.png
Screenshot_513.png
Was this page helpful?