Skip to content

Commit 6a684f9

Browse files
committed
#94 single file fix for net5+
1 parent d49d91a commit 6a684f9

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Pack.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
dotnet build -c Release
22
dotnet test
33
dotnet pack -c Release -o artifacts RazorEngineCore\RazorEngineCore.csproj -p:symbolPackageFormat=snupkg --include-symbols
4-
dotnet nuget push artifacts\RazorEngineCore.2022.1.1.nupkg --source https://www.nuget.org/api/v2/package -k KEY
4+
dotnet nuget push artifacts\RazorEngineCore.2022.1.2.nupkg --source https://www.nuget.org/api/v2/package -k KEY

RazorEngineCore/RazorEngine.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ protected virtual MemoryStream CreateAndCompileToStream(string templateSource, R
8585
options.ReferencedAssemblies
8686
.Select(ass =>
8787
{
88-
#if NETSTANDARD2_0_OR_GREATER || NET5_0_OR_GREATER
88+
#if NETSTANDARD2_0
8989
return MetadataReference.CreateFromFile(ass.Location);
9090
#else
9191
unsafe

RazorEngineCore/RazorEngineCore.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
<PropertyGroup>
33
<TargetFrameworks>net6.0;net5.0;netstandard2.0</TargetFrameworks>
44
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
5-
<Version>2022.1.1</Version>
5+
<Version>2022.1.2</Version>
66
<Authors>Alexander Selishchev, Simon Mourier, William David Cossey, Benjamin Smith, Dag H. Baardsen, krmr, jddj007-hydra</Authors>
77
<PackageProjectUrl>https://github.com/adoconnection/RazorEngineCore</PackageProjectUrl>
88
<Description>NET6 Razor Template Engine</Description>
9-
<AssemblyVersion>2022.1.1</AssemblyVersion>
10-
<FileVersion>2022.1.1</FileVersion>
9+
<AssemblyVersion>2022.1.2</AssemblyVersion>
10+
<FileVersion>2022.1.2</FileVersion>
1111
<PackageReleaseNotes></PackageReleaseNotes>
1212
<Company>Alexander Selishchev, Simon Mourier, William David Cossey, Benjamin Smith, Dag H. Baardsen, krmr, jddj007-hydra</Company>
1313
<SignAssembly>true</SignAssembly>

0 commit comments

Comments
 (0)