diff --git a/src/AngleSharp.Performance.Css/AngleSharp.Performance.Css.csproj b/src/AngleSharp.Performance.Css/AngleSharp.Performance.Css.csproj index e48c8dd..9670b16 100644 --- a/src/AngleSharp.Performance.Css/AngleSharp.Performance.Css.csproj +++ b/src/AngleSharp.Performance.Css/AngleSharp.Performance.Css.csproj @@ -1,6 +1,6 @@ - net10.0 + net472;net10.0 Exe @@ -26,8 +26,11 @@ - - + + + + + \ No newline at end of file diff --git a/src/AngleSharp.Performance.Css/CsCssParser.cs b/src/AngleSharp.Performance.Css/CsCssParser.cs index 915051e..dcf4b19 100644 --- a/src/AngleSharp.Performance.Css/CsCssParser.cs +++ b/src/AngleSharp.Performance.Css/CsCssParser.cs @@ -1,4 +1,5 @@ -namespace AngleSharp.Performance.Css +#if NET472 +namespace AngleSharp.Performance.Css { using Alba.CsCss.Style; using System; @@ -24,3 +25,4 @@ public void Run(String source) } } } +#endif diff --git a/src/AngleSharp.Performance.Css/ExCssParser.cs b/src/AngleSharp.Performance.Css/ExCssParser.cs index e389aa8..c73d0cd 100644 --- a/src/AngleSharp.Performance.Css/ExCssParser.cs +++ b/src/AngleSharp.Performance.Css/ExCssParser.cs @@ -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); } } diff --git a/src/AngleSharp.Performance.Css/Program.cs b/src/AngleSharp.Performance.Css/Program.cs index 2757160..11898bd 100644 --- a/src/AngleSharp.Performance.Css/Program.cs +++ b/src/AngleSharp.Performance.Css/Program.cs @@ -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())