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

Commit c2d2bd1

Browse files
authored
Use legacy MyGet feeds (#28055)
1 parent b12365f commit c2d2bd1

File tree

12 files changed

+14
-15
lines changed

12 files changed

+14
-15
lines changed

buildpipeline/DotNet-Trusted-Publish.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@
504504
"allowOverride": true
505505
},
506506
"MyGetFeedUrl": {
507-
"value": "https://dotnet.myget.org/F/dotnet-core-test/api/v2/package",
507+
"value": "https://pkgs.dev.azure.com/dnceng/public/_packaging/myget-legacy/nuget/v3/index.json",
508508
"allowOverride": true
509509
},
510510
"MyGetApiKey": {

dependencies.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<PropertyGroup>
55
<RestoreSources Condition="'$(DotNetBuildOffline)' != 'true'">
66
https://dotnetfeed.blob.core.windows.net/dotnet-core/index.json;
7-
https://dotnet.myget.org/F/dotnet-core/api/v3/index.json;
7+
https://dotnetmygetlegacy.blob.core.windows.net/dotnet-core/index.json;
88
https://api.nuget.org/v3/index.json;
99
$(RestoreSources)
1010
</RestoreSources>

init-tools.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ if [%PACKAGES_DIR%]==[] set PACKAGES_DIR=%~dp0packages\
66
if [%TOOLRUNTIME_DIR%]==[] set TOOLRUNTIME_DIR=%~dp0Tools
77
set DOTNET_PATH=%TOOLRUNTIME_DIR%\dotnetcli\
88
if [%DOTNET_CMD%]==[] set DOTNET_CMD=%DOTNET_PATH%dotnet.exe
9-
if [%BUILDTOOLS_SOURCE%]==[] set BUILDTOOLS_SOURCE=https://dotnet.myget.org/F/dotnet-buildtools/api/v3/index.json
9+
if [%BUILDTOOLS_SOURCE%]==[] set BUILDTOOLS_SOURCE=https://pkgs.dev.azure.com/dnceng/public/_packaging/myget-legacy/nuget/v3/index.json
1010
set /P BUILDTOOLS_VERSION=< "%~dp0BuildToolsVersion.txt"
1111
set BUILD_TOOLS_PATH=%PACKAGES_DIR%Microsoft.DotNet.BuildTools\%BUILDTOOLS_VERSION%\lib\
1212
set INIT_TOOLS_RESTORE_PROJECT=%~dp0init-tools.msbuild

init-tools.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ __PACKAGES_DIR="$__scriptpath/packages"
66
__TOOLRUNTIME_DIR="$__scriptpath/Tools"
77
__DOTNET_PATH="$__TOOLRUNTIME_DIR/dotnetcli"
88
__DOTNET_CMD="$__DOTNET_PATH/dotnet"
9-
if [ -z "${__BUILDTOOLS_SOURCE:-}" ]; then __BUILDTOOLS_SOURCE=https://dotnet.myget.org/F/dotnet-buildtools/api/v3/index.json; fi
9+
if [ -z "${__BUILDTOOLS_SOURCE:-}" ]; then __BUILDTOOLS_SOURCE=https://pkgs.dev.azure.com/dnceng/public/_packaging/myget-legacy/nuget/v3/index.json; fi
1010
export __BUILDTOOLS_USE_CSPROJ=true
1111
__BUILD_TOOLS_PACKAGE_VERSION=$(cat "$__scriptpath/BuildToolsVersion.txt" | sed 's/\r$//') # remove CR if mounted repo on Windows drive
1212
__DOTNET_TOOLS_VERSION=$(cat "$__scriptpath/DotnetCLIVersion.txt" | sed 's/\r$//') # remove CR if mounted repo on Windows drive

src/NuGet.Config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
</packageRestore>
66
<packageSources>
77
<clear />
8-
<add key="myget.org dotnet-core" value="https://dotnet.myget.org/F/dotnet-core/api/v3/index.json" />
8+
<add key="myget.org dotnet-core" value="https://dotnetmygetlegacy.blob.core.windows.net/dotnet-core/index.json" />
99
<add key="nuget.org" value="https://www.nuget.org/api/v2/" />
1010
</packageSources>
1111
<activePackageSource>

tests/dir.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
<!-- Add test-specific package restore sources. -->
9696
<PropertyGroup>
9797
<RestoreSources Condition="'$(DotNetBuildOffline)' != 'true'">
98-
https://dotnet.myget.org/F/dotnet-corefxlab/api/v3/index.json;
98+
https://pkgs.dev.azure.com/dnceng/public/_packaging/myget-legacy/nuget/v3/index.json;
9999
$(RestoreSources)
100100
</RestoreSources>
101101
<RestoreSources Condition="'$(IntermediateAzureFeed)' != ''">

tests/scripts/perf-prep.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,8 @@ if [ $throughput -eq 1 ]; then
8181
mkdir Microsoft.Benchview.ThroughputBenchmarks.x64.Windows_NT
8282
cd Microsoft.Benchview.ThroughputBenchmarks.x64.Windows_NT
8383

84-
curl -OL https://dotnet.myget.org/F/dotnet-core/api/v2/package/Microsoft.Benchview.ThroughputBenchmarks.x64.Windows_NT/1.0.0
85-
mv 1.0.0 1.0.0.zip
86-
unzip -q 1.0.0.zip
84+
curl -OL https://dotnetmygetlegacy.blob.core.windows.net/dotnet-core/flatcontainer/microsoft.benchview.throughputbenchmarks.x64.windows_nt/1.0.0/microsoft.benchview.throughputbenchmarks.x64.windows_nt.1.0.0.nupkg
85+
unzip -q microsoft.benchview.throughputbenchmarks.x64.windows_nt.1.0.0.nupkg
8786
fi
8887

8988
else

tests/setup-stress-dependencies.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ REM ============================================================================
7474

7575
REM Download the package
7676
echo Downloading CoreDisTools package
77-
set DOTNETCMD="%__DotNetCmd%" restore "%__CsprojPath%" --source https://dotnet.myget.org/F/dotnet-core/ --packages "%__PackageDir%"
77+
set DOTNETCMD="%__DotNetCmd%" restore "%__CsprojPath%" --source https://dotnetmygetlegacy.blob.core.windows.net/dotnet-core/index.json --packages "%__PackageDir%"
7878
echo %DOTNETCMD%
7979
call %DOTNETCMD%
8080
if errorlevel 1 goto Fail

tests/setup-stress-dependencies.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ fi
109109

110110
# Download the package
111111
echo Downloading CoreDisTools package
112-
bash -c -x "$dotnetCmd restore $csprojPath --source https://dotnet.myget.org/F/dotnet-core/ --packages $packageDir"
112+
bash -c -x "$dotnetCmd restore $csprojPath --source https://dotnetmygetlegacy.blob.core.windows.net/dotnet-core/index.json --packages $packageDir"
113113
if [ $? -ne 0 ]
114114
then
115115
exit_with_error 1 "Failed to restore the package"

tests/src/NuGet.Config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
</packageRestore>
66
<packageSources>
77
<clear/>
8-
<add key="myget.org dotnet-core" value="https://dotnet.myget.org/F/dotnet-core/api/v3/index.json" />
8+
<add key="myget.org dotnet-core" value="https://dotnetmygetlegacy.blob.core.windows.net/dotnet-core/index.json" />
99
<add key="myget.org nugetbuild" value="https://www.myget.org/F/nugetbuild/api/v3/index.json" />
1010
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
1111
</packageSources>

0 commit comments

Comments
 (0)