Skip to content

Commit 1fc5cf6

Browse files
committed
Use NuGet Central Package Management
1 parent 8425c54 commit 1fc5cf6

6 files changed

+36
-19
lines changed

AspNet.Security.OpenId.Providers.sln

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
3131
CODE_OF_CONDUCT.md = CODE_OF_CONDUCT.md
3232
Directory.Build.props = Directory.Build.props
3333
Directory.Build.targets = Directory.Build.targets
34+
Directory.Packages.props = Directory.Packages.props
3435
.vscode\extensions.json = .vscode\extensions.json
3536
global.json = global.json
3637
LICENSE = LICENSE
3738
NuGet.config = NuGet.config
38-
Packages.props = Packages.props
3939
README.md = README.md
4040
EndProjectSection
4141
EndProject

Directory.Build.props

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
1313
<DefineConstants Condition=" '$(Configuration)' == 'Debug' ">$(DefineConstants);JETBRAINS_ANNOTATIONS</DefineConstants>
1414
<Nullable>enable</Nullable>
15+
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
16+
<CentralPackageTransitivePinningEnabled>false</CentralPackageTransitivePinningEnabled>
1517
</PropertyGroup>
1618

1719
<PropertyGroup>

Directory.Build.targets

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<Project>
22

33
<Import Project="Sdk.targets" Sdk="Microsoft.DotNet.Arcade.Sdk" />
4-
<Import Project="Packages.props" />
54

65
<!--
76
Note: Arcade automatically replaces copyrights defined in .props or .csproj files

Directory.Packages.props

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<Project>
2+
3+
<ItemGroup>
4+
<PackageVersion Include="AngleSharp" Version="0.13.0" />
5+
<PackageVersion Include="JetBrains.Annotations" Version="2022.1.0" />
6+
<PackageVersion Include="JustEat.HttpClientInterception" Version="3.1.2" />
7+
<PackageVersion Include="MartinCostello.Logging.XUnit" Version="0.3.0" />
8+
<PackageVersion Include="Microsoft.AspNetCore.Mvc.Testing" Version="7.0.0" />
9+
<PackageVersion Include="Microsoft.AspNetCore.TestHost" Version="7.0.0" />
10+
<PackageVersion Include="Microsoft.IdentityModel.Protocols" Version="6.10.0" />
11+
<PackageVersion Include="Shouldly" Version="4.1.0" />
12+
<PackageVersion Include="System.Text.Json" Version="7.0.0" />
13+
</ItemGroup>
14+
15+
</Project>

NuGet.config

+18-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,29 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<configuration>
3+
34
<packageSources>
45
<clear />
5-
<add key="NuGet" value="https://api.nuget.org/v3/index.json" />
6+
<add key="nuget" value="https://api.nuget.org/v3/index.json" />
67
<add key="dotnet-eng" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json" />
78
<add key="dotnet-tools" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json" />
8-
<add key="dotnet-public" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json" />
99
</packageSources>
10+
1011
<disabledPackageSources>
1112
<clear />
1213
</disabledPackageSources>
14+
15+
<packageSourceMapping>
16+
<packageSource key="nuget">
17+
<package pattern="*" />
18+
</packageSource>
19+
20+
<packageSource key="dotnet-eng">
21+
<package pattern="*" />
22+
</packageSource>
23+
24+
<packageSource key="dotnet-tools">
25+
<package pattern="*" />
26+
</packageSource>
27+
</packageSourceMapping>
28+
1329
</configuration>

Packages.props

-15
This file was deleted.

0 commit comments

Comments
 (0)