Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
spacecat opened this issue Jun 10, 2022 · 2 comments

Comments

@spacecat
Copy link

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.

@tidyui
Copy link
Member

tidyui commented Jun 10, 2022

First off I'll move this to our templates repository as this has nothing to do with the core framework. Secondly, is this really an issue? When I open a newly created project in Visual Studio Code the editor prompts me with a dialog asking me if I want to create the files needed to run the project, and if I click Yes a launch.json is created for me. What editor/IDE are you using?

@tidyui tidyui transferred this issue from PiranhaCMS/piranha.core Jun 10, 2022
@spacecat
Copy link
Author

I'm using VSCode 1.68.0.
When you click Yes .vscode/launch.json and .vscode/tasks.json gets created but not Properties/launchSettings.json.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants