diff --git a/RazorLight.sln b/RazorLight.sln index 9918d568..8186e057 100644 --- a/RazorLight.sln +++ b/RazorLight.sln @@ -39,6 +39,11 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Publish", "Publish", "{03C5 makeNuget.cmd = makeNuget.cmd EndProjectSection EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{EC25D85F-CCCC-43E1-AACD-2D710C1B760B}" + ProjectSection(SolutionItems) = preProject + .editorconfig = .editorconfig + EndProjectSection +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU diff --git a/samples/RazorLight.Samples/Program.cs b/samples/RazorLight.Samples/Program.cs index 12798daa..9a623d80 100644 --- a/samples/RazorLight.Samples/Program.cs +++ b/samples/RazorLight.Samples/Program.cs @@ -27,7 +27,7 @@ static void Main(string[] args) string templateKey = "2"; var model = new TestViewModel() { Name = "Johny", Age = 22 }; -#if (NETCOREAPP3_0 || NETCOREAPP3_1) +#if (NETCOREAPP3_0 || NETCOREAPP3_1 || NET5_0) model.Age = 40; #endif string result = engine.CompileRenderAsync(templateKey, model).Result; diff --git a/samples/RazorLight.Samples/Samples.EntityFrameworkProject.csproj b/samples/RazorLight.Samples/Samples.EntityFrameworkProject.csproj index 4c63e168..11c8d6d3 100644 --- a/samples/RazorLight.Samples/Samples.EntityFrameworkProject.csproj +++ b/samples/RazorLight.Samples/Samples.EntityFrameworkProject.csproj @@ -1,29 +1,29 @@  - - Exe - netcoreapp2.1;netcoreapp3.0;netcoreapp3.1 - true - false - + + Exe + netcoreapp2.1;netcoreapp3.1;net5.0 + true + false + - - - - + + + + - - - - + + + + - - - - + + + + - - - + + + diff --git a/sandbox/RazorLight.Sandbox/RazorLight.Sandbox.csproj b/sandbox/RazorLight.Sandbox/RazorLight.Sandbox.csproj index 9da5c914..16f18ff9 100644 --- a/sandbox/RazorLight.Sandbox/RazorLight.Sandbox.csproj +++ b/sandbox/RazorLight.Sandbox/RazorLight.Sandbox.csproj @@ -2,7 +2,7 @@ Exe - netcoreapp2.0 + net5.0 true false diff --git a/src/RazorLight.Precompile/RazorLight.Precompile.csproj b/src/RazorLight.Precompile/RazorLight.Precompile.csproj index 5f802030..6714cc93 100644 --- a/src/RazorLight.Precompile/RazorLight.Precompile.csproj +++ b/src/RazorLight.Precompile/RazorLight.Precompile.csproj @@ -2,7 +2,7 @@ Exe - netcoreapp2.0;netcoreapp3.0;netcoreapp3.1 + netcoreapp2.1;netcoreapp3.1;net5.0 false diff --git a/src/RazorLight/DefaultRazorEngine.cs b/src/RazorLight/DefaultRazorEngine.cs index 501ac619..82dc9756 100644 --- a/src/RazorLight/DefaultRazorEngine.cs +++ b/src/RazorLight/DefaultRazorEngine.cs @@ -57,7 +57,7 @@ public override IEnumerable EnumerateItems(string basePath) } -#if (NETCOREAPP3_0 || NETCOREAPP3_1) +#if (NETCOREAPP3_0 || NETCOREAPP3_1 || NET5_0) [System.Obsolete] #endif public override RazorProjectItem GetItem(string path) @@ -65,7 +65,7 @@ public override RazorProjectItem GetItem(string path) throw new System.NotImplementedException(); } -#if (NETCOREAPP3_0 || NETCOREAPP3_1) +#if (NETCOREAPP3_0 || NETCOREAPP3_1 || NET5_0) public override RazorProjectItem GetItem(string path, string fileKind) { throw new System.NotImplementedException(); diff --git a/src/RazorLight/RazorLight.csproj b/src/RazorLight/RazorLight.csproj index ed5ff676..19a89ed3 100644 --- a/src/RazorLight/RazorLight.csproj +++ b/src/RazorLight/RazorLight.csproj @@ -1,6 +1,6 @@  - netstandard2.0;netcoreapp3.0;netcoreapp3.1 + netstandard2.0;netcoreapp3.1;net5.0 @@ -33,7 +33,7 @@ - + @@ -60,6 +60,19 @@ + + + + + + + + + + + + + True diff --git a/tests/RazorLight.Tests/RazorLight.Tests.csproj b/tests/RazorLight.Tests/RazorLight.Tests.csproj index 87515168..be63e441 100644 --- a/tests/RazorLight.Tests/RazorLight.Tests.csproj +++ b/tests/RazorLight.Tests/RazorLight.Tests.csproj @@ -1,72 +1,72 @@  - - netcoreapp2.0;netcoreapp3.0;netcoreapp3.1 - false - true - $(DefineConstants);SOME_TEST_DEFINE - + + netcoreapp2.0;netcoreapp3.1;net5.0 + false + true + $(DefineConstants);SOME_TEST_DEFINE + - - $(SolutionDir) - + + $(SolutionDir) + - - true - + + true + - - false - true - + + false + true + - - - - + + + + - - - PreserveNewest - - + + + PreserveNewest + + - - - - - - - - + + + + + + + + - - - - - + + + + + - - - - - + + + + + - - - - - + + + + + - - - + + + - - - PreserveNewest - - + + + PreserveNewest + +