4

I installed the latest 2.6.210 SDK / 5.6.210 Runtime for Service Fabric on my development PC using Visual Studio 2017 and now when I choose to create a new Cloud solution the "Stateless Web API" template is gone. I've also noticed that the "Stateless ASP.NET Core" template is no longer marked as "Pending".

I believe I can manually create the boilerplate to host a Web API service using Owin and .NET Framework using the "Stateless Service" template but why did they remove the much simpler "Stateless Web API" template that did all that for you?

I can't find any documentation from Microsoft explaining why this template would be missing.

Is Microsoft trying to get people to avoid using the .NET Framework in Service Fabric for Web API services because .NET Core ASP is no longer in preview?

Is it just a bug and if so how do I get that template back?

Thanks in advance for any assistance you can give me.

Zed
  • 53
  • 4

1 Answers1

2

The OWIN based template was only available self-hosted web framework for .NET until ASP.NET Core and .NET Core tooling in Visual Studio 2017 was release in General Availability.

Since Service Fabric cannot use IIS for hosting web services, we recommend using ASP.NET Core and provide templates in Visual Studio which integrates Service Fabric Reliable Services and ASP.NET Core Templates for MVC and Web API.

Remember you can still build your ASP.NET Core services with .NET Framework as the target and use all of .NET Framework from an ASP.NET Core Service.

Visual Studio tooling still supports the OWIN based services, and they can still run in Service Fabric.

See also here: Using WebListener or OWIN as API Gateway for azure service fabric and here for info for ASP.NET support in Service Fabric https://learn.microsoft.com/en-us/azure/service-fabric/service-fabric-reliable-services-communication-aspnetcore

  • I did not realize you could target .NET Framework with .NET Core code. That explains not only this but why the newest versions of ASP, MVC and Entity Framework are .NET Core only. Thanks so much! – Zed Jun 09 '17 at 13:40
  • Is there any way to get the "Stateless Web API" template back? – Zed Jun 30 '17 at 21:58
  • I've tried very hard to convince the software architect that we should be using ASP.NET Core but he's made it clear there's nothing I can say that will change his mind. – Zed Jun 30 '17 at 22:15
  • Ok, just discovered a comment made by Vaclav Turecek that says ASP.NET Core is not the same thing as .NET Core and that Service Fabric doesn't even support .NET Core. I **think** the architects objection was in using .NET Core and I don't think either of us realized that ASP.NET Core and .NET Core aren't the same thing. Is there any documentation that makes this clear that anyone can recommend? – Zed Jun 30 '17 at 22:36
  • @Zed see https://stackoverflow.com/questions/37684508/difference-between-asp-net-core-net-core-and-asp-net-core-net-framework and https://stackoverflow.com/questions/29820947/whats-the-difference-between-asp-net-5-net-core-and-asp-net-core-5 – GorvGoyl Jul 07 '17 at 06:43