Skip to content

Commit 529a94b

Browse files
Conditionally restore private nuget feed source in .props
1 parent 9aee912 commit 529a94b

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

Directory.Packages.props

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,20 @@
33
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
44
<CentralPackageTransitivePinningEnabled>false</CentralPackageTransitivePinningEnabled>
55
<ToolingPackagesVersion>1.1.1.4359</ToolingPackagesVersion>
6+
<RestoreSources Condition="$(AccessToNugetFeed)">
7+
https://pkgs.dev.azure.com/intelliTect/_packaging/EssentialCSharp/nuget/v3/index.json;
8+
</RestoreSources>
9+
<RestoreSources>
10+
$(RestoreSources);
11+
https://api.nuget.org/v3/index.json;
12+
</RestoreSources>
613
</PropertyGroup>
714
<ItemGroup Condition="$(AccessToNugetFeed)">
815
<PackageVersion Include="ContentFeedNuget" Version="$(ToolingPackagesVersion)" />
916
</ItemGroup>
1017
<ItemGroup>
18+
<PackageVersion Include="Microsoft.EntityFrameworkCore.Sqlite" Version="8.0.10" />
1119
<PackageVersion Include="EssentialCSharp.Shared.Models" Version="$(ToolingPackagesVersion)" />
12-
<PackageVersion Include="Microsoft.EntityFrameworkCore.Sqlite" Version="8.0.8" />
1320
<PackageVersion Include="AspNet.Security.OAuth.GitHub" Version="8.2.0" />
1421
<PackageVersion Include="coverlet.collector" Version="6.0.2" />
1522
<PackageVersion Include="HtmlAgilityPack" Version="1.11.67" />

nuget.config

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66
<add key="nuget" value="https://api.nuget.org/v3/index.json" />
77
<add key="EssentialCSharp" value="https://pkgs.dev.azure.com/intelliTect/_packaging/EssentialCSharp/nuget/v3/index.json" />
88
</packageSources>
9-
<disabledPackageSources>
10-
<add key="EssentialCSharp" value="!$(AccessToNugetFeed)" />
11-
</disabledPackageSources>
129
<packageSourceMapping>
1310
<packageSource key="nuget">
1411
<package pattern="*" />

0 commit comments

Comments
 (0)