From 7c81feb2d0734a5e6873753aed9b3b157bdb1695 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 31 Jul 2025 16:04:18 +0000 Subject: [PATCH 01/10] Initial plan From cf6bdcd0e063dc231110c0a5b37b7b218e7c3a22 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 31 Jul 2025 16:10:02 +0000 Subject: [PATCH 02/10] Initial analysis and plan for .NET 8 upgrade Co-authored-by: MrKevHunter <224467+MrKevHunter@users.noreply.github.com> --- README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index 92d19c5b..fff2d5f7 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ To change this file edit the source file and then run MarkdownSnippets. Use Razor to build templates from Files / EmbeddedResources / Strings / Database or your custom source outside of ASP.NET MVC. No redundant dependencies and workarounds in pair with excellent performance and **.NET Standard 2.0** and **.NET Core 3.0** support. ![Build Status](https://github.com/toddams/RazorLight/actions/workflows/dotnet.yml/badge.svg) - [![NuGet Pre Release](https://img.shields.io/nuget/vpre/RazorLight.svg?maxAge=2592000?style=flat-square)](https://www.nuget.org/packages/RazorLight/) [![NuGet downloads](https://img.shields.io/nuget/dt/RazorLight.svg)](https://www.nuget.org/packages/RazorLight/) [![Join the chat at https://gitter.im/gitterHQ/gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/Razor-Light) +[![NuGet Pre Release](https://img.shields.io/nuget/vpre/RazorLight.svg?maxAge=2592000?style=flat-square)](https://www.nuget.org/packages/RazorLight/) [![NuGet downloads](https://img.shields.io/nuget/dt/RazorLight.svg)](https://www.nuget.org/packages/RazorLight/) [![Join the chat at https://gitter.im/gitterHQ/gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/Razor-Light) # Solidarity with Ukraine ![ComeBackAlive](https://upload.wikimedia.org/wikipedia/commons/thumb/5/5d/Come_Back_Alive_Logo_09.2022.svg/1200px-Come_Back_Alive_Logo_09.2022.svg.png) @@ -18,8 +18,6 @@ Dear friends, my name is Ivan, I am the guy who created this library. I live in *Update:* it's been a long time since I first posted this message. Thank you for your enormous support, I am removing my volunteer donation account and instead providing you with the largest and proven charity organization in Ukraine - [ComeBackAlive](https://savelife.in.ua/en/donate-en/). If you have the possibility and desire to help Ukraine - that is the right place for your valuable donations. Thank you. Be safe - - # Table of contents - [Quickstart](#quickstart) - [Template sources](#template-sources) From 544946e06c0ce98853e18533c6c9bfdff51d7fcc Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 31 Jul 2025 16:15:33 +0000 Subject: [PATCH 03/10] Update main projects to .NET 8 support Co-authored-by: MrKevHunter <224467+MrKevHunter@users.noreply.github.com> --- .../FunctionApp-WebMvc-Sample.csproj | 2 +- .../Samples.EntityFrameworkProject.csproj | 19 +++---- .../RazorLight.Sandbox.csproj | 2 +- .../RazorLight.Precompile.csproj | 2 +- src/RazorLight/RazorLight.csproj | 54 +++++-------------- .../RazorLight.Precompile.Tests.csproj | 4 +- .../RazorLight.Tests/RazorLight.Tests.csproj | 26 +++------ 7 files changed, 33 insertions(+), 76 deletions(-) diff --git a/samples/FunctionApp-WebMvc-Sample/FunctionApp-WebMvc-Sample/FunctionApp-WebMvc-Sample.csproj b/samples/FunctionApp-WebMvc-Sample/FunctionApp-WebMvc-Sample/FunctionApp-WebMvc-Sample.csproj index acb0bf6c..718f4827 100644 --- a/samples/FunctionApp-WebMvc-Sample/FunctionApp-WebMvc-Sample/FunctionApp-WebMvc-Sample.csproj +++ b/samples/FunctionApp-WebMvc-Sample/FunctionApp-WebMvc-Sample/FunctionApp-WebMvc-Sample.csproj @@ -1,6 +1,6 @@ - net7.0 + net8.0 v4 Exe enable diff --git a/samples/RazorLight.Samples/Samples.EntityFrameworkProject.csproj b/samples/RazorLight.Samples/Samples.EntityFrameworkProject.csproj index cdea2c30..c2d08610 100644 --- a/samples/RazorLight.Samples/Samples.EntityFrameworkProject.csproj +++ b/samples/RazorLight.Samples/Samples.EntityFrameworkProject.csproj @@ -2,24 +2,19 @@ Exe - netcoreapp2.1;netcoreapp3.1;net5.0 + net6.0;net8.0 true false - - - + + + - - - - - - - - + + + diff --git a/sandbox/RazorLight.Sandbox/RazorLight.Sandbox.csproj b/sandbox/RazorLight.Sandbox/RazorLight.Sandbox.csproj index b8515886..da5d5162 100644 --- a/sandbox/RazorLight.Sandbox/RazorLight.Sandbox.csproj +++ b/sandbox/RazorLight.Sandbox/RazorLight.Sandbox.csproj @@ -2,7 +2,7 @@ Exe - netcoreapp3.1 + net8.0 true false diff --git a/src/RazorLight.Precompile/RazorLight.Precompile.csproj b/src/RazorLight.Precompile/RazorLight.Precompile.csproj index 55d5c9ea..82a27f48 100644 --- a/src/RazorLight.Precompile/RazorLight.Precompile.csproj +++ b/src/RazorLight.Precompile/RazorLight.Precompile.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 razorlight-precompile true true diff --git a/src/RazorLight/RazorLight.csproj b/src/RazorLight/RazorLight.csproj index b3d95fd2..e069f172 100644 --- a/src/RazorLight/RazorLight.csproj +++ b/src/RazorLight/RazorLight.csproj @@ -1,6 +1,6 @@ - netstandard2.0;netcoreapp3.1;net5.0;net6.0 + netstandard2.0;net6.0;net8.0 @@ -30,45 +30,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -82,6 +43,19 @@ + + + + + + + + + + + + + True diff --git a/tests/RazorLight.Precompile.Tests/RazorLight.Precompile.Tests.csproj b/tests/RazorLight.Precompile.Tests/RazorLight.Precompile.Tests.csproj index 73be2459..1f434b6f 100644 --- a/tests/RazorLight.Precompile.Tests/RazorLight.Precompile.Tests.csproj +++ b/tests/RazorLight.Precompile.Tests/RazorLight.Precompile.Tests.csproj @@ -1,7 +1,7 @@ - net6.0 + net8.0 true enable enable @@ -9,7 +9,7 @@ - + diff --git a/tests/RazorLight.Tests/RazorLight.Tests.csproj b/tests/RazorLight.Tests/RazorLight.Tests.csproj index 524b10c5..193925c0 100644 --- a/tests/RazorLight.Tests/RazorLight.Tests.csproj +++ b/tests/RazorLight.Tests/RazorLight.Tests.csproj @@ -1,7 +1,7 @@ - netcoreapp2.0;netcoreapp3.1;net5.0;net6.0 + net6.0;net8.0 false true $(DefineConstants);SOME_TEST_DEFINE @@ -49,30 +49,18 @@ - - - - - - - - - - - - - - - - - - + + + + + + From 8c3119fd1ae068cd9ae81aa7276a967f3aeccaee Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 31 Jul 2025 16:22:33 +0000 Subject: [PATCH 04/10] Fix language version compatibility and complete .NET 8 upgrade Co-authored-by: MrKevHunter <224467+MrKevHunter@users.noreply.github.com> --- .../RazorLight.Precompile.csproj | 15 ++++++++------- src/RazorLight/RazorLight.csproj | 1 + .../RazorLight.Precompile.Tests.csproj | 13 +++++++------ tests/RazorLight.Tests/RazorLight.Tests.csproj | 3 ++- 4 files changed, 18 insertions(+), 14 deletions(-) diff --git a/src/RazorLight.Precompile/RazorLight.Precompile.csproj b/src/RazorLight.Precompile/RazorLight.Precompile.csproj index 82a27f48..aed9864d 100644 --- a/src/RazorLight.Precompile/RazorLight.Precompile.csproj +++ b/src/RazorLight.Precompile/RazorLight.Precompile.csproj @@ -1,12 +1,13 @@ - - Exe - net8.0 - razorlight-precompile - true - true - Mark Kharitonov + + Exe + net8.0 + razorlight-precompile + true + true + Mark Kharitonov + 10.0 diff --git a/src/RazorLight/RazorLight.csproj b/src/RazorLight/RazorLight.csproj index e069f172..53054acf 100644 --- a/src/RazorLight/RazorLight.csproj +++ b/src/RazorLight/RazorLight.csproj @@ -1,6 +1,7 @@ netstandard2.0;net6.0;net8.0 + 10.0 diff --git a/tests/RazorLight.Precompile.Tests/RazorLight.Precompile.Tests.csproj b/tests/RazorLight.Precompile.Tests/RazorLight.Precompile.Tests.csproj index 1f434b6f..80b11e62 100644 --- a/tests/RazorLight.Precompile.Tests/RazorLight.Precompile.Tests.csproj +++ b/tests/RazorLight.Precompile.Tests/RazorLight.Precompile.Tests.csproj @@ -1,11 +1,12 @@ - - net8.0 - true - enable - enable - CS8600;CS8602;CS8603;CS8604 + + net8.0 + true + enable + enable + CS8600;CS8602;CS8603;CS8604 + 10.0 diff --git a/tests/RazorLight.Tests/RazorLight.Tests.csproj b/tests/RazorLight.Tests/RazorLight.Tests.csproj index 193925c0..c0050ea7 100644 --- a/tests/RazorLight.Tests/RazorLight.Tests.csproj +++ b/tests/RazorLight.Tests/RazorLight.Tests.csproj @@ -5,8 +5,9 @@ false true $(DefineConstants);SOME_TEST_DEFINE - true + true NU1701;CS0618 + 10.0 From 59e3cbce3ce279cd9aee3f7cb4e0222a66f89475 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 31 Jul 2025 16:25:31 +0000 Subject: [PATCH 05/10] Finalize .NET 8 upgrade with sample projects and sandbox fixes Co-authored-by: MrKevHunter <224467+MrKevHunter@users.noreply.github.com> --- .../FunctionApp-WebMvc-Sample/FunctionApp-WebMvc-Sample.csproj | 1 + .../RazorLight.Samples/Samples.EntityFrameworkProject.csproj | 1 + sandbox/RazorLight.Sandbox/RazorLight.Sandbox.csproj | 3 ++- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/samples/FunctionApp-WebMvc-Sample/FunctionApp-WebMvc-Sample/FunctionApp-WebMvc-Sample.csproj b/samples/FunctionApp-WebMvc-Sample/FunctionApp-WebMvc-Sample/FunctionApp-WebMvc-Sample.csproj index 718f4827..7e9411c3 100644 --- a/samples/FunctionApp-WebMvc-Sample/FunctionApp-WebMvc-Sample/FunctionApp-WebMvc-Sample.csproj +++ b/samples/FunctionApp-WebMvc-Sample/FunctionApp-WebMvc-Sample/FunctionApp-WebMvc-Sample.csproj @@ -7,6 +7,7 @@ enable true FunctionApp_WebMvc_Sample + 10.0 diff --git a/samples/RazorLight.Samples/Samples.EntityFrameworkProject.csproj b/samples/RazorLight.Samples/Samples.EntityFrameworkProject.csproj index c2d08610..56383a1d 100644 --- a/samples/RazorLight.Samples/Samples.EntityFrameworkProject.csproj +++ b/samples/RazorLight.Samples/Samples.EntityFrameworkProject.csproj @@ -5,6 +5,7 @@ net6.0;net8.0 true false + 10.0 diff --git a/sandbox/RazorLight.Sandbox/RazorLight.Sandbox.csproj b/sandbox/RazorLight.Sandbox/RazorLight.Sandbox.csproj index da5d5162..9446e648 100644 --- a/sandbox/RazorLight.Sandbox/RazorLight.Sandbox.csproj +++ b/sandbox/RazorLight.Sandbox/RazorLight.Sandbox.csproj @@ -2,9 +2,10 @@ Exe - net8.0 + net8.0 true false + 10.0 From af6f275c54c80293330c1b29783f7c31f441136b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 31 Jul 2025 16:38:46 +0000 Subject: [PATCH 06/10] Remove .NET 6 support, keep netstandard2.0 and net8.0 only Co-authored-by: MrKevHunter <224467+MrKevHunter@users.noreply.github.com> --- .../Samples.EntityFrameworkProject.csproj | 9 ++------- .../RazorLight.Sandbox/RazorLight.Sandbox.csproj | 8 -------- src/RazorLight/RazorLight.csproj | 15 +-------------- tests/RazorLight.Tests/RazorLight.Tests.csproj | 10 ++-------- 4 files changed, 5 insertions(+), 37 deletions(-) diff --git a/samples/RazorLight.Samples/Samples.EntityFrameworkProject.csproj b/samples/RazorLight.Samples/Samples.EntityFrameworkProject.csproj index 56383a1d..d149d105 100644 --- a/samples/RazorLight.Samples/Samples.EntityFrameworkProject.csproj +++ b/samples/RazorLight.Samples/Samples.EntityFrameworkProject.csproj @@ -2,18 +2,13 @@ Exe - net6.0;net8.0 + net8.0 true false 10.0 - - - - - - + diff --git a/sandbox/RazorLight.Sandbox/RazorLight.Sandbox.csproj b/sandbox/RazorLight.Sandbox/RazorLight.Sandbox.csproj index 9446e648..38e66d26 100644 --- a/sandbox/RazorLight.Sandbox/RazorLight.Sandbox.csproj +++ b/sandbox/RazorLight.Sandbox/RazorLight.Sandbox.csproj @@ -8,14 +8,6 @@ 10.0 - - 8.0 - - - - 8.0 - - diff --git a/src/RazorLight/RazorLight.csproj b/src/RazorLight/RazorLight.csproj index 53054acf..a4bd622b 100644 --- a/src/RazorLight/RazorLight.csproj +++ b/src/RazorLight/RazorLight.csproj @@ -1,6 +1,6 @@ - netstandard2.0;net6.0;net8.0 + netstandard2.0;net8.0 10.0 @@ -31,19 +31,6 @@ - - - - - - - - - - - - - diff --git a/tests/RazorLight.Tests/RazorLight.Tests.csproj b/tests/RazorLight.Tests/RazorLight.Tests.csproj index c0050ea7..af036463 100644 --- a/tests/RazorLight.Tests/RazorLight.Tests.csproj +++ b/tests/RazorLight.Tests/RazorLight.Tests.csproj @@ -1,7 +1,7 @@ - net6.0;net8.0 + net8.0 false true $(DefineConstants);SOME_TEST_DEFINE @@ -50,13 +50,7 @@ - - - - - - - + From 4bb4ac58db8dee53c719d01555aaa19bedab2b76 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 31 Jul 2025 16:41:22 +0000 Subject: [PATCH 07/10] Update Microsoft.Extensions packages to 9.0.7 to fix security vulnerabilities Co-authored-by: MrKevHunter <224467+MrKevHunter@users.noreply.github.com> --- .../Samples.EntityFrameworkProject.csproj | 4 ++-- src/RazorLight/RazorLight.csproj | 12 ++++++------ tests/RazorLight.Tests/RazorLight.Tests.csproj | 4 ++-- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/samples/RazorLight.Samples/Samples.EntityFrameworkProject.csproj b/samples/RazorLight.Samples/Samples.EntityFrameworkProject.csproj index d149d105..f06d844c 100644 --- a/samples/RazorLight.Samples/Samples.EntityFrameworkProject.csproj +++ b/samples/RazorLight.Samples/Samples.EntityFrameworkProject.csproj @@ -9,8 +9,8 @@ - - + + diff --git a/src/RazorLight/RazorLight.csproj b/src/RazorLight/RazorLight.csproj index a4bd622b..559cc924 100644 --- a/src/RazorLight/RazorLight.csproj +++ b/src/RazorLight/RazorLight.csproj @@ -35,12 +35,12 @@ - - - - - - + + + + + + diff --git a/tests/RazorLight.Tests/RazorLight.Tests.csproj b/tests/RazorLight.Tests/RazorLight.Tests.csproj index af036463..05a8faa6 100644 --- a/tests/RazorLight.Tests/RazorLight.Tests.csproj +++ b/tests/RazorLight.Tests/RazorLight.Tests.csproj @@ -52,8 +52,8 @@ - - + + From 94125e3cf255af52ad6211c6f6e8d2f1b1851e12 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 31 Jul 2025 17:04:20 +0000 Subject: [PATCH 08/10] Modernize C# language version to 'latest' across all projects Co-authored-by: MrKevHunter <224467+MrKevHunter@users.noreply.github.com> --- .../FunctionApp-WebMvc-Sample/FunctionApp-WebMvc-Sample.csproj | 2 +- .../RazorLight.Samples/Samples.EntityFrameworkProject.csproj | 2 +- sandbox/RazorLight.Sandbox/RazorLight.Sandbox.csproj | 2 +- src/RazorLight.Precompile/RazorLight.Precompile.csproj | 2 +- src/RazorLight/RazorLight.csproj | 2 +- .../RazorLight.Precompile.Tests.csproj | 2 +- tests/RazorLight.Tests/RazorLight.Tests.csproj | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/samples/FunctionApp-WebMvc-Sample/FunctionApp-WebMvc-Sample/FunctionApp-WebMvc-Sample.csproj b/samples/FunctionApp-WebMvc-Sample/FunctionApp-WebMvc-Sample/FunctionApp-WebMvc-Sample.csproj index 7e9411c3..74b69d75 100644 --- a/samples/FunctionApp-WebMvc-Sample/FunctionApp-WebMvc-Sample/FunctionApp-WebMvc-Sample.csproj +++ b/samples/FunctionApp-WebMvc-Sample/FunctionApp-WebMvc-Sample/FunctionApp-WebMvc-Sample.csproj @@ -7,7 +7,7 @@ enable true FunctionApp_WebMvc_Sample - 10.0 + latest diff --git a/samples/RazorLight.Samples/Samples.EntityFrameworkProject.csproj b/samples/RazorLight.Samples/Samples.EntityFrameworkProject.csproj index f06d844c..0ec74021 100644 --- a/samples/RazorLight.Samples/Samples.EntityFrameworkProject.csproj +++ b/samples/RazorLight.Samples/Samples.EntityFrameworkProject.csproj @@ -5,7 +5,7 @@ net8.0 true false - 10.0 + latest diff --git a/sandbox/RazorLight.Sandbox/RazorLight.Sandbox.csproj b/sandbox/RazorLight.Sandbox/RazorLight.Sandbox.csproj index 38e66d26..b12188ac 100644 --- a/sandbox/RazorLight.Sandbox/RazorLight.Sandbox.csproj +++ b/sandbox/RazorLight.Sandbox/RazorLight.Sandbox.csproj @@ -5,7 +5,7 @@ net8.0 true false - 10.0 + latest diff --git a/src/RazorLight.Precompile/RazorLight.Precompile.csproj b/src/RazorLight.Precompile/RazorLight.Precompile.csproj index aed9864d..d7ba854d 100644 --- a/src/RazorLight.Precompile/RazorLight.Precompile.csproj +++ b/src/RazorLight.Precompile/RazorLight.Precompile.csproj @@ -7,7 +7,7 @@ true true Mark Kharitonov - 10.0 + latest diff --git a/src/RazorLight/RazorLight.csproj b/src/RazorLight/RazorLight.csproj index 559cc924..eb97844e 100644 --- a/src/RazorLight/RazorLight.csproj +++ b/src/RazorLight/RazorLight.csproj @@ -1,7 +1,7 @@ netstandard2.0;net8.0 - 10.0 + latest diff --git a/tests/RazorLight.Precompile.Tests/RazorLight.Precompile.Tests.csproj b/tests/RazorLight.Precompile.Tests/RazorLight.Precompile.Tests.csproj index 80b11e62..5d0d5211 100644 --- a/tests/RazorLight.Precompile.Tests/RazorLight.Precompile.Tests.csproj +++ b/tests/RazorLight.Precompile.Tests/RazorLight.Precompile.Tests.csproj @@ -6,7 +6,7 @@ enable enable CS8600;CS8602;CS8603;CS8604 - 10.0 + latest diff --git a/tests/RazorLight.Tests/RazorLight.Tests.csproj b/tests/RazorLight.Tests/RazorLight.Tests.csproj index 05a8faa6..7ddc221a 100644 --- a/tests/RazorLight.Tests/RazorLight.Tests.csproj +++ b/tests/RazorLight.Tests/RazorLight.Tests.csproj @@ -7,7 +7,7 @@ $(DefineConstants);SOME_TEST_DEFINE true NU1701;CS0618 - 10.0 + latest From 4079c991f6dd1e73f78a919027152ca34fee3b71 Mon Sep 17 00:00:00 2001 From: Kev Hunter Date: Thu, 31 Jul 2025 18:32:07 +0100 Subject: [PATCH 09/10] update .net --- .github/workflows/dotnet.yml | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index bd7f9379..55090d11 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -17,25 +17,10 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Setup .NET Core 2.1 - uses: actions/setup-dotnet@v1 - with: - dotnet-version: 2.1.803 - - - name: Setup .NET Core 3.1 - uses: actions/setup-dotnet@v1 - with: - dotnet-version: 3.1.101 - - - name: Setup .NET 5 - uses: actions/setup-dotnet@v1 - with: - dotnet-version: '5.0.100' - - name: Setup .NET 6 uses: actions/setup-dotnet@v1 with: - dotnet-version: '6.0.x' + dotnet-version: '8.0.x' - name: Restore dependencies run: dotnet restore From 95beb8c9410ac9d51b99a6a5d6220d5d3ecc7ee0 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 31 Jul 2025 17:55:28 +0000 Subject: [PATCH 10/10] Fix .NET 8 DateTime formatting compatibility in test templates Co-authored-by: MrKevHunter <224467+MrKevHunter@users.noreply.github.com> --- .../Samples/WorkItemComment.cshtml | 2 +- .../Samples/folder/MessageItem.cshtml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/RazorLight.Precompile.Tests/Samples/WorkItemComment.cshtml b/tests/RazorLight.Precompile.Tests/Samples/WorkItemComment.cshtml index 566eae82..efbffd83 100644 --- a/tests/RazorLight.Precompile.Tests/Samples/WorkItemComment.cshtml +++ b/tests/RazorLight.Precompile.Tests/Samples/WorkItemComment.cshtml @@ -1,5 +1,5 @@ Action: @Model.action -Created: @Model.created +Created: @Model.created.ToString("M/d/yyyy h:mm:ss tt") User name: @Model.user_name @Model.comment diff --git a/tests/RazorLight.Precompile.Tests/Samples/folder/MessageItem.cshtml b/tests/RazorLight.Precompile.Tests/Samples/folder/MessageItem.cshtml index 18ecad8c..28ea3b1e 100644 --- a/tests/RazorLight.Precompile.Tests/Samples/folder/MessageItem.cshtml +++ b/tests/RazorLight.Precompile.Tests/Samples/folder/MessageItem.cshtml @@ -10,7 +10,7 @@ Type Name: @Model.SourceCodeInfo.TypeName
Member Name: @Model.SourceCodeInfo.MemberName
-First Found Date: @Model.finding_status.first_found_date +First Found Date: @Model.finding_status.first_found_date.ToString("M/d/yyyy h:mm:ss tt")
@if (Model.annotations == null || Model.annotations.Count == 0) { @@ -23,7 +23,7 @@ else ActionCreatedUser NameComment @foreach (var annotation in Model.annotations) { - @annotation.action@annotation.created@annotation.user_name@annotation.comment + @annotation.action@annotation.created.ToString("M/d/yyyy h:mm:ss tt")@annotation.user_name@annotation.comment } }