Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<TargetFrameworks>net472;net10.0</TargetFrameworks>
<ApplicationIcon />
<OutputType>Exe</OutputType>
<StartupObject />
Expand All @@ -26,8 +26,11 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Alba.CsCss" version="1.0.1.0" />
<PackageReference Include="AngleSharp" Version="1.4.0" />
<PackageReference Include="ExCSS" version="2.0.6" />
<PackageReference Include="ExCSS" version="4.3.1" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net472'">
<PackageReference Include="Alba.CsCss" version="1.0.1.0" />
</ItemGroup>
</Project>
4 changes: 3 additions & 1 deletion src/AngleSharp.Performance.Css/CsCssParser.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
namespace AngleSharp.Performance.Css
#if NET472
namespace AngleSharp.Performance.Css
{
using Alba.CsCss.Style;
using System;
Expand All @@ -24,3 +25,4 @@ public void Run(String source)
}
}
}
#endif
4 changes: 2 additions & 2 deletions src/AngleSharp.Performance.Css/ExCssParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ class ExCssParser : ITestee
{
public String Name => "ExCSS";

public Type Library => typeof(Parser);
public Type Library => typeof(StylesheetParser);

public void Run(String source)
{
var parser = new Parser();
var parser = new StylesheetParser();
parser.Parse(source);
}
}
Expand Down
2 changes: 2 additions & 0 deletions src/AngleSharp.Performance.Css/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ static void Main(String[] args)
{
new AngleSharpParser(),
new ExCssParser(),
#if NET472
new CsCssParser(),
#endif
};

var testsuite = new TestSuite(parsers, stylesheets.Tests, new Output(), new Warmup())
Expand Down
Loading