Skip to content
This repository was archived by the owner on Feb 23, 2021. It is now read-only.

Commit 246c047

Browse files
Use sources.props
1 parent cec6dbd commit 246c047

File tree

4 files changed

+19
-4
lines changed

4 files changed

+19
-4
lines changed

Directory.Build.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
<Import Project="version.props" />
55
<Import Project="build\dependencies.props" />
6+
<Import Project="build\sources.props" />
67

78
<PropertyGroup>
89
<Product>Microsoft ASP.NET Core</Product>

NuGet.config

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
<configuration>
33
<packageSources>
44
<clear />
5-
<add key="AspNetCore" value="https://dotnet.myget.org/F/aspnetcore-ci-dev/api/v3/index.json" />
6-
<add key="AspNetCoreTools" value="https://dotnet.myget.org/F/aspnetcore-tools/api/v3/index.json" />
7-
<add key="NuGet" value="https://api.nuget.org/v3/index.json" />
5+
<!-- Restore sources should be defined in build/sources.props. -->
86
</packageSources>
97
</configuration>

build/repo.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
<PropertyGroup>
33
<!-- These properties are use by the automation that updates dependencies.props -->
44
<LineupPackageId>Internal.AspNetCore.Universe.Lineup</LineupPackageId>
5-
<LineupPackageRestoreSource>https://dotnet.myget.org/F/aspnetcore-ci-dev/api/v3/index.json</LineupPackageRestoreSource>
5+
<LineupPackageRestoreSource>https://dotnet.myget.org/F/aspnetcore-dev/api/v3/index.json</LineupPackageRestoreSource>
66
</PropertyGroup>
77
</Project>

build/sources.props

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<Project>
2+
<Import Project="$(DotNetRestoreSourcePropsPath)" Condition="'$(DotNetRestoreSourcePropsPath)' != ''"/>
3+
4+
<PropertyGroup Label="RestoreSources">
5+
<RestoreSources>$(DotNetRestoreSources)</RestoreSources>
6+
<RestoreSources Condition="'$(DotNetBuildOffline)' != 'true' AND '$(AspNetUniverseBuildOffline)' != 'true' ">
7+
$(RestoreSources);
8+
https://dotnet.myget.org/F/aspnetcore-dev/api/v3/index.json;
9+
https://dotnet.myget.org/F/aspnetcore-tools/api/v3/index.json;
10+
</RestoreSources>
11+
<RestoreSources Condition="'$(DotNetBuildOffline)' != 'true'">
12+
$(RestoreSources);
13+
https://api.nuget.org/v3/index.json;
14+
</RestoreSources>
15+
</PropertyGroup>
16+
</Project>

0 commit comments

Comments
 (0)