Skip to content

Commit

Permalink
chore(deps): Fixed dependency range for v2.x (#82)
Browse files Browse the repository at this point in the history
* Fixed dependency range
*Upgraded tests to run on .NET 8 and 9
  • Loading branch information
gigi81 authored Feb 28, 2025
1 parent 355cef3 commit bd4e1e8
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,8 @@ jobs:
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
5.0.x
6.0.x
7.0.x
8.0.x
9.0.x
- name: Run tests
run: dotnet test --collect:"XPlat Code Coverage" --logger "GitHubActions"
- name: Upload coverage
Expand Down
1 change: 0 additions & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
<PackageLicenseExpression>MIT</PackageLicenseExpression>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="TestableIO.System.IO.Abstractions" Version="17.*" />
<PackageReference Include="Nerdbank.GitVersioning" Version="3.6.133">
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
Expand Down
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"sdk": {
"version": "8.0.201",
"version": "9.0",
"rollForward": "latestMinor"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
<PackageReleaseNotes>$([System.IO.File]::ReadAllText("$(MSBuildProjectDirectory)/../../ReleaseNotes.md"))</PackageReleaseNotes>
</PropertyGroup>

<ItemGroup>
<!-- Dependencies of TestableIO.System.IO.Abstractions changed in 22.0 -->
<PackageReference Include="TestableIO.System.IO.Abstractions" Version="[17.*,22.0.0)" />
</ItemGroup>

<ItemGroup>
<Compile Update="Resources.Designer.cs">
<DesignTime>True</DesignTime>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net8.0;net7.0;net6.0;net5.0</TargetFrameworks>
<TargetFrameworks>net9.0;net8.0</TargetFrameworks>
<TargetFrameworks Condition="!$([MSBuild]::IsOsUnixLike())">$(TargetFrameworks);net462</TargetFrameworks>
<IsPackable>false</IsPackable>
<IsTestable>true</IsTestable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="TestableIO.System.IO.Abstractions.Wrappers" Version="17.*" />
<PackageReference Include="TestableIO.System.IO.Abstractions.Wrappers" Version="21.3.1" />
<ProjectReference Include="..\..\src\System.IO.Abstractions.Extensions\System.IO.Abstractions.Extensions.csproj" />
</ItemGroup>

Expand Down

0 comments on commit bd4e1e8

Please sign in to comment.