diff --git a/.github/workflows/pull-requests.yml b/.github/workflows/pull-requests.yml index f185f7b..c9d5203 100644 --- a/.github/workflows/pull-requests.yml +++ b/.github/workflows/pull-requests.yml @@ -8,11 +8,13 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Setup .NET - uses: actions/setup-dotnet@v1 + uses: actions/setup-dotnet@v4 with: - dotnet-version: 6.0.x + dotnet-version: | + 8.0.x + 10.0.x - name: Restore dependencies run: dotnet restore - name: Build diff --git a/.github/workflows/push-master.yml b/.github/workflows/push-master.yml index c6de169..09ed63b 100644 --- a/.github/workflows/push-master.yml +++ b/.github/workflows/push-master.yml @@ -8,11 +8,13 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Setup .NET - uses: actions/setup-dotnet@v1 + uses: actions/setup-dotnet@v4 with: - dotnet-version: 6.0.x + dotnet-version: | + 8.0.x + 10.0.x - name: Restore dependencies run: dotnet restore - name: Build Debug diff --git a/src/ExcelFinancialFunctions/ExcelFinancialFunctions.fsproj b/src/ExcelFinancialFunctions/ExcelFinancialFunctions.fsproj index 225bd5f..2310b15 100644 --- a/src/ExcelFinancialFunctions/ExcelFinancialFunctions.fsproj +++ b/src/ExcelFinancialFunctions/ExcelFinancialFunctions.fsproj @@ -1,7 +1,7 @@  - netstandard2.0 + netstandard2.0;netstandard2.1;net8.0;net10.0 true false 3390;$(WarnOn) diff --git a/src/ExcelFinancialFunctions/common.fs b/src/ExcelFinancialFunctions/common.fs index 2bff4c8..af87d8d 100644 --- a/src/ExcelFinancialFunctions/common.fs +++ b/src/ExcelFinancialFunctions/common.fs @@ -39,7 +39,7 @@ module internal Common = // Date functions let days (after:DateTime) (before:DateTime) = (after - before).Days - let date y m d = new DateTime(y, m, d) + let date (y: int) (m: int) (d: int) = new DateTime(y, m, d) let (|Date|) (d1:DateTime) = (d1.Year,d1.Month,d1.Day) let isLeapYear (Date(y,_,_) as d) = DateTime.IsLeapYear(y) let leapYear y = DateTime.IsLeapYear(y) diff --git a/tests/ExcelFinancialFunctions.Tests/ExcelFinancialFunctions.Tests.fsproj b/tests/ExcelFinancialFunctions.Tests/ExcelFinancialFunctions.Tests.fsproj index 576e369..942fdf7 100644 --- a/tests/ExcelFinancialFunctions.Tests/ExcelFinancialFunctions.Tests.fsproj +++ b/tests/ExcelFinancialFunctions.Tests/ExcelFinancialFunctions.Tests.fsproj @@ -1,7 +1,7 @@ - netcoreapp6.0 + net8.0 false