Skip to content

Commit

Permalink
#94 single file fix for net5+
Browse files Browse the repository at this point in the history
  • Loading branch information
adoconnection committed Jan 21, 2022
1 parent d49d91a commit 6a684f9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Pack.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
dotnet build -c Release
dotnet test
dotnet pack -c Release -o artifacts RazorEngineCore\RazorEngineCore.csproj -p:symbolPackageFormat=snupkg --include-symbols
dotnet nuget push artifacts\RazorEngineCore.2022.1.1.nupkg --source https://www.nuget.org/api/v2/package -k KEY
dotnet nuget push artifacts\RazorEngineCore.2022.1.2.nupkg --source https://www.nuget.org/api/v2/package -k KEY
2 changes: 1 addition & 1 deletion RazorEngineCore/RazorEngine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ protected virtual MemoryStream CreateAndCompileToStream(string templateSource, R
options.ReferencedAssemblies
.Select(ass =>
{
#if NETSTANDARD2_0_OR_GREATER || NET5_0_OR_GREATER
#if NETSTANDARD2_0
return MetadataReference.CreateFromFile(ass.Location);
#else
unsafe
Expand Down
6 changes: 3 additions & 3 deletions RazorEngineCore/RazorEngineCore.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<PropertyGroup>
<TargetFrameworks>net6.0;net5.0;netstandard2.0</TargetFrameworks>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Version>2022.1.1</Version>
<Version>2022.1.2</Version>
<Authors>Alexander Selishchev, Simon Mourier, William David Cossey, Benjamin Smith, Dag H. Baardsen, krmr, jddj007-hydra</Authors>
<PackageProjectUrl>https://github.com/adoconnection/RazorEngineCore</PackageProjectUrl>
<Description>NET6 Razor Template Engine</Description>
<AssemblyVersion>2022.1.1</AssemblyVersion>
<FileVersion>2022.1.1</FileVersion>
<AssemblyVersion>2022.1.2</AssemblyVersion>
<FileVersion>2022.1.2</FileVersion>
<PackageReleaseNotes></PackageReleaseNotes>
<Company>Alexander Selishchev, Simon Mourier, William David Cossey, Benjamin Smith, Dag H. Baardsen, krmr, jddj007-hydra</Company>
<SignAssembly>true</SignAssembly>
Expand Down

0 comments on commit 6a684f9

Please sign in to comment.