Updated Preview Tooling for Visual Studio 2017


We've updated our Visual Studio 2017 Service Fabric Tools Preview to make deploying and debugging containerized applications on Service Fabric easier than ever before. To get the latest tools preview, install the Visual Studio Service Fabric Tools Preview extension for Visual Studio 2017.

To use the preview tools you'll need to be running Visual Studio 2017 15.5 or higher or the latest Visual Studio 2017 Preview release.

Containerize .NET Framework projects and run them on Service Fabric

Service Fabric is a general container orchestration platform, so we've made it incredibly easy to take any .NET Framework console or ASP.NET application, and with a few clicks make it a containerized service that runs on Service Fabric. By right clicking on your project and selecting Add --> Docker Support for Service Fabric, this will create a Docker file in your project and a Service Fabric package root directory that you would see with typical Service Fabric Service projects. If your project is part of a solution with an existing Service Fabric application, it will be added to that application automatically, otherwise a new Service Fabric application will be created automatically for you.

Debug containers running on Service Fabric

Not only can you easily containerize existing .NET projects and run them on Service Fabric with just a few clicks, but now you can also debug the code running inside the container instance as it runs on Service Fabric. Just hit F5 to get full debugging support within VS as your application runs in a container on Service Fabric!

Note that debugging is currently only supported on Windows Server 2016 at this time.

Publish your containerized application to Service Fabric

When it's time to publish your application to Azure the Publish dialog in Visual Studio will prompt you for an Azure Container Registry to push your image to. We have also added support to the Visual Studio Team Services (VSTS) deployment task to handle these containerized applications.


Comments (3)

  1. Tobias Meier says:

    @Service Fabric Team: Great extension. Unfortunately, I have not been able to find the entry “Docker support for Service Fabric”. Visual Studio 2017 15.5.6, Service Fabric SDK 3.0.456, Service Fabric Tools 2.1.20180202.1, .Net Core 2.0.
    Instead, the entry “Docker support” is available.

    Kind regards
    Tobias Meier

  2. Tobias, the new menu option will only be available for *full* .NET Framework projects, .NET Core is not currently supported.

    Hope that helps,
    Mike

Skip to main content