sayedihashimi / package-web

Extensions for ASP.NET web projects package creation
32 stars 18 forks source link

Running Publish-Interactive.ps1 in context of other script has issues with multiple zips #56

Closed seankearney closed 11 years ago

seankearney commented 11 years ago

I am calling Publish-Iteractive.ps1 from within the context of a psake script.

The script prompts me to "Enter the name of the package which you want to publish" and I do so.

6/12/2013 1:13:54 PM: An Error Occurred:
Write-Error : An error has occurred around line [], message = [System.Management.Automation.ItemNotFoundException: 
Cannot find path 'c:\[path where psake script is]\Authoring.Web.zip' because it does not exist.
   at System.Management.Automation.SessionStateInternal.GetChildItems(String path, Boolean recurse, CmdletProviderContext context)
   at Microsoft.PowerShell.Commands.GetChildItemCommand.ProcessRecord()]
   At c:\[path where psake script is]\Artifacts\Publish-Interactive.ps1:816 char:16
   +     Write-Error <<<<  $errorString
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Microsoft.PowerShell.Commands.WriteErrorCommand
seankearney commented 11 years ago

I sent a pull request for this: https://github.com/sayedihashimi/package-web/pull/57

sayedihashimi commented 11 years ago

I have merged the PR and included details on testing there.