From 8087fefcf4e0f21843f3966c1e21f58beb942a01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Standa=20Luke=C5=A1?= Date: Fri, 21 Aug 2026 14:48:44 +0200 Subject: [PATCH 1/3] Use DotVVM 5.0.0 in the template --- .github/workflows/publish-internal.yml | 2 +- src/Templates/content/EmptyWeb/DotvvmApplication1.csproj | 2 +- src/Templates/content/EmptyWeb/DotvvmStartup.cs | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish-internal.yml b/.github/workflows/publish-internal.yml index dcbc91b952..f1ed1df6d9 100644 --- a/.github/workflows/publish-internal.yml +++ b/.github/workflows/publish-internal.yml @@ -14,7 +14,7 @@ on: required: false version-core: type: string - default: "4.2.0" + default: "5.0.0" description: The core part of the version string required: false prerelease-version: diff --git a/src/Templates/content/EmptyWeb/DotvvmApplication1.csproj b/src/Templates/content/EmptyWeb/DotvvmApplication1.csproj index b720881356..f6d6e27364 100644 --- a/src/Templates/content/EmptyWeb/DotvvmApplication1.csproj +++ b/src/Templates/content/EmptyWeb/DotvvmApplication1.csproj @@ -14,7 +14,7 @@ - + diff --git a/src/Templates/content/EmptyWeb/DotvvmStartup.cs b/src/Templates/content/EmptyWeb/DotvvmStartup.cs index 53823749d9..5c21121a24 100644 --- a/src/Templates/content/EmptyWeb/DotvvmStartup.cs +++ b/src/Templates/content/EmptyWeb/DotvvmStartup.cs @@ -14,17 +14,17 @@ public void Configure(DotvvmConfiguration config, string applicationPath) ConfigureControls(config, applicationPath); ConfigureResources(config, applicationPath); - // https://www.dotvvm.com/docs/4.0/pages/concepts/configuration/explicit-assembly-loading + // https://www.dotvvm.com/docs/5.0/pages/concepts/configuration/explicit-assembly-loading config.Runtime.ExplicitAssemblyLoading.Enable(); // Use this for command heavy applications // - DotVVM will store the viewmodels on the server, and client will only have to send back diffs - // https://www.dotvvm.com/docs/4.0/pages/concepts/viewmodels/server-side-viewmodel-cache + // https://www.dotvvm.com/docs/5.0/pages/concepts/viewmodels/server-side-viewmodel-cache // config.ExperimentalFeatures.ServerSideViewModelCache.EnableForAllRoutes(); // Use this if you are deploying to containers or slots // - DotVVM will precompile all views before it appears as ready - // https://www.dotvvm.com/docs/4.0/pages/concepts/configuration/view-compilation-modes + // https://www.dotvvm.com/docs/5.0/pages/concepts/configuration/view-compilation-modes // config.Markup.ViewCompilation.Mode = ViewCompilationMode.DuringApplicationStart; } From d9d3267bbec65539965c4b15156215144788364a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Standa=20Luke=C5=A1?= Date: Fri, 21 Aug 2026 14:55:02 +0200 Subject: [PATCH 2/3] auto-replace template referenced version in CI publish --- ci/scripts/Publish-NuGetPackages.ps1 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ci/scripts/Publish-NuGetPackages.ps1 b/ci/scripts/Publish-NuGetPackages.ps1 index 5212724e5f..3de6bd8d6c 100644 --- a/ci/scripts/Publish-NuGetPackages.ps1 +++ b/ci/scripts/Publish-NuGetPackages.ps1 @@ -115,6 +115,11 @@ function Build-TemplatePackages { $file = [System.Text.RegularExpressions.Regex]::Replace($file, "\([^<]+)\", "" + $version + "") [System.IO.File]::WriteAllText($path, $file, [System.Text.Encoding]::UTF8) + $templateProjectPath = Join-Path (Split-Path $path) "content/EmptyWeb/DotvvmApplication1.csproj" + $templateProject = [System.IO.File]::ReadAllText($templateProjectPath, [System.Text.Encoding]::UTF8) + $templateProject = [System.Text.RegularExpressions.Regex]::Replace($templateProject, '(?<= Date: Fri, 21 Aug 2026 15:06:37 +0200 Subject: [PATCH 3/3] Prefer /latest/ for documentation links --- src/Templates/content/EmptyWeb/DotvvmStartup.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Templates/content/EmptyWeb/DotvvmStartup.cs b/src/Templates/content/EmptyWeb/DotvvmStartup.cs index 5c21121a24..97834a5514 100644 --- a/src/Templates/content/EmptyWeb/DotvvmStartup.cs +++ b/src/Templates/content/EmptyWeb/DotvvmStartup.cs @@ -14,17 +14,17 @@ public void Configure(DotvvmConfiguration config, string applicationPath) ConfigureControls(config, applicationPath); ConfigureResources(config, applicationPath); - // https://www.dotvvm.com/docs/5.0/pages/concepts/configuration/explicit-assembly-loading + // https://www.dotvvm.com/docs/latest/pages/concepts/configuration/explicit-assembly-loading config.Runtime.ExplicitAssemblyLoading.Enable(); // Use this for command heavy applications // - DotVVM will store the viewmodels on the server, and client will only have to send back diffs - // https://www.dotvvm.com/docs/5.0/pages/concepts/viewmodels/server-side-viewmodel-cache + // https://www.dotvvm.com/docs/latest/pages/concepts/viewmodels/server-side-viewmodel-cache // config.ExperimentalFeatures.ServerSideViewModelCache.EnableForAllRoutes(); // Use this if you are deploying to containers or slots // - DotVVM will precompile all views before it appears as ready - // https://www.dotvvm.com/docs/5.0/pages/concepts/configuration/view-compilation-modes + // https://www.dotvvm.com/docs/latest/pages/concepts/configuration/view-compilation-modes // config.Markup.ViewCompilation.Mode = ViewCompilationMode.DuringApplicationStart; }