Skip to content

Commit

Permalink
Fix PropertyFactory for Net45
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidCarbon committed Apr 23, 2024
1 parent e3abe4f commit e6422fb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/ExCSS/Factories/PropertyFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,11 @@ public string[] GetLonghands(string name)
{
return _mappings.TryGetValue(name, out var mapping)
? mapping
#if NET46_OR_GREATER || NET5_0_OR_GREATER || NETCOREAPP3_0_OR_GREATER || NETSTANDARD2_0_OR_GREATER
: Array.Empty<string>();
#else
: new string[0];
#endif
}

public IEnumerable<string> GetShorthands(string name)
Expand Down
2 changes: 1 addition & 1 deletion src/ExCSS/SBRW.ExCSS.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<LangVersion>9.0</LangVersion>
<TargetFrameworks>net7.0;net6.0;netcoreapp3.1;net45;net461;net48;netstandard2.1;netstandard2.0</TargetFrameworks>
<TargetFrameworks>net8.0;net7.0;net6.0;netcoreapp3.1;net45;net461;net48;netstandard2.1;netstandard2.0</TargetFrameworks>
<Version>0.3.8</Version>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Title>ExCSS .NET Stylesheet Parser</Title>
Expand Down

0 comments on commit e6422fb

Please sign in to comment.