Skip to content

Commit 2427f9b

Browse files
authored
Merge pull request #2097 from riganti/template-bump-to-5.0
Use DotVVM 5.0.0 in the template
2 parents 66f4395 + c3052d3 commit 2427f9b

4 files changed

Lines changed: 10 additions & 5 deletions

File tree

.github/workflows/publish-internal.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ on:
1414
required: false
1515
version-core:
1616
type: string
17-
default: "4.2.0"
17+
default: "5.0.0"
1818
description: The core part of the version string
1919
required: false
2020
prerelease-version:

ci/scripts/Publish-NuGetPackages.ps1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,11 @@ function Build-TemplatePackages {
115115
$file = [System.Text.RegularExpressions.Regex]::Replace($file, "\<version\>([^<]+)\</version\>", "<version>" + $version + "</version>")
116116
[System.IO.File]::WriteAllText($path, $file, [System.Text.Encoding]::UTF8)
117117

118+
$templateProjectPath = Join-Path (Split-Path $path) "content/EmptyWeb/DotvvmApplication1.csproj"
119+
$templateProject = [System.IO.File]::ReadAllText($templateProjectPath, [System.Text.Encoding]::UTF8)
120+
$templateProject = [System.Text.RegularExpressions.Regex]::Replace($templateProject, '(?<=<PackageReference Include="DotVVM\.AspNetCore" Version=")[^"]+', $version)
121+
[System.IO.File]::WriteAllText($templateProjectPath, $templateProject, [System.Text.Encoding]::UTF8)
122+
118123
nuget pack $path -outputdirectory "$root/artifacts/packages" | Out-Host
119124
}
120125
finally {

src/Templates/content/EmptyWeb/DotvvmApplication1.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<Folder Include="wwwroot\" />
1515
</ItemGroup>
1616
<ItemGroup>
17-
<PackageReference Include="DotVVM.AspNetCore" Version="4.2.*" />
17+
<PackageReference Include="DotVVM.AspNetCore" Version="5.0.*" />
1818
</ItemGroup>
1919
<Target Name="CreateWWWRoot" AfterTargets="AfterPublish">
2020
<MakeDir Directories="$(PublishDir)wwwroot" Condition="!Exists('$(PublishDir)wwwroot')" />

src/Templates/content/EmptyWeb/DotvvmStartup.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@ public void Configure(DotvvmConfiguration config, string applicationPath)
1414
ConfigureControls(config, applicationPath);
1515
ConfigureResources(config, applicationPath);
1616

17-
// https://www.dotvvm.com/docs/4.0/pages/concepts/configuration/explicit-assembly-loading
17+
// https://www.dotvvm.com/docs/latest/pages/concepts/configuration/explicit-assembly-loading
1818
config.Runtime.ExplicitAssemblyLoading.Enable();
1919

2020
// Use this for command heavy applications
2121
// - DotVVM will store the viewmodels on the server, and client will only have to send back diffs
22-
// https://www.dotvvm.com/docs/4.0/pages/concepts/viewmodels/server-side-viewmodel-cache
22+
// https://www.dotvvm.com/docs/latest/pages/concepts/viewmodels/server-side-viewmodel-cache
2323
// config.ExperimentalFeatures.ServerSideViewModelCache.EnableForAllRoutes();
2424

2525
// Use this if you are deploying to containers or slots
2626
// - DotVVM will precompile all views before it appears as ready
27-
// https://www.dotvvm.com/docs/4.0/pages/concepts/configuration/view-compilation-modes
27+
// https://www.dotvvm.com/docs/latest/pages/concepts/configuration/view-compilation-modes
2828
// config.Markup.ViewCompilation.Mode = ViewCompilationMode.DuringApplicationStart;
2929
}
3030

0 commit comments

Comments
 (0)