Skip to content

Commit

Permalink
Use nuget central package management
Browse files Browse the repository at this point in the history
  • Loading branch information
josephdecock committed Oct 23, 2024
1 parent 377709a commit 5d411de
Show file tree
Hide file tree
Showing 5 changed files with 68 additions and 59 deletions.
42 changes: 0 additions & 42 deletions Directory.Build.targets

This file was deleted.

41 changes: 41 additions & 0 deletions Directory.packages.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<Project>
<PropertyGroup Condition=" '$(TargetFramework)' == 'net8.0'">
<!-- We depend on the most permissive version of the JwtBearer handler
that doesn't give us a transitive depedency on a vulnerable package. -->
<FrameworkVersion>8.0.1</FrameworkVersion>
<ExtensionsVersion>8.0.0</ExtensionsVersion>
<WilsonVersion>7.1.2</WilsonVersion>
</PropertyGroup>

<PropertyGroup Condition=" '$(TargetFramework)' == 'net9.0'">
<!-- We depend on the most permissive version of the JwtBearer handler
that doesn't give us a transitive depedency on a vulnerable package. -->
<FrameworkVersion>9.0.0-rc.2.24474.3</FrameworkVersion>
<ExtensionsVersion>9.0.0-rc.2.24473.5</ExtensionsVersion>
<WilsonVersion>8.0.1</WilsonVersion>
</PropertyGroup>

<ItemGroup>
<!-- <PackageVersion Include="Duende.AccessTokenManagement" Version="3.0.0" /> -->
<PackageVersion Include="Duende.AccessTokenManagement.OpenIdConnect" Version="3.0.0" />
<PackageVersion Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="$(FrameworkVersion)"/>
<PackageVersion Include="IdentityModel" Version="7.0.0" />

<!-- Build -->
<PackageVersion Include="MinVer" Version="6.0.0" />

<!-- Test -->
<PackageVersion Include="AngleSharp" Version="1.1.2" />
<PackageVersion Include="coverlet.collector" Version="6.0.2" />
<PackageVersion Include="Duende.IdentityServer" Version="7.0.7" />
<PackageVersion Include="Microsoft.AspNetCore.Mvc.Testing" Version="$(FrameworkVersion)" />
<PackageVersion Include="Microsoft.Extensions.TimeProvider.Testing" Version="8.7.0" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
<PackageVersion Include="NSubstitute" Version="5.1.0" />
<PackageVersion Include="RichardSzalay.MockHttp" Version="7.0.0" />
<PackageVersion Include="Shouldly" Version="4.2.1" />
<PackageVersion Include="System.Text.Json" Version="8.0.5" />
<PackageVersion Include="xunit" Version="2.9.2" />
<PackageVersion Include="xunit.runner.visualstudio" Version="2.8.2" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@
<RootNamespace>Duende.AspNetCore.Authentication.JwtBearer</RootNamespace>
<AssemblyName>Duende.AspNetCore.Authentication.JwtBearer</AssemblyName>
<PackageId>Duende.AspnetCore.Authentication.JwtBearer</PackageId>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
<!-- Ignore warning about package sources from central package management -->
<NoWarn>NU1507</NoWarn>
</PropertyGroup>

<ItemGroup>

<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" />
<PackageReference Include="IdentityModel" />
<PackageReference Include="MinVer">
Expand All @@ -22,4 +24,6 @@
<InternalsVisibleTo Include="Duende.AspNetCore.Authentication.JwtBearer.Tests" />
</ItemGroup>

<ItemGroup>
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
<IsTestProject>true</IsTestProject>
<AssemblyName>Duende.AspNetCore.Authentication.JwtBearer.Tests</AssemblyName>
<RootNameSpace>Duende.AspNetCore.Authentication.JwtBearer</RootNameSpace>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
<!-- Ignore warning about package sources from central package management -->
<NoWarn>NU1507</NoWarn>
</PropertyGroup>

<ItemGroup>
Expand Down
35 changes: 19 additions & 16 deletions test/TestFramework/TestFramework.csproj
Original file line number Diff line number Diff line change
@@ -1,21 +1,24 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net8.0; net9.0</TargetFrameworks>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<RootNamespace>Duende.AspNetCore.TestFramework</RootNamespace>
</PropertyGroup>
<PropertyGroup>
<TargetFrameworks>net8.0; net9.0</TargetFrameworks>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<RootNamespace>Duende.AspNetCore.TestFramework</RootNamespace>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
<!-- Ignore warning about package sources from central package management -->
<NoWarn>NU1507</NoWarn>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="AngleSharp" />
<PackageReference Include="Duende.AccessTokenManagement.OpenIdConnect" />
<PackageReference Include="Duende.IdentityServer" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" />
<PackageReference Include="System.Text.Json" />
<PackageReference Include="RichardSzalay.MockHttp" />
<PackageReference Include="Shouldly" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="AngleSharp" />
<PackageReference Include="Duende.AccessTokenManagement.OpenIdConnect" />
<PackageReference Include="Duende.IdentityServer" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" />
<PackageReference Include="System.Text.Json" />
<PackageReference Include="RichardSzalay.MockHttp" />
<PackageReference Include="Shouldly" />
</ItemGroup>

</Project>

0 comments on commit 5d411de

Please sign in to comment.