Skip to content

Commit 097a1c3

Browse files
committed
Update RazorEngine.cs
Use _OR_GREATERTHAN and add Net 5.0 to the pre-processor directive.
1 parent 3292b18 commit 097a1c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

RazorEngineCore/RazorEngine.cs

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

0 commit comments

Comments
 (0)