Skip to content

Commit

Permalink
use nuget.exe to pack
Browse files Browse the repository at this point in the history
  • Loading branch information
clairernovotny committed Apr 1, 2020
1 parent 2326b6a commit 4aeff96
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,15 @@ steps:
arguments: -c $(BuildConfiguration)
displayName: Build

- powershell: |
- pwsh: |
mkdir $(Build.ArtifactStagingDirectory)\Packages
$version = .\nbgv get-version -f json | ConvertFrom-Json
$nuspecs = gci .\NuSpecs\*.nuspec
foreach ($item in $nuspecs) {
dotnet pack .\src\Humanizer\Humanizer.csproj --no-build -o $(Build.ArtifactStagingDirectory)\Packages /p:NuspecFile=$($item.FullName) /p:NuspecBasePath=..\ /p:NuspecProperties="version=$($version.NuGetPackageVersion);RepositoryType=git;RepositoryCommit=$($version.GitCommitId);RepositoryUrl=https://github.com/Humanizr/Humanizer"
nugetpack $($item.FullName) `
-outputdirectory $(Build.ArtifactStagingDirectory)\Packages `
-basepath $(System.DefaultWorkingDirectory)\src\ `
-Properties "version=$($version.NuGetPackageVersion);RepositoryType=git;RepositoryCommit=$($version.GitCommitId);RepositoryUrl=https://github.com/Humanizr/Humanizer"
}
displayName: Create packages

Expand Down

0 comments on commit 4aeff96

Please sign in to comment.