Skip to content

launchSettings.json missing from Razor Pages and MVC templates - Breaks dotnet watch run #48

@spacecat

Description

@spacecat

When you create a new default .NET Core Razor Pages web app using dotnet new webapp a launchSettings.json file is created automatically. This file facilitates the use of dotnet watch run which automatically opens up a new browser window with whatever is specified for applicationUrl in launchSettings.json.

If you do the same but using the Piranha CMS templates (e.g. dotnet new piranha.razor) instead no launchSettings.json is created:

Screenshot 2022-06-10 at 19 01 24

Work-around: Manually copy the launchSettings.json file from a new default .NET Core Razor Pages web app to your own app.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions