Skip to content

Commit

Permalink
Merge pull request #70 from bolorundurowb/bg/fix-file-check
Browse files Browse the repository at this point in the history
bg/fix the file existing
  • Loading branch information
bolorundurowb authored Sep 21, 2024
2 parents 70df759 + aff6f45 commit ba76eb8
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions vCardLib.Tests/vCardLib.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<IsPackable>false</IsPackable>
<LangVersion>10</LangVersion>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="coverlet.msbuild" Version="6.0.0">
<PackageReference Include="coverlet.msbuild" Version="6.0.2">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
<PackageReference Include="Microsoft.NETCore.App" Version="2.2.8" />
<PackageReference Include="NUnit" Version="4.0.1" />
<PackageReference Include="NUnit3TestAdapter" Version="4.5.0" />
<PackageReference Include="NUnit" Version="4.2.2" />
<PackageReference Include="NUnit3TestAdapter" Version="4.6.0" />
<PackageReference Include="Shouldly" Version="4.2.1" />
</ItemGroup>
<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion vCardLib/Deserialization/vCardDeserializer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public static IEnumerable<vCard> 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));
Expand Down
8 changes: 4 additions & 4 deletions vCardLib/vCardLib.csproj
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Version>5.0.0</Version>
<PackageVersion>5.0.1</PackageVersion>
<PackageVersion>5.0.2</PackageVersion>
<TargetFrameworks>netstandard1.3;netstandard2.0</TargetFrameworks>
<AssemblyVersion>5.0.1</AssemblyVersion>
<FileVersion>5.0.1</FileVersion>
<AssemblyVersion>5.0.2</AssemblyVersion>
<FileVersion>5.0.2</FileVersion>
<NeutralLanguage>en-NG</NeutralLanguage>
<LangVersion>10</LangVersion>
<LangVersion>12</LangVersion>
<Nullable>enable</Nullable>
<Copyright>© 2017-2024, Bolorunduro Winner-Timothy. All Rights reserved.</Copyright>
<PackageReleaseNotes>- improved model documentation</PackageReleaseNotes>
Expand Down

0 comments on commit ba76eb8

Please sign in to comment.