This repository was archived by the owner on Jan 23, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +16
-12
lines changed Expand file tree Collapse file tree 3 files changed +16
-12
lines changed Original file line number Diff line number Diff line change 57
57
<NugetRestoreCommand Condition =" '$(OsEnvironment)'=='Unix'" >mono $(NuGetRestoreCommand)</NugetRestoreCommand >
58
58
</PropertyGroup >
59
59
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 >
60
69
61
70
<PropertyGroup >
62
71
<DnxPackageDir Condition =" '$(DnxPackageDir)'==''" >$(PackagesDir)/$(DnxPackageName)/</DnxPackageDir >
63
72
<DnuToolPath Condition =" '$(DnuToolPath)'=='' and '$(OsEnvironment)'!='Unix'" >$(DnxPackageDir)\bin\dnu.cmd</DnuToolPath >
64
73
<DnuToolPath Condition =" '$(DnuToolPath)'=='' and '$(OsEnvironment)'=='Unix'" >$(DnxPackageDir)/bin/dnu</DnuToolPath >
65
74
75
+ <DnuRestoreSource >@(DnuSourceList -> '--source %(Identity)', ' ')</DnuRestoreSource >
76
+
66
77
<DnuRestoreCommand >"$(DnuToolPath)"</DnuRestoreCommand >
67
78
<DnuRestoreCommand >$(DnuRestoreCommand) restore</DnuRestoreCommand >
68
79
<DnuRestoreCommand >$(DnuRestoreCommand) --parallel</DnuRestoreCommand >
69
- <DnuRestoreCommand >$(DnuRestoreCommand) --packages "$(PackagesDir.TrimEnd('/'))"</DnuRestoreCommand >
80
+ <DnuRestoreCommand >$(DnuRestoreCommand) --packages "$(PackagesDir.TrimEnd('/'))" $(DnuRestoreSource) </DnuRestoreCommand >
70
81
<DnuRestoreCommand Condition =" '$(LockDependencies)' == 'true'" >$(DnuRestoreCommand) --lock</DnuRestoreCommand >
71
82
</PropertyGroup >
72
83
Original file line number Diff line number Diff line change 87
87
<!-- Restore build tools -->
88
88
<Exec Command =" $(_RestoreBuildToolsCommand)" StandardOutputImportance =" Low" />
89
89
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
-
98
90
<!-- Add DNU and Roslyn tool execute rights -->
99
91
<Exec Condition =" '$(OsEnvironment)'=='Unix'"
100
92
Command =" chmod a+x " $(DnxPackageDir)/bin/dnu" " />
Original file line number Diff line number Diff line change 3
3
<packageRestore >
4
4
<add key =" enabled" value =" True" />
5
5
</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
+ -->
6
10
<packageSources >
7
11
<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/" />
10
12
<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/" />
12
13
</packageSources >
13
14
<config >
14
15
<add key =" repositoryPath" value =" ..\packages" />
You can’t perform that action at this time.
0 commit comments