Skip to content

Commit

Permalink
updatend to .NET 8
Browse files Browse the repository at this point in the history
updated NuGets
  • Loading branch information
Jani Giannoudis committed Nov 27, 2023
1 parent c50e04c commit 7b7a520
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 22 deletions.
2 changes: 1 addition & 1 deletion Commands/Release.Version.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ echo Set Payroll Set Release Version

rem --- version setup ---
:version
set version=0.6.0-beta.11
set version=0.8.0-beta.1

rem --- confirmation ---
:confirmation
Expand Down
6 changes: 3 additions & 3 deletions Examples/ActionPayroll/ActionPayroll.csproj
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<AssemblyName>ActionPayroll</AssemblyName>
<RootNamespace>ActionPayroll</RootNamespace>
<Product>Payroll Engine Action Payroll</Product>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="PayrollEngine.Client.Services" Version="0.6.0-beta.11" />
<PackageReference Include="PayrollEngine.Serilog" Version="0.6.0-beta.11" />
<PackageReference Include="PayrollEngine.Client.Services" Version="0.8.0-beta.1" />
<PackageReference Include="PayrollEngine.Serilog" Version="0.8.0-beta.1" />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion Examples/ActionPayroll/Scripts/MyActions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public void CheckUId(CaseChangeActionContext context)
// predefined digit checks: Mod11Radix2, Mod37Radix2, Mod97Radix10, Mod661Radix26, Mod1271Radix36
// CheckDigit.Mod11Radix2.Check(checkValue);
}
catch (CheckDigitException exception)
catch (CheckDigitException)
{
AddIssue(context, "InvalidUId", context.CaseFieldName, sourceValue);
}
Expand Down
6 changes: 3 additions & 3 deletions Examples/ExtendedPayroll/ExtendedPayroll.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<AssemblyName>ExtendedPayroll</AssemblyName>
<RootNamespace>ExtendedPayroll</RootNamespace>
<Product>Payroll Engine Extended Payroll</Product>
Expand All @@ -16,8 +16,8 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="PayrollEngine.Client.Services" Version="0.6.0-beta.11" />
<PackageReference Include="PayrollEngine.Serilog" Version="0.6.0-beta.11" />
<PackageReference Include="PayrollEngine.Client.Services" Version="0.8.0-beta.1" />
<PackageReference Include="PayrollEngine.Serilog" Version="0.8.0-beta.1" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,9 @@
namespace ExtendedPayroll.Scripts;

/// <summary>Composite wage type value function</summary>
public class CompositeWageTypeValueFunction
public class CompositeWageTypeValueFunction(WageTypeValueFunction function)
{
private WageTypeValueFunction Function { get; }

public CompositeWageTypeValueFunction(WageTypeValueFunction function)
{
Function = function ?? throw new ArgumentNullException(nameof(function));
}
private WageTypeValueFunction Function { get; } = function ?? throw new ArgumentNullException(nameof(function));

/// <summary>Get the salary</summary>
public decimal GetSalary()
Expand Down
6 changes: 3 additions & 3 deletions Examples/ReportPayroll/ReportPayroll.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<AssemblyName>ReportPayroll</AssemblyName>
<RootNamespace>ReportPayroll</RootNamespace>
<Product>Payroll Engine Report Payroll</Product>
Expand Down Expand Up @@ -49,8 +49,8 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="PayrollEngine.Client.Services" Version="0.6.0-beta.11" />
<PackageReference Include="PayrollEngine.Serilog" Version="0.6.0-beta.11" />
<PackageReference Include="PayrollEngine.Client.Services" Version="0.8.0-beta.1" />
<PackageReference Include="PayrollEngine.Serilog" Version="0.8.0-beta.1" />
</ItemGroup>

<ItemGroup>
Expand Down
8 changes: 4 additions & 4 deletions Setup/Setup.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ pause>nul|set/p ="Press <Ctrl+C> to exit or any other key to continue..."
echo.
echo.

rem --- test .NET 7.0 runtime ---
rem --- test .NET 8.0 runtime ---
:testDotNet
set tempFile=%TEMP%\Output.log
dotnet --list-runtimes|FIND "7." > "!tempFile!"
dotnet --list-runtimes|FIND "8." > "!tempFile!"
if %ErrorLevel% neq 0 goto dotNetError

rem --- setup environment ---
Expand Down Expand Up @@ -269,10 +269,10 @@ pause>nul|set/p ="Press any key to exit..."
goto exit

:dotNetError
echo.[91m.NET 7.0 Runtime is missing[0m
echo.[91m.NET 8.0 Runtime is missing[0m
echo.
echo Please download and install the runtime for ASP.NET Core server applications
echo - https://dotnet.microsoft.com/en-us/download/dotnet/7.0/runtime
echo - https://dotnet.microsoft.com/en-us/download/dotnet/8.0/runtime
echo Windows: Run server apps - Download Hosting Bundle
echo Linux: Run server apps - Install .NET
echo.
Expand Down

0 comments on commit 7b7a520

Please sign in to comment.