Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Service Fabric Application template not available in Visual Studio

I have been using Visual Studio 2017 for some time currently(15.7.4). In the installer I have Azure Development ticked and that includes service fabric tools. When I go to create new project the option Visual C# -> Cloud -> Service Fabric Application is not in the list. I have already installed Microsoft Azure Service Fabric 6.2.283.9494, Microsoft Azure Service Fabric SDK 3.1.283.9494 and Mircosoft Azure Service Fabric Tools for VS 2015.

I have created a service fabric cluster using ClusterConfig.Unsecure.DevCluster.json and can see that running at http://localhost:19080/Explorer/index.html#/

I'm not sure what else I need to do to get this template to appear, I assume something in the VS install but I can't see any other options that I need to add.

EDIT: Even after uninstalling and reinstalling VS 2017 Enterprise using the installer and the Service Fabric SDK, I still don't have the option for the template Cloud -> Service Fabric Application

enter image description here

like image 890
kayakpim Avatar asked Jun 20 '18 09:06

kayakpim


People also ask

How do I use Azure service fabric in Visual Studio?

You can manage your Azure Service Fabric applications and services through Visual Studio. Once you've set up your development environment, you can use Visual Studio to create Service Fabric applications, add services, or package, register, and deploy applications in your local development cluster. Deploy your Service Fabric application.

How do I create a stateless service project in service fabric?

Launch Visual Studio 2017 or Visual Studio 2019 as an administrator, and create a new Service Fabric application project named HelloWorld: Then create a stateless service project using .NET Core 2.0 named HelloWorldStateless: HelloWorld. This is the application project that contains your services.

How do I debug a service fabric application?

On the Service Fabric application project's (*.sfproj) shortcut menu, choose Properties (or press the F4 key). In the Properties window, set the Application Debug Mode property. Refresh Application This mode enables you to quickly change and debug your code and supports editing static web files while debugging.

What is the package reference for service fabric SDK?

On latest Service Fabric SDK / .NET Core SDK / VS2017 community edition, we have 1 package reference Microsoft.VisualStudio.Azure.Fabric.MSBuild for service fabric project. I have checkin the solution and triggered build in VSTS it is failing to restore packages for .sfproj


1 Answers

When you install the SDK, it does not install the Visual Studio Tools.

The SF Tools for VS is a separate installation, the version you installed is specific for VS 2015, for Visual Studio 2017 you have to install it from the Visual Studio Installer > Azure Development > Select 'Service Fabric' and install it. This will install the required VS templates missing.

A similar question has been answered here: Visual studio 2017 is not recognizing project of type .sfproj

like image 184
Diego Mendes Avatar answered Sep 22 '22 09:09

Diego Mendes