Error compiling template "Designs/Swift-v2/Swift-v2_PageClean.cshtml"
Line 1: An assembly with the same simple name 'Dynamicweb.LoadBalancing' has already been imported. Try removing one of the references (e.g. 'F:\Domains\Sites\dev-jayco.mydwsite3.com\Application\bin\Dynamicweb.LoadBalancing.dll') or sign them to enable side-by-side.
Line 16: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source.
1 // <auto-generated/>
2 #pragma warning disable 1591
3 namespace CompiledRazorTemplates.Dynamic
4 {
5 #line hidden
6 using System.Threading.Tasks;
7 using System;
8 using System.Collections.Generic;
9 using System.Linq;
10 internal class RazorEngine_d40a54ac01e947f9b5b70c26c6c7f71b : Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel>
11 {
12 #pragma warning disable 1998
13 public async override global::System.Threading.Tasks.Task ExecuteAsync()
14 {
15
16 string? paragraphId = Dynamicweb.Context.Current?.Request?.QueryString.Get("ParagraphID") ?? null;
17 WriteLiteral(" \r\n");
18 if (paragraphId is not null) {
19 Write(RenderParagraphContent(Convert.ToInt32(paragraphId)));
20
21 }
22 else
23 {
24 Write(Model.Grid("Grid", "Grid", "default:true;sort:1", "Page"));
25 Write(Model.Placeholder("dwcontent", "content", "default:true;sort:1"));
26
27 }
28 }
29 #pragma warning restore 1998
30 }
31 }
32 #pragma warning restore 1591
33
1 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel>
2 @{
3 string? paragraphId = Dynamicweb.Context.Current?.Request?.QueryString.Get("ParagraphID") ?? null;
4 }
5
6 @if (paragraphId is not null) {
7 @RenderParagraphContent(Convert.ToInt32(paragraphId))
8 }
9 else
10 {
11 @Model.Grid("Grid", "Grid", "default:true;sort:1", "Page")
12
13 @* Render classic content, if any *@
14 @Model.Placeholder("dwcontent", "content", "default:true;sort:1")
15 }
16