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 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) 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..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 @@ -1,12 +1,13 @@ - net7.0 + net8.0 v4 Exe enable enable true FunctionApp_WebMvc_Sample + latest diff --git a/samples/RazorLight.Samples/Samples.EntityFrameworkProject.csproj b/samples/RazorLight.Samples/Samples.EntityFrameworkProject.csproj index cdea2c30..0ec74021 100644 --- a/samples/RazorLight.Samples/Samples.EntityFrameworkProject.csproj +++ b/samples/RazorLight.Samples/Samples.EntityFrameworkProject.csproj @@ -2,24 +2,15 @@ Exe - netcoreapp2.1;netcoreapp3.1;net5.0 + net8.0 true false + latest - - - - - - - - - - - - - + + + diff --git a/sandbox/RazorLight.Sandbox/RazorLight.Sandbox.csproj b/sandbox/RazorLight.Sandbox/RazorLight.Sandbox.csproj index b8515886..b12188ac 100644 --- a/sandbox/RazorLight.Sandbox/RazorLight.Sandbox.csproj +++ b/sandbox/RazorLight.Sandbox/RazorLight.Sandbox.csproj @@ -2,17 +2,10 @@ Exe - netcoreapp3.1 + net8.0 true false - - - - 8.0 - - - - 8.0 + latest diff --git a/src/RazorLight.Precompile/RazorLight.Precompile.csproj b/src/RazorLight.Precompile/RazorLight.Precompile.csproj index 55d5c9ea..d7ba854d 100644 --- a/src/RazorLight.Precompile/RazorLight.Precompile.csproj +++ b/src/RazorLight.Precompile/RazorLight.Precompile.csproj @@ -1,12 +1,13 @@ - - Exe - net6.0 - razorlight-precompile - true - true - Mark Kharitonov + + Exe + net8.0 + razorlight-precompile + true + true + Mark Kharitonov + latest diff --git a/src/RazorLight/RazorLight.csproj b/src/RazorLight/RazorLight.csproj index b3d95fd2..eb97844e 100644 --- a/src/RazorLight/RazorLight.csproj +++ b/src/RazorLight/RazorLight.csproj @@ -1,6 +1,7 @@ - netstandard2.0;netcoreapp3.1;net5.0;net6.0 + netstandard2.0;net8.0 + latest @@ -30,55 +31,16 @@ - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + diff --git a/tests/RazorLight.Precompile.Tests/RazorLight.Precompile.Tests.csproj b/tests/RazorLight.Precompile.Tests/RazorLight.Precompile.Tests.csproj index 73be2459..5d0d5211 100644 --- a/tests/RazorLight.Precompile.Tests/RazorLight.Precompile.Tests.csproj +++ b/tests/RazorLight.Precompile.Tests/RazorLight.Precompile.Tests.csproj @@ -1,15 +1,16 @@ - - net6.0 - true - enable - enable - CS8600;CS8602;CS8603;CS8604 + + net8.0 + true + enable + enable + CS8600;CS8602;CS8603;CS8604 + latest - + 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 } } diff --git a/tests/RazorLight.Tests/RazorLight.Tests.csproj b/tests/RazorLight.Tests/RazorLight.Tests.csproj index 524b10c5..7ddc221a 100644 --- a/tests/RazorLight.Tests/RazorLight.Tests.csproj +++ b/tests/RazorLight.Tests/RazorLight.Tests.csproj @@ -1,12 +1,13 @@ - netcoreapp2.0;netcoreapp3.1;net5.0;net6.0 + net8.0 false true $(DefineConstants);SOME_TEST_DEFINE - true + true NU1701;CS0618 + latest @@ -49,28 +50,10 @@
- - - - - - - - - - - - - - - - - - - - - - + + + +