[BUG] Visual Studio 2022 SF template requires install of .NET 5, doesn't recognize .NET 6
Describe the bug When creating a new Service Fabric application in Visual Studio 2022, the user is prompted for basic directory information. Upon moving to the subsequent screen to select the type of initial service, if the "Stateless ASP.NET Core" service type is selected, a warning appears reading "This template requires installing a .NET SDK (requires restart): 3.1 5.0" where both the 3.1 and 5.0 values pointing to web pages where I can download their respective installers.
Area/Component: Visual Studio Service Fabric template
To Reproduce Steps to reproduce the behavior: Prereq: Ensure that only .NET 6 is installed on your system.
- Open Visual Studio and create a new project
- Specify your project name, location, solution name and framework. Click Create.
- On the window titled "Create a new Service Fabric service", click the option on the left for "Stateless ASP.NET Core".
- Observe the warning at the top of the template window as shown below:
Expected behavior I expect the template to work with .NET 6 since that's now been formally released.
Observed behavior: The template clearly doesn't recognize the existence of .NET 6 on the system and looks only for a 3.1 or 5.0 installation.
Screenshots

Service Fabric Runtime Version: SF SDK - 5.2.1235
Environment: Windows 10 Pro, Dev cluster
If this is a regression, which version did it regress from? Not necessarily a regression as .NET 6 was only released at the start of this month
Additional context This oddly doesn't appear to affect creation of non-ASP.NET Core services, but I appear completely blocked from creating ASP.NET Core services when using Visual Studio 2022, and per the guidance on Visual Studio's website, I would have to install VS 2019 in order to use .NET 5; that only VS 2022 supports .NET 6.
Assignees: /cc @microsoft/service-fabric-triage
Is there any update on this bug?
I didn't think to ask about it on today's community call, sorry. They did say that they planned for official .NET 7 support by the end of Q1 this year, so with any luck that'll at least render the issue moot.
Where can I find the service fabric project templates that VS uses to generate the scaffoldings?
@kosalanuwan You can't - they're not open source and now that SF is bundled with Visual Studio, I don't know that it's trivial to get at them wherever they're at. I've asked several times on community calls for the team to consider open sourcing them though, so perhaps one day they will.
@kosalanuwan I urge you to join the next community call and share your use case with the SF team about how opening up the templates would benefit you in using Service Fabric,
@WhitWaldo can you share a link to join the next community call?
@IvanAlekseev I don't have one just yet, but happy to share it here as soon as I do.
@IvanAlekseev @kosalanuwan I still have no link to share, but in the meantime, I'd urge you to apply for the Azure Connection Program, a group that strives to provide feedback under an NDA back to Microsoft development groups. The Service Fabric community calls aren't under NDA, of course, but it's from this channel that I receive the links indicating when they're held.
Otherwise, if that's not an option for whatever reason, I expect I'll have the link to the next call about a week out from it happening.