Skip to content

Commit

Permalink
Fixed "Path cannot be resolved" error in New-DeploymentPackage.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaldudak committed Nov 18, 2019
1 parent f52b94f commit 55938dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/DotNetAutomation/DotNetAutomation.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
RootModule = './DotNetAutomation.psm1'

# Version number of this module.
ModuleVersion = '0.0.3'
ModuleVersion = '0.0.4'

# ID used to uniquely identify this module
GUID = 'b098cffb-bb67-47c8-9578-71db144c7c78'
Expand Down Expand Up @@ -58,7 +58,7 @@ PrivateData = @{
ProjectUri = 'https://github.com/adia-technology/dotnet-automation-tasks'

# ReleaseNotes of this module
ReleaseNotes = 'Verifying automatic publishing via GitHub actions. No functional changes.'
ReleaseNotes = 'Fixed "Path cannot be resolved" error in New-DeploymentPackage.'

} # End of PSData hashtable

Expand Down
2 changes: 1 addition & 1 deletion src/DotNetAutomation/public/New-DeploymentPackage.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function New-DeploymentPackage
$msbuildPath = Find-MsBuild
& $msbuildPath (Resolve-Path $project) "/p:DeployOnBuild=True;Configuration=Release;DeployTarget=PipelinePreDeployCopyAllFilesToOneFolder;PackageTempRootDir=$tempDirectory"

$resolvedDestinationPath = Resolve-Path $destinationPath
$resolvedDestinationPath = $ExecutionContext.SessionState.Path.GetUnresolvedProviderPathFromPSPath($destinationPath)
Write-Host "Compressing contents of $tempDirectory to $resolvedDestinationPath..."
Compress-Archive -Path "$tempDirectory\PackageTmp\*" -DestinationPath (Resolve-Path $resolvedDestinationPath) -Force
Write-Host "Done. Applicaton package saved in $resolvedDestinationPath."
Expand Down

0 comments on commit 55938dc

Please sign in to comment.