Skip to content
This repository was archived by the owner on Mar 16, 2025. It is now read-only.

Commit 90bff7b

Browse files
[v2] Downgrade dependencies for .NET targets with Out of Support
1 parent 07faea4 commit 90bff7b

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

src/Directory.Build.props

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
</PropertyGroup>
2323

2424
<PropertyGroup>
25-
<NoWarn>1701;1702;1705;1591</NoWarn>
25+
<NoWarn>$(NoWarn);1701;1702;1705;1591</NoWarn>
2626
<Copyright>$(LibraryCopyright)</Copyright>
2727

2828
<Nullable>enable</Nullable>
@@ -36,4 +36,8 @@
3636
<WarningLevel>7</WarningLevel>
3737
</PropertyGroup>
3838

39+
<PropertyGroup Condition="'$(Configuration)' == 'Release'">
40+
<SuppressTfmSupportBuildWarnings>true</SuppressTfmSupportBuildWarnings>
41+
</PropertyGroup>
42+
3943
</Project>

src/libs/Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444

4545
<ItemGroup>
4646
<PackageReference Include="Microsoft.SourceLink.GitHub" PrivateAssets="All" />
47-
<PackageReference Include="Nerdbank.GitVersioning" PrivateAssets="all" />
47+
<PackageReference Include="Nerdbank.GitVersioning" PrivateAssets="All" />
4848
</ItemGroup>
4949

5050
<ItemGroup Condition="$(DefineConstants.Contains(TRAKT_NETSTANDARD_TARGET))">

src/libs/Trakt.NET.HttpClientFactory/Trakt.NET.HttpClientFactory.csproj

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,16 @@
66
<TargetFrameworks>$(HttpClientFactoryLibraryTargetFrameworks)</TargetFrameworks>
77
</PropertyGroup>
88

9-
<ItemGroup>
9+
<ItemGroup Condition="('$(TargetFramework)' != 'net6.0') AND ('$(TargetFramework)' != 'net7.0')">
1010
<PackageReference Include="Microsoft.Extensions.DependencyInjection" />
1111
<PackageReference Include="Microsoft.Extensions.Http" />
1212
</ItemGroup>
1313

14+
<ItemGroup Condition="('$(TargetFramework)' == 'net6.0') OR ('$(TargetFramework)' == 'net7.0')">
15+
<PackageReference Include="Microsoft.Extensions.DependencyInjection" VersionOverride="8.0.1" />
16+
<PackageReference Include="Microsoft.Extensions.Http" VersionOverride="8.0.1" />
17+
</ItemGroup>
18+
1419
<ItemGroup>
1520
<ProjectReference Include="..\Trakt.NET\Trakt.NET.csproj" />
1621
</ItemGroup>

0 commit comments

Comments
 (0)