Skip to content
This repository was archived by the owner on Dec 18, 2017. It is now read-only.

Commit

Permalink
Support "kpm pack" packing project root when '--wwwroot' is "."
Browse files Browse the repository at this point in the history
  • Loading branch information
ChengTian committed Sep 12, 2014
1 parent 5cca757 commit 537492c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,9 @@ private void CopyContentFiles(PackRoot root, Runtime.Project project)
Console.WriteLine("Copying contents of project dependency {0} to {1}",
_libraryDescription.Identity.Name, WwwRootOut);

var wwwRootPath = Path.Combine(project.ProjectDirectory, WwwRoot);
// If the value of '--wwwroot' is ".", we need to pack the project root dir
// Use Path.GetFullPath() to get rid of the trailing "."
var wwwRootPath = Path.GetFullPath(Path.Combine(project.ProjectDirectory, WwwRoot));
var wwwRootOutPath = Path.Combine(root.OutputPath, WwwRootOut);

Console.WriteLine(" Source {0}", wwwRootPath);
Expand Down

0 comments on commit 537492c

Please sign in to comment.