Skip to content

Commit

Permalink
Issue #84 - if version is not specified and filename not given to Exp…
Browse files Browse the repository at this point in the history
…ort-Package commandlet the name will no longer contain the dash at the end of the file name just before the extension.
  • Loading branch information
AdamNaj committed Aug 31, 2013
1 parent 5a9aeea commit 1ea35a7
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,12 @@ protected override void ProcessRecord()
{
if (fileName == null)
{
//name of the zip file when not defined
//name of the zip file when not defined
fileName = string.Format(
"{0}-{1}.xml", Project.Metadata.PackageName, Project.Metadata.Version);
"{0}{1}{2}.xml",
Project.Metadata.PackageName,
string.IsNullOrEmpty(Project.Metadata.Version) ? "" : "-",
Project.Metadata.Version);
}

if (!System.IO.Path.IsPathRooted(fileName))
Expand Down

0 comments on commit 1ea35a7

Please sign in to comment.