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

Commit 39cbff9

Browse files
committed
Merge pull request #2147 from dotnet-bot/from-tfs
Merge changes from TFS
2 parents f6ae29e + fed4ff0 commit 39cbff9

File tree

3 files changed

+16
-12
lines changed

3 files changed

+16
-12
lines changed

dir.props

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,16 +57,27 @@
5757
<NugetRestoreCommand Condition="'$(OsEnvironment)'=='Unix'">mono $(NuGetRestoreCommand)</NugetRestoreCommand>
5858
</PropertyGroup>
5959

60+
<!-- list of nuget package sources passed to dnu -->
61+
<ItemGroup>
62+
<DnuSourceList Include="https://www.myget.org/F/dotnet-core/" />
63+
<DnuSourceList Include="https://www.myget.org/F/dotnet-coreclr/" />
64+
<DnuSourceList Include="https://www.myget.org/F/dotnet-corefx/" />
65+
<DnuSourceList Include="https://www.myget.org/F/dotnet-corefxtestdata/" />
66+
<DnuSourceList Include="https://www.myget.org/F/dotnet-buildtools/" />
67+
<DnuSourceList Include="https://www.nuget.org/api/v2/" />
68+
</ItemGroup>
6069

6170
<PropertyGroup>
6271
<DnxPackageDir Condition="'$(DnxPackageDir)'==''">$(PackagesDir)/$(DnxPackageName)/</DnxPackageDir>
6372
<DnuToolPath Condition="'$(DnuToolPath)'=='' and '$(OsEnvironment)'!='Unix'">$(DnxPackageDir)\bin\dnu.cmd</DnuToolPath>
6473
<DnuToolPath Condition="'$(DnuToolPath)'=='' and '$(OsEnvironment)'=='Unix'">$(DnxPackageDir)/bin/dnu</DnuToolPath>
6574

75+
<DnuRestoreSource>@(DnuSourceList -> '--source %(Identity)', ' ')</DnuRestoreSource>
76+
6677
<DnuRestoreCommand>"$(DnuToolPath)"</DnuRestoreCommand>
6778
<DnuRestoreCommand>$(DnuRestoreCommand) restore</DnuRestoreCommand>
6879
<DnuRestoreCommand>$(DnuRestoreCommand) --parallel</DnuRestoreCommand>
69-
<DnuRestoreCommand>$(DnuRestoreCommand) --packages "$(PackagesDir.TrimEnd('/'))"</DnuRestoreCommand>
80+
<DnuRestoreCommand>$(DnuRestoreCommand) --packages "$(PackagesDir.TrimEnd('/'))" $(DnuRestoreSource)</DnuRestoreCommand>
7081
<DnuRestoreCommand Condition="'$(LockDependencies)' == 'true'">$(DnuRestoreCommand) --lock</DnuRestoreCommand>
7182
</PropertyGroup>
7283

dir.targets

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -87,14 +87,6 @@
8787
<!-- Restore build tools -->
8888
<Exec Command="$(_RestoreBuildToolsCommand)" StandardOutputImportance="Low" />
8989

90-
<!-- currently DNU doesn't support -ConfigFile: https://github.com/aspnet/dnx/issues/1693
91-
Our DnuRestoreCommand doesn't force a config file and we rely on the
92-
directory probing for it to find nuget.config. This works for restore from source,
93-
but not restore from PackagesDir as happens for test project restore since PackagesDir
94-
will not be under src. To workaround, copy our nuget.config to packages. -->
95-
<Copy Condition="Exists('$(NuGetConfigFile)')" SourceFiles="$(NuGetConfigFile)" DestinationFolder="$(PackagesDir)" SkipUnchangedFiles="true" />
96-
<Copy Condition="Exists('$(NuGetConfigFile)')" SourceFiles="$(NuGetConfigFile)" DestinationFolder="$(IntermediateOutputRootPath)" SkipUnchangedFiles="true" />
97-
9890
<!-- Add DNU and Roslyn tool execute rights -->
9991
<Exec Condition="'$(OsEnvironment)'=='Unix'"
10092
Command="chmod a+x &quot;$(DnxPackageDir)/bin/dnu&quot;" />

src/NuGet.Config

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@
33
<packageRestore>
44
<add key="enabled" value="True" />
55
</packageRestore>
6+
<!--
7+
this is used for boot-strapping build tools. if you need to add a new
8+
nuget package source please add it to the item group in dir.props instead.
9+
-->
610
<packageSources>
711
<clear/>
8-
<add key="myget.org dotnet-core" value="https://www.myget.org/F/dotnet-core/" />
9-
<add key="myget.org dotnet-corefxtestdata" value="https://www.myget.org/F/dotnet-corefxtestdata/" />
1012
<add key="myget.org dotnet-buildtools" value="https://www.myget.org/F/dotnet-buildtools/" />
11-
<add key="nuget.org" value="https://www.nuget.org/api/v2/" />
1213
</packageSources>
1314
<config>
1415
<add key="repositoryPath" value="..\packages" />

0 commit comments

Comments
 (0)