Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ckairen committed Aug 24, 2021
1 parent 8ea20a1 commit 952cf90
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions eng/pipelines/templates/stages/archetype-net-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,13 @@ stages:
mkdir InstallationCheck
- pwsh: |
Write-Host "Create new console"
dotnet new console -n "Installation.Check"
dotnet new console
mkdir packages
Write-Host "Installing .nupkg into package source"
$nupkg = Get-ChildItem -Path "$(Pipeline.Workspace)/${{parameters.ArtifactName}}/${{artifact.name}}/*.nupkg" -Exclude "*.symbols.nupkg"
nuget add "$($nupkg)" -Source ./packages
Write-Host "Adding package dependency for ${{artifact.name}}"
dir
tree /F
dotnet add "Installation.Check" package ${{artifact.name}}
dotnet add package ${{artifact.name}} -s ./packages
Write-Host "NuGet Cache list:"
nuget locals all -list
Write-Host "Clearing NuGet package cache"
Expand Down

0 comments on commit 952cf90

Please sign in to comment.