From cd95ff8bc9550fba687d8d374d82b4109038a2d3 Mon Sep 17 00:00:00 2001 From: Gideon de Swardt Date: Sat, 8 Apr 2023 15:04:11 +0100 Subject: [PATCH 1/3] Update the package settings Removed the version information and added the license and readme file for the NuGet package information. --- src/ExCSS/ExCSS.csproj | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/src/ExCSS/ExCSS.csproj b/src/ExCSS/ExCSS.csproj index f07c379b..4622d1be 100644 --- a/src/ExCSS/ExCSS.csproj +++ b/src/ExCSS/ExCSS.csproj @@ -2,20 +2,25 @@ 9.0 - net7.0;net6.0;netstandard2.1;netstandard2.0;netcoreapp3.1;net452 + net7.0;net6.0;netcoreapp3.1;net48;netstandard2.1;netstandard2.0 ExCSS ExCSS ExCSS .NET Stylesheet Parser Tyler Brinks - ExCSS is a CSS 2.1 and CSS 3 parser for .NET. ExCSS makes it easy to read and parse stylesheets into a friendly object model with full LINQ support. - https://github.com/TylerBrinks/ExCSS - 4.0.2 + + ExCSS is a CSS 2.1 and CSS 3 parser for .NET. + ExCSS makes it easy to read and parse stylesheets into a friendly object model with full LINQ support. + + https://github.com/TylerBrinks/ExCSS + MIT + README.md + git + https://github.com/TylerBrinks/ExCSS false false false true ExCSS.snk - 4.1.3 @@ -24,6 +29,7 @@ + \ No newline at end of file From 9fbe7aa37934a14e27a73d0fd8961ce18d5ad248 Mon Sep 17 00:00:00 2001 From: Gideon de Swardt Date: Sat, 8 Apr 2023 15:58:24 +0100 Subject: [PATCH 2/3] Fix compiler warnings Implemented the GetHashCode to remove the compiler warnings. --- src/ExCSS/Model/Url.cs | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/src/ExCSS/Model/Url.cs b/src/ExCSS/Model/Url.cs index 336115a4..9421c4d0 100644 --- a/src/ExCSS/Model/Url.cs +++ b/src/ExCSS/Model/Url.cs @@ -163,10 +163,19 @@ public string Query set => ParseQuery(value ?? string.Empty, 0, true); } - //public override int GetHashCode() - //{ - // return base.GetHashCode(); - //} + public override int GetHashCode() => new + { + _fragment, + _query, + _path, + _scheme, + _port, + _host, + UserName, + Password, + _relative, + Data + }.GetHashCode(); public override bool Equals(object obj) { From 4f0f9b332d25821464d413ad28b53ed7855ffd3c Mon Sep 17 00:00:00 2001 From: Gideon de Swardt Date: Sat, 8 Apr 2023 16:14:46 +0100 Subject: [PATCH 3/3] Fix readme file path --- src/ExCSS/ExCSS.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ExCSS/ExCSS.csproj b/src/ExCSS/ExCSS.csproj index 4622d1be..a2e53c76 100644 --- a/src/ExCSS/ExCSS.csproj +++ b/src/ExCSS/ExCSS.csproj @@ -13,7 +13,7 @@ https://github.com/TylerBrinks/ExCSS MIT - README.md + readme.md git https://github.com/TylerBrinks/ExCSS false