Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/publish-internal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
5 changes: 5 additions & 0 deletions ci/scripts/Publish-NuGetPackages.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,11 @@ function Build-TemplatePackages {
$file = [System.Text.RegularExpressions.Regex]::Replace($file, "\<version\>([^<]+)\</version\>", "<version>" + $version + "</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, '(?<=<PackageReference Include="DotVVM\.AspNetCore" Version=")[^"]+', $version)
[System.IO.File]::WriteAllText($templateProjectPath, $templateProject, [System.Text.Encoding]::UTF8)

nuget pack $path -outputdirectory "$root/artifacts/packages" | Out-Host
}
finally {
Expand Down
2 changes: 1 addition & 1 deletion src/Templates/content/EmptyWeb/DotvvmApplication1.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<Folder Include="wwwroot\" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="DotVVM.AspNetCore" Version="4.2.*" />
<PackageReference Include="DotVVM.AspNetCore" Version="5.0.*" />
</ItemGroup>
<Target Name="CreateWWWRoot" AfterTargets="AfterPublish">
<MakeDir Directories="$(PublishDir)wwwroot" Condition="!Exists('$(PublishDir)wwwroot')" />
Expand Down
6 changes: 3 additions & 3 deletions src/Templates/content/EmptyWeb/DotvvmStartup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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/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/4.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/4.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;
}

Expand Down
Loading