Skip to content

Commit d323105

Browse files
authored
chore(package): update license handling and add MIT license expression (#97)
1 parent 5c04ac1 commit d323105

File tree

7 files changed

+1
-84
lines changed

7 files changed

+1
-84
lines changed

Directory.Build.props

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
<Description>HTTP User Agent Parser for .NET</Description>
5757
<PackageProjectUrl>https://github.com/mycsharp/HttpUserAgentParser</PackageProjectUrl>
5858
<RepositoryUrl>https://github.com/mycsharp/HttpUserAgentParser</RepositoryUrl>
59+
<PackageLicenseExpression>MIT</PackageLicenseExpression>
5960
<PackageTags>UserAgent, User Agent, Parse, Browser, Client, Detector, Detection, Console, ASP, Desktop, Mobile</PackageTags>
6061
</PropertyGroup>
6162

@@ -111,21 +112,6 @@
111112
</PackageReference>
112113
</ItemGroup>
113114

114-
<!-- Global coverage settings applied to all test projects -->
115-
<PropertyGroup Condition="'$(IsTestProject)' == 'true'" Label="Coverage">
116-
<CollectCoverage>true</CollectCoverage>
117-
<CoverletOutputFormat>lcov,opencover,cobertura</CoverletOutputFormat>
118-
<CoverletOutput>$(MSBuildThisFileDirectory)TestResults/coverage/$(MSBuildProjectName).</CoverletOutput>
119-
<ExcludeByAttribute>GeneratedCodeAttribute,CompilerGeneratedAttribute,ExcludeFromCodeCoverageAttribute</ExcludeByAttribute>
120-
<ExcludeByFile>**/*Program.cs;**/*Startup.cs;**/*GlobalUsings.cs</ExcludeByFile>
121-
<UseSourceLink>true</UseSourceLink>
122-
<!-- Enforce high line coverage; branch coverage is informative only -->
123-
<!-- Note: Set to 96 to account for performance-optimized helper methods and framework-specific code paths -->
124-
<Threshold>96</Threshold>
125-
<ThresholdType>line</ThresholdType>
126-
<ThresholdStat>total</ThresholdStat>
127-
</PropertyGroup>
128-
129115
<!-- Limit coverage to the target assemblies for each test project -->
130116
<PropertyGroup Condition="'$(MSBuildProjectName)' == 'HttpUserAgentParser.UnitTests'" Label="CoverageFilter">
131117
<Include>[MyCSharp.HttpUserAgentParser]*</Include>

src/HttpUserAgentParser.AspNetCore/HttpUserAgentParser.AspNetCore.csproj

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,10 @@
88
<PropertyGroup Label="Package">
99
<IsPackable>true</IsPackable>
1010
<PackageReadmeFile>readme.md</PackageReadmeFile>
11-
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
1211
</PropertyGroup>
1312

1413
<ItemGroup>
1514
<None Include="readme.md" Pack="true" PackagePath="" />
16-
<None Include="LICENSE.txt" Pack="true" PackagePath="" />
1715
</ItemGroup>
1816

1917
<ItemGroup>

src/HttpUserAgentParser.AspNetCore/LICENSE.txt

Lines changed: 0 additions & 21 deletions
This file was deleted.

src/HttpUserAgentParser.MemoryCache/HttpUserAgentParser.MemoryCache.csproj

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,10 @@
88
<PropertyGroup Label="Package">
99
<IsPackable>true</IsPackable>
1010
<PackageReadmeFile>readme.md</PackageReadmeFile>
11-
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
1211
</PropertyGroup>
1312

1413
<ItemGroup>
1514
<None Include="readme.md" Pack="true" PackagePath="" />
16-
<None Include="LICENSE.txt" Pack="true" PackagePath="" />
1715
</ItemGroup>
1816

1917
<ItemGroup Label="NuGet">

src/HttpUserAgentParser.MemoryCache/LICENSE.txt

Lines changed: 0 additions & 21 deletions
This file was deleted.

src/HttpUserAgentParser/HttpUserAgentParser.csproj

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,10 @@
88
<PropertyGroup Label="Package">
99
<IsPackable>true</IsPackable>
1010
<PackageReadmeFile>readme.md</PackageReadmeFile>
11-
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
1211
</PropertyGroup>
1312

1413
<ItemGroup>
1514
<None Include="readme.md" Pack="true" PackagePath="" />
16-
<None Include="LICENSE.txt" Pack="true" PackagePath="" />
1715
</ItemGroup>
1816

1917
<ItemGroup>

src/HttpUserAgentParser/LICENSE.txt

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)