From 8da0e05c034f701b969fe516021918a275b8b5a6 Mon Sep 17 00:00:00 2001 From: AlisherAmonulloev Date: Fri, 28 Aug 2026 16:05:56 +0300 Subject: [PATCH 1/2] Enable hot reload in the ASP.NET Core example: target net10.0 and track launchSettings.json --- .gitignore | 1 - ASP.NET Core/ASP.NET Core.csproj | 2 +- ASP.NET Core/Properties/launchSettings.json | 25 +++++++++++++++++++++ 3 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 ASP.NET Core/Properties/launchSettings.json diff --git a/.gitignore b/.gitignore index ea5063c..d4fa0b9 100644 --- a/.gitignore +++ b/.gitignore @@ -49,7 +49,6 @@ BenchmarkDotNet.Artifacts/ project.lock.json project.fragment.lock.json artifacts/ -**/Properties/launchSettings.json *_i.c *_p.c diff --git a/ASP.NET Core/ASP.NET Core.csproj b/ASP.NET Core/ASP.NET Core.csproj index 5ff2c98..b613643 100644 --- a/ASP.NET Core/ASP.NET Core.csproj +++ b/ASP.NET Core/ASP.NET Core.csproj @@ -1,7 +1,7 @@ - net8.0 + net10.0 $(ProjectDir)node_modules\ $(ProjectDir)wwwroot\ diff --git a/ASP.NET Core/Properties/launchSettings.json b/ASP.NET Core/Properties/launchSettings.json new file mode 100644 index 0000000..6a3a783 --- /dev/null +++ b/ASP.NET Core/Properties/launchSettings.json @@ -0,0 +1,25 @@ +{ + "$schema": "https://json.schemastore.org/launchsettings.json", + "profiles": { + "ASP.NET Core": { + "commandName": "Project", + "dotnetRunMessages": true, + "launchBrowser": true, + "applicationUrl": "https://localhost:5001;http://localhost:5000", + "hotReloadEnabled": true, + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + }, + "ASP.NET Core (http)": { + "commandName": "Project", + "dotnetRunMessages": true, + "launchBrowser": true, + "applicationUrl": "http://localhost:5000", + "hotReloadEnabled": true, + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + } + } +} From 895a9d500651c720e7ae792a213153845c12b95a Mon Sep 17 00:00:00 2001 From: AlisherAmonulloev Date: Sun, 30 Aug 2026 10:45:35 +0300 Subject: [PATCH 2/2] Add npm start script that runs dotnet watch in the ASP.NET Core example --- ASP.NET Core/package.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ASP.NET Core/package.json b/ASP.NET Core/package.json index 94af5fe..c101997 100644 --- a/ASP.NET Core/package.json +++ b/ASP.NET Core/package.json @@ -2,6 +2,9 @@ "version": "1.0.0", "name": "asp.net", "private": true, + "scripts": { + "start": "dotnet watch run" + }, "dependencies": { "jquery": "3.7.1", "devextreme-dist": "26.1.3",