From 85f81e0051d06aa34fd9e5097d19189a1665536a Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 17 Apr 2026 19:32:58 +0000 Subject: [PATCH 1/2] Initial plan From 31e8f9ccdee2d5d648626ceed220510da2c8f75d Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 17 Apr 2026 19:44:20 +0000 Subject: [PATCH 2/2] Add multi-framework support: netstandard2.1, net8.0, net10.0 Agent-Logs-Url: https://github.com/tonyqus/ExcelFinancialFunctions/sessions/6cedf81f-8a5c-4c30-bdf4-65b24585a38d Co-authored-by: tonyqus <772561+tonyqus@users.noreply.github.com> --- .github/workflows/pull-requests.yml | 8 +++++--- .github/workflows/push-master.yml | 8 +++++--- .../ExcelFinancialFunctions.fsproj | 2 +- src/ExcelFinancialFunctions/common.fs | 2 +- .../ExcelFinancialFunctions.Tests.fsproj | 2 +- 5 files changed, 13 insertions(+), 9 deletions(-) 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