© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•10mo ago•
19 replies
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>
<TargetFrameworks>net9.0;net8.0</TargetFrameworks>
in project file.
While I have
"launchConfigurationId": "TargetFramework=net8.0"
"launchConfigurationId": "TargetFramework=net8.0"
in launch config file.

Both
net9.0
net9.0
and
net8.0
net8.0
got build as I can see them in their respective directories that is
debug\net9.0
debug\net9.0
and
debug\net8.0
debug\net8.0
. But I am not sure that which one ends up running.
Screenshot_511.png
Screenshot_512.png
Screenshot_513.png
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

✅ Issue with Sdk Targeting Multiple Frameworks
C#CC# / help
17mo ago
❔ Ctrl + F5 not working
C#CC# / help
4y ago
❔ How to run multiple projects in one solution using VS Code?
C#CC# / help
4y ago
✅ Error when targeting .net-android
C#CC# / help
12mo ago