From f21091c661b9d44aa8558f47b56376726413001e Mon Sep 17 00:00:00 2001 From: Rob Reynolds Date: Fri, 10 Apr 2015 09:07:19 -0500 Subject: [PATCH] (GH-232) Pack includes files from nuspec directory Instead of starting at the current directory to use files for the nuspec, use the nuspec directory as the starting path to look at files. --- src/chocolatey/infrastructure.app/services/NugetService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chocolatey/infrastructure.app/services/NugetService.cs b/src/chocolatey/infrastructure.app/services/NugetService.cs index a118d586ae..f1b36c59e2 100644 --- a/src/chocolatey/infrastructure.app/services/NugetService.cs +++ b/src/chocolatey/infrastructure.app/services/NugetService.cs @@ -146,7 +146,7 @@ public void pack_run(ChocolateyConfiguration config) // Initialize the property provider based on what was passed in using the properties flag var propertyProvider = new DictionaryPropertyProvider(properties); - var basePath = _fileSystem.get_current_directory(); + var basePath = nuspecDirectory; if (config.Information.PlatformType != PlatformType.Windows) { //bug with nuspec and tools/** folder location on Windows.