Skip to content

Commit a71cbd8

Browse files
committed
Update module to pack release version of nupkg
1 parent b4933fa commit a71cbd8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

PowerShellStandard.psm1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@ function Export-NuGetPackage
7070
try {
7171
$srcDir = Join-Path $srcBase $version
7272
Push-Location $srcDir
73-
$result = dotnet pack
73+
$result = dotnet pack --configuration Release
7474
if ( $? ) {
75-
Copy-Item -verbose:$true (Join-Path $srcDir "bin/Debug/PowerShellStandard.Library*.nupkg") $PsScriptRoot
75+
Copy-Item -verbose:$true (Join-Path $srcDir "bin/Release/PowerShellStandard.Library*.nupkg") $PsScriptRoot
7676
}
7777
else {
7878
Write-Error -Message "$result"
@@ -86,9 +86,9 @@ function Export-NuGetPackage
8686
try {
8787
$templateDir = Join-Path $PsScriptRoot src/dotnetTemplate
8888
Push-Location $templateDir
89-
$result = dotnet pack
89+
$result = dotnet pack --configuration Release
9090
if ( $? ) {
91-
Copy-Item -verbose:$true (Join-Path $templateDir "bin/Debug/*.nupkg") $PsScriptRoot
91+
Copy-Item -verbose:$true (Join-Path $templateDir "bin/Release/*.nupkg") $PsScriptRoot
9292
}
9393
else {
9494
Write-Error -Message "$result"

0 commit comments

Comments
 (0)