From 48a4c313005c316a545f175d218c6842dd0a5e79 Mon Sep 17 00:00:00 2001 From: Winner-Timothy Bolorunduro Date: Sat, 21 Sep 2024 08:28:06 +0100 Subject: [PATCH 1/4] bg: fix the file existing --- vCardLib/Deserialization/vCardDeserializer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vCardLib/Deserialization/vCardDeserializer.cs b/vCardLib/Deserialization/vCardDeserializer.cs index 89c6c52..d282a52 100644 --- a/vCardLib/Deserialization/vCardDeserializer.cs +++ b/vCardLib/Deserialization/vCardDeserializer.cs @@ -54,7 +54,7 @@ public static IEnumerable FromFile(string filePath) if (string.IsNullOrWhiteSpace(filePath)) throw new ArgumentException("File path cannot be null or empty.", nameof(filePath)); - if (File.Exists(filePath)) + if (!File.Exists(filePath)) throw new FileNotFoundException("File not found.", filePath); return FromContent(File.ReadAllText(filePath)); From af027512234a762d09ee65e0bc977983ab9f3ca3 Mon Sep 17 00:00:00 2001 From: Winner-Timothy Bolorunduro Date: Sat, 21 Sep 2024 08:40:59 +0100 Subject: [PATCH 2/4] ft: update file versions --- vCardLib/vCardLib.csproj | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vCardLib/vCardLib.csproj b/vCardLib/vCardLib.csproj index 98495ab..fc394d9 100644 --- a/vCardLib/vCardLib.csproj +++ b/vCardLib/vCardLib.csproj @@ -1,12 +1,12 @@  5.0.0 - 5.0.1 + 5.0.2 netstandard1.3;netstandard2.0 - 5.0.1 - 5.0.1 + 5.0.2 + 5.0.2 en-NG - 10 + 12 enable © 2017-2024, Bolorunduro Winner-Timothy. All Rights reserved. - improved model documentation From 085e3d1ad064e35d790c0bb81c76ac6988da4b3f Mon Sep 17 00:00:00 2001 From: Winner-Timothy Bolorunduro Date: Sat, 21 Sep 2024 08:43:12 +0100 Subject: [PATCH 3/4] ft: update dotnet version in CI build --- .github/workflows/build-and-test.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-and-test.yaml b/.github/workflows/build-and-test.yaml index a3c7bfb..f5d6940 100644 --- a/.github/workflows/build-and-test.yaml +++ b/.github/workflows/build-and-test.yaml @@ -19,7 +19,7 @@ jobs: - name: Set up .NET Core uses: actions/setup-dotnet@v1 with: - dotnet-version: '7.x' + dotnet-version: '8.x' - name: Restore dependencies run: dotnet restore From aff6f4540f8e792359fdecc69d6c1c25f54a4ad5 Mon Sep 17 00:00:00 2001 From: Winner-Timothy Bolorunduro Date: Sat, 21 Sep 2024 08:47:01 +0100 Subject: [PATCH 4/4] ft: update the target for the test project --- vCardLib.Tests/vCardLib.Tests.csproj | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/vCardLib.Tests/vCardLib.Tests.csproj b/vCardLib.Tests/vCardLib.Tests.csproj index 1933db9..9704ab8 100644 --- a/vCardLib.Tests/vCardLib.Tests.csproj +++ b/vCardLib.Tests/vCardLib.Tests.csproj @@ -1,19 +1,19 @@  - net7.0 + net8.0 false 10 enable - + runtime; build; native; contentfiles; analyzers; buildtransitive all - + - - + +