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

Commit a4e90d4

Browse files
committed
Title:
Use -source instead of nuget.config Change Description: Use the -source argument to nuget.exe instead of nuget.config files. Added condition to add \\cpvsbuild source if it exists; this is to work around a bug in DNU that causes restore to fail if the share is unavailable. Cleaned up disable of -parallel option to match that of fxcore\open. [tfs-changeset: 1498317]
1 parent 60e3c42 commit a4e90d4

File tree

2 files changed

+7
-19
lines changed

2 files changed

+7
-19
lines changed

dir.props

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,16 @@
4343
<ToolsDir Condition="'$(ToolsDir)'==''">$(PackagesDir)Microsoft.DotNet.BuildTools.$(BuildToolsVersion)/lib/</ToolsDir>
4444
</PropertyGroup>
4545

46+
<!-- list of nuget package sources passed to nuget.exe -->
47+
<ItemGroup>
48+
<NuGetSourceList Include="https://www.myget.org/F/dotnet-buildtools" />
49+
</ItemGroup>
50+
4651
<!-- Common nuget properties -->
4752
<PropertyGroup>
4853
<NuGetToolPath Condition="'$(NuGetToolPath)'==''">$(PackagesDir)NuGet.exe</NuGetToolPath>
49-
<NuGetConfigFile Condition="'$(NuGetConfigFile)'==''">$(SourceDir)NuGet.Config</NuGetConfigFile>
50-
<NuGetConfigCommandLine>-ConfigFile "$(NuGetConfigFile)"</NuGetConfigCommandLine>
54+
<NuGetPackageSource>@(NuGetSourceList -> '-source %(Identity)', ' ')</NuGetPackageSource>
55+
<NuGetConfigCommandLine>$(NuGetPackageSource)</NuGetConfigCommandLine>
5156

5257
<NugetRestoreCommand>"$(NuGetToolPath)"</NugetRestoreCommand>
5358
<NugetRestoreCommand>$(NugetRestoreCommand) install</NugetRestoreCommand>

src/NuGet.Config

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)