Skip to content

Commit 19148c5

Browse files
authored
Merge pull request #147 from TylerBrinks/feature/update-package-info
Update package information
2 parents 232723b + 9fbe7aa commit 19148c5

File tree

2 files changed

+24
-9
lines changed

2 files changed

+24
-9
lines changed

src/ExCSS/ExCSS.csproj

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,25 @@
22

33
<PropertyGroup>
44
<LangVersion>9.0</LangVersion>
5-
<TargetFrameworks>net7.0;net6.0;netstandard2.1;netstandard2.0;netcoreapp3.1;net452</TargetFrameworks>
5+
<TargetFrameworks>net7.0;net6.0;netcoreapp3.1;net48;netstandard2.1;netstandard2.0</TargetFrameworks>
66
<AssemblyName>ExCSS</AssemblyName>
77
<PackageId>ExCSS</PackageId>
88
<Title>ExCSS .NET Stylesheet Parser</Title>
99
<Authors>Tyler Brinks</Authors>
10-
<Description>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.</Description>
11-
<RepositoryUrl>https://github.com/TylerBrinks/ExCSS</RepositoryUrl>
12-
<PackageVersion>4.0.2</PackageVersion>
10+
<Description>
11+
ExCSS is a CSS 2.1 and CSS 3 parser for .NET.
12+
ExCSS makes it easy to read and parse stylesheets into a friendly object model with full LINQ support.
13+
</Description>
14+
<PackageProjectUrl>https://github.com/TylerBrinks/ExCSS</PackageProjectUrl>
15+
<PackageLicenseExpression>MIT</PackageLicenseExpression>
16+
<PackageReadmeFile>README.md</PackageReadmeFile>
17+
<RespositoryType>git</RespositoryType>
18+
<RepositoryUrl>https://github.com/TylerBrinks/ExCSS</RepositoryUrl>
1319
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
1420
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
1521
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
1622
<SignAssembly>true</SignAssembly>
1723
<AssemblyOriginatorKeyFile>ExCSS.snk</AssemblyOriginatorKeyFile>
18-
<Version>4.1.3</Version>
1924
</PropertyGroup>
2025

2126
<ItemGroup>
@@ -24,6 +29,7 @@
2429

2530
<ItemGroup>
2631
<Folder Include="Properties\" />
32+
<None Include="..\..\readme.md" Pack="true" PackagePath="\" />
2733
</ItemGroup>
2834

2935
</Project>

src/ExCSS/Model/Url.cs

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,19 @@ public string Query
163163
set => ParseQuery(value ?? string.Empty, 0, true);
164164
}
165165

166-
//public override int GetHashCode()
167-
//{
168-
// return base.GetHashCode();
169-
//}
166+
public override int GetHashCode() => new
167+
{
168+
_fragment,
169+
_query,
170+
_path,
171+
_scheme,
172+
_port,
173+
_host,
174+
UserName,
175+
Password,
176+
_relative,
177+
Data
178+
}.GetHashCode();
170179

171180
public override bool Equals(object obj)
172181
{

0 commit comments

Comments
 (0)