File tree Expand file tree Collapse file tree 2 files changed +7
-11
lines changed
Expand file tree Collapse file tree 2 files changed +7
-11
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ task Initialize {
1919 $artifacts = Join-Path $bin ' artifacts'
2020
2121 $script :settings = @ {
22- nugetexe = Join-Path $root ' Build\nuget.exe'
2322 sources = $sources
2423 bin = $bin
2524 artifacts = $artifacts
@@ -62,8 +61,6 @@ task PackGlobalTool {
6261 - c Release `
6362 - p:PackAsTool= true `
6463 - p:GlobalTool= true `
65- - p:PackageVersion= $ ($settings.version ) `
66- - p:RepositoryCommit= $ ($settings.repositoryCommitId ) `
6764 - o $ ($settings.artifacts ) `
6865 $projectFile
6966 }
@@ -95,14 +92,13 @@ task PackNuget472 PackPoweShellModule, {
9592 }
9693
9794 $nuspec = Join-Path $settings.sources ' SqlDatabase.Package\nuget\package.nuspec'
98- exec {
99- & $ ($settings.nugetexe ) pack `
100- - NoPackageAnalysis `
101- - verbosity detailed `
102- - OutputDirectory $ ($settings.artifacts ) `
103- - Version $ ($settings.version ) `
104- - p RepositoryCommit= $ ($settings.repositoryCommitId ) `
105- - p bin= $bin `
95+ exec {
96+ dotnet pack `
97+ -- no- build `
98+ -- version= $ ($settings.version ) `
99+ - p:RepositoryCommit= $ ($settings.repositoryCommitId ) `
100+ - p:bin= $bin `
101+ - o $ ($settings.artifacts ) `
106102 $nuspec
107103 }
108104}
You can’t perform that action at this time.
0 commit comments