Search code examples
visual-studio-2017azure-service-fabricasp.net-core-2.2

File nesting option missing in Service Fabric Stateless Service project type


In my Service Fabric API project I can access the file nesting option: Azure Service Fabric Web API

However it's not available in my Azure Service Fabric Stateless Service project: Azure Service Fabric Stateless Service

I saw that the API project has a file called .filenesting.json in the solution folder, so I tried adding this file to the Stateless Service solution folder, and restarted VS, however the option still was not there.

Here's the content of the .filenesting.json file:

{
    "help":"https://go.microsoft.com/fwlink/?linkid=866610"
}

I'm using Visual Studio Enterprise 2017 Version 15.9.5.

How can I get file nesting to work in a Stateless Service project?


Solution

  • I did some testing around.

    Depending on the type of SF Project you create file nesting will be available or not.

    For example, using .NET CORE stateless service and stateful services do not support file nesting enter image description here

    But selecting Stateless or Stateful ASP.NET core app does support it enter image description here

    enter image description here