diff --git a/src/chocolatey/infrastructure.app/services/NugetService.cs b/src/chocolatey/infrastructure.app/services/NugetService.cs index 7676852284..21b22cd790 100644 --- a/src/chocolatey/infrastructure.app/services/NugetService.cs +++ b/src/chocolatey/infrastructure.app/services/NugetService.cs @@ -287,14 +287,7 @@ public virtual 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 = nuspecDirectory; - if (config.Information.PlatformType != PlatformType.Windows) - { - //bug with nuspec and tools/** folder location on Windows. - basePath = "./"; - } - - var builder = new PackageBuilder(nuspecFilePath, basePath, propertyProvider, includeEmptyDirectories: true); + var builder = new PackageBuilder(nuspecFilePath, nuspecDirectory, propertyProvider, includeEmptyDirectories: true); if (!string.IsNullOrWhiteSpace(config.Version)) { builder.Version = new SemanticVersion(config.Version);