Skip to content

Commit

Permalink
Add nuget with additional logging
Browse files Browse the repository at this point in the history
  • Loading branch information
akoeplinger committed Jul 3, 2024
1 parent c924cd0 commit 6f86ceb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/SourceBuild/content/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,10 @@ function Build {

InitializeToolset

"$DOTNET_INSTALL_DIR/dotnet" build-server shutdown

unzip -o -j "$scriptroot/eng/nuget-files.zip" -d "$DOTNET_INSTALL_DIR/sdk/9.0.100-preview.6.24311.23/"

# Manually unset NUGET_PACKAGES as InitializeToolset sets it unconditionally.
# The env var shouldn't be set so that the RestorePackagesPath msbuild property is respected.
unset NUGET_PACKAGES
Expand Down
4 changes: 4 additions & 0 deletions src/SourceBuild/content/eng/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ if ($dev) {
function Build {
InitializeToolset

$env:DOTNET_INSTALL_DIR\dotnet.exe build-server shutdown

Expand-Archive -Force -Path $PSScriptRoot\nuget-files.zip -Destination $env:DOTNET_INSTALL_DIR\sdk\9.0.100-preview.6.24311.23\

# Manually unset NUGET_PACKAGES as InitializeToolset sets it unconditionally.
# The env var shouldn't be set so that the RestorePackagesPath msbuild property is respected.
$env:NUGET_PACKAGES=''
Expand Down
Binary file added src/SourceBuild/content/eng/nuget-files.zip
Binary file not shown.

0 comments on commit 6f86ceb

Please sign in to comment.