Skip to content

Commit 5772c1b

Browse files
author
Jani Giannoudis
committed
updatend to .NET 8 and C#12
updated NuGets updated version to 0.8.0-beta.1
1 parent 9f64ee7 commit 5772c1b

11 files changed

+11
-73
lines changed

Core/Data/DataException.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System;
2-
using System.Runtime.Serialization;
32

43
namespace PayrollEngine.Data;
54

@@ -22,10 +21,4 @@ public DataException(string message, Exception innerException) :
2221
base(message, innerException)
2322
{
2423
}
25-
26-
/// <inheritdoc/>
27-
protected DataException(SerializationInfo info, StreamingContext context) :
28-
base(info, context)
29-
{
30-
}
3124
}

Core/PayrollEngine.Core.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515

1616
<ItemGroup>
1717
<FrameworkReference Include="Microsoft.AspNetCore.App" />
18-
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="7.0.4" />
19-
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="7.0.0" />
20-
<PackageReference Include="Microsoft.Extensions.Configuration.UserSecrets" Version="7.0.0" />
18+
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="8.0.0" />
19+
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="8.0.0" />
20+
<PackageReference Include="Microsoft.Extensions.Configuration.UserSecrets" Version="8.0.0" />
2121
</ItemGroup>
2222

2323
<!-- include xml documention files and json schemas to the nuget package -->

Core/PayrollEngine.Core.xml

Lines changed: 0 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Core/PayrollException.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System;
2-
using System.Runtime.Serialization;
32

43
namespace PayrollEngine;
54

@@ -22,10 +21,4 @@ public PayrollException(string message, Exception innerException) :
2221
base(message, innerException)
2322
{
2423
}
25-
26-
/// <inheritdoc/>
27-
protected PayrollException(SerializationInfo info, StreamingContext context) :
28-
base(info, context)
29-
{
30-
}
3124
}

Core/PayrollMapException.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System;
2-
using System.Runtime.Serialization;
32

43
namespace PayrollEngine;
54

@@ -22,10 +21,4 @@ public PayrollMapException(string message, Exception innerException) :
2221
base(message, innerException)
2322
{
2423
}
25-
26-
/// <inheritdoc/>
27-
protected PayrollMapException(SerializationInfo info, StreamingContext context) :
28-
base(info, context)
29-
{
30-
}
3124
}

Core/PayrunException.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System;
2-
using System.Runtime.Serialization;
32

43
namespace PayrollEngine;
54

@@ -22,10 +21,4 @@ public PayrunException(string message, Exception innerException) :
2221
base(message, innerException)
2322
{
2423
}
25-
26-
/// <inheritdoc/>
27-
protected PayrunException(SerializationInfo info, StreamingContext context) :
28-
base(info, context)
29-
{
30-
}
3124
}

Core/PersistenceException.cs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System;
2-
using System.Runtime.Serialization;
32

43
namespace PayrollEngine;
54

@@ -27,15 +26,4 @@ public PersistenceException(string message, PersistenceErrorType errorType, Exce
2726
{
2827
ErrorType = errorType;
2928
}
30-
31-
/// <inheritdoc/>
32-
protected PersistenceException(SerializationInfo info, StreamingContext context) :
33-
base(info, context)
34-
{
35-
var errorType = info.GetInt32("ErrorType");
36-
if (Enum.IsDefined(typeof(PersistenceErrorType), errorType))
37-
{
38-
ErrorType = (PersistenceErrorType)errorType;
39-
}
40-
}
4129
}

Core/QueryException.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System;
2-
using System.Runtime.Serialization;
32

43
namespace PayrollEngine;
54

@@ -22,10 +21,4 @@ public QueryException(string message, Exception innerException) :
2221
base(message, innerException)
2322
{
2423
}
25-
26-
/// <inheritdoc/>
27-
protected QueryException(SerializationInfo info, StreamingContext context) :
28-
base(info, context)
29-
{
30-
}
3124
}

Core/ScriptingSpecification.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public static class ScriptingSpecification
99
public static readonly Version ScriptingVersion = new(1, 0, 0);
1010

1111
/// <summary>The c# language version, string represents the Microsoft.CodeAnalysis.CSharp.LanguageVersion enum</summary>
12-
public static readonly string CSharpLanguageVersion = "CSharp11";
12+
public static readonly string CSharpLanguageVersion = "CSharp12";
1313

1414
/// <summary>Tags start marker</summary>
1515
public static readonly string TagsStartMarker = "/*";

Core/UriExtensions.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,10 @@ public static string AddQueryString(this string uri, string name, object value)
7575
// others
7676
stringValue = value.ToString();
7777
}
78-
return QueryHelpers.AddQueryString(uri, name, stringValue);
78+
79+
return string.IsNullOrWhiteSpace(stringValue) ?
80+
uri :
81+
QueryHelpers.AddQueryString(uri, name, stringValue);
7982
}
8083

8184
/// <summary>Append the given query key and value to the URI</summary>

0 commit comments

Comments
 (0)