Skip to content

Commit f634a2e

Browse files
authored
Merge pull request #128 from feO2x/release-13_1_0
Release 13.1.0
2 parents 638da53 + c462db5 commit f634a2e

File tree

4 files changed

+372
-57
lines changed

4 files changed

+372
-57
lines changed
Lines changed: 47 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,55 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

3-
<Import Project="..\Version.props" />
3+
<Import Project="..\Version.props" />
44

5-
<PropertyGroup>
6-
<TargetFrameworks>netstandard2.0;netstandard2.1;net8.0</TargetFrameworks>
7-
<Description>A lightweight .NET library for expressive Guard Clauses.</Description>
8-
<Authors>Kenny Pflug</Authors>
9-
<Company>Kenny Pflug</Company>
10-
<Nullable>enable</Nullable>
11-
<IsAotCompatible Condition="'$(TargetFramework)' == 'net8.0'">true</IsAotCompatible>
12-
<Copyright>Copyright © Kenny Pflug 2016, 2025</Copyright>
13-
<LangVersion>12</LangVersion>
14-
<TreatWarningsAsErrors Condition="'$(Configuration)' == 'Release'">true</TreatWarningsAsErrors>
15-
<IsPackable>true</IsPackable>
16-
<PackageLicenseExpression>MIT</PackageLicenseExpression>
17-
<PackageIcon>light-logo.png</PackageIcon>
18-
<PackageProjectUrl>https://github.com/feO2x/Light.GuardClauses</PackageProjectUrl>
19-
<RepositoryUrl>https://github.com/feO2x/Light.GuardClauses.git</RepositoryUrl>
20-
<RepositoryType>git</RepositoryType>
21-
<PublishRepositoryUrl>true</PublishRepositoryUrl>
22-
<IncludeSymbols>true</IncludeSymbols>
23-
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
24-
<EmbedUntrackedSources>true</EmbedUntrackedSources>
25-
<PackageTags>Assertions;Preconditions;GuardClauses;DesignByContract;DbC</PackageTags>
26-
<GenerateDocumentationFile>true</GenerateDocumentationFile>
27-
<PackageReadmeFile>README.md</PackageReadmeFile>
28-
<PackageReleaseNotes>
29-
Light.GuardClauses 13.0.0
30-
--------------------------------
5+
<PropertyGroup>
6+
<TargetFrameworks>netstandard2.0;netstandard2.1;net8.0</TargetFrameworks>
7+
<Description>A lightweight .NET library for expressive Guard Clauses.</Description>
8+
<Authors>Kenny Pflug</Authors>
9+
<Company>Kenny Pflug</Company>
10+
<Nullable>enable</Nullable>
11+
<IsAotCompatible Condition="'$(TargetFramework)' == 'net8.0'">true</IsAotCompatible>
12+
<Copyright>Copyright © Kenny Pflug 2016, 2025</Copyright>
13+
<LangVersion>12</LangVersion>
14+
<TreatWarningsAsErrors Condition="'$(Configuration)' == 'Release'">true</TreatWarningsAsErrors>
15+
<IsPackable>true</IsPackable>
16+
<PackageLicenseExpression>MIT</PackageLicenseExpression>
17+
<PackageIcon>light-logo.png</PackageIcon>
18+
<PackageProjectUrl>https://github.com/feO2x/Light.GuardClauses</PackageProjectUrl>
19+
<RepositoryUrl>https://github.com/feO2x/Light.GuardClauses.git</RepositoryUrl>
20+
<RepositoryType>git</RepositoryType>
21+
<PublishRepositoryUrl>true</PublishRepositoryUrl>
22+
<IncludeSymbols>true</IncludeSymbols>
23+
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
24+
<EmbedUntrackedSources>true</EmbedUntrackedSources>
25+
<PackageTags>Assertions;Preconditions;GuardClauses;DesignByContract;DbC</PackageTags>
26+
<GenerateDocumentationFile>true</GenerateDocumentationFile>
27+
<PackageReadmeFile>README.md</PackageReadmeFile>
28+
<PackageReleaseNotes>
29+
Light.GuardClauses 13.1.0
30+
--------------------------------
3131

32-
- new assertions: IsApproximately&lt;T&gt;, IsLessThanOrApproximately&lt;T&gt;, IsGreaterThanOrApproximately&lt;T&gt;, MustBeApproximately, MustNotBeApproximately, MustBeLessThanOrApproximately, MustBeGreaterThanOrApproximately, IsEmptyOrWhiteSpace, IsFileExtension
33-
- email regex is now precompiled on .NET 8 and newer, the regex is compiled at runtime on .NET Standard 2.0 and 2.1
34-
- breaking: Throw class is now located in new namespace Light.GuardClauses.ExceptionFactory
35-
- breaking: Throw members regarding spans now only support ReadOnlySpan&lt;T&gt;, in keywords were removed
36-
- breaking: IsApproximately now uses less-than-or-equal-to operator (&lt;=) instead of less-than operator (&lt;)
37-
- breaking: Email regex is less strict and support additional patterns like domains with more than 3 letters (e.g. .info or .travel)
38-
</PackageReleaseNotes>
39-
</PropertyGroup>
40-
41-
<ItemGroup>
42-
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="all" />
43-
<PackageReference Include="Nullable" Version="1.3.1" PrivateAssets="all" />
44-
<PackageReference Include="System.Collections.Immutable" Version="8.0.0" />
45-
<PackageReference Include="System.Memory" Version="4.6.0" Condition="'$(TargetFramework)' == 'netstandard2.0'" />
46-
<PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="6.1.0" Condition="'$(TargetFramework)' != 'net8.0'" />
47-
</ItemGroup>
32+
- new assertions for ImmutableArray&lt;T&gt;: MustNotBeDefaultOrEmpty, MustHaveLength, MustHaveLengthIn, MustHaveMinimumLength, MustHaveMaximumLength
33+
- new dependency: System.Collections.Immutable
34+
</PackageReleaseNotes>
35+
</PropertyGroup>
4836

49-
<ItemGroup>
50-
<Analyzer Include="..\Light.GuardClauses.InternalRoslynAnalyzers\bin\$(Configuration)\netstandard2.0\Light.GuardClauses.InternalRoslynAnalyzers.dll"
51-
Condition="Exists('..\Light.GuardClauses.InternalRoslynAnalyzers\bin\$(Configuration)\netstandard2.0\Light.GuardClauses.InternalRoslynAnalyzers.dll')" />
52-
</ItemGroup>
37+
<ItemGroup>
38+
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="all" />
39+
<PackageReference Include="Nullable" Version="1.3.1" PrivateAssets="all" />
40+
<PackageReference Include="System.Collections.Immutable" Version="8.0.0" />
41+
<PackageReference Include="System.Memory" Version="4.6.0" Condition="'$(TargetFramework)' == 'netstandard2.0'" />
42+
<PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="6.1.0" Condition="'$(TargetFramework)' != 'net8.0'" />
43+
</ItemGroup>
5344

54-
<ItemGroup>
55-
<None Include="light-logo.png" Pack="true" PackagePath="\" />
56-
<None Include="../../README.md" Pack="true" PackagePath="\" />
57-
</ItemGroup>
45+
<ItemGroup>
46+
<Analyzer Include="..\Light.GuardClauses.InternalRoslynAnalyzers\bin\$(Configuration)\netstandard2.0\Light.GuardClauses.InternalRoslynAnalyzers.dll"
47+
Condition="Exists('..\Light.GuardClauses.InternalRoslynAnalyzers\bin\$(Configuration)\netstandard2.0\Light.GuardClauses.InternalRoslynAnalyzers.dll')" />
48+
</ItemGroup>
49+
50+
<ItemGroup>
51+
<None Include="light-logo.png" Pack="true" PackagePath="\" />
52+
<None Include="../../README.md" Pack="true" PackagePath="\" />
53+
</ItemGroup>
5854

5955
</Project>

Code/Version.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<Project>
22
<PropertyGroup>
3-
<Version>13.0.0</Version>
3+
<Version>13.1.0</Version>
44
</PropertyGroup>
55
</Project>

0 commit comments

Comments
 (0)