Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NuGet.exe not packing directories that start with dot

Tags:

nuget

I am using NuGet.exe to pack up a directory of files and it seems that it ignores any directory that starts with a dot. Even when I try to explicitly use the "files" entry in the nuspec file, it won't let me include that directory or any of the files within it.

Is there a way to override this behavior?

Here is my command line: NuGet.exe pack ..\build\MyPackage.nuspec -OutputDirectory "\someserver\blah" -basePath "c:\temp\packageStaging" -Version "3.0" -NoPackageAnalysis

The reason for NoPackageAnalysis is that I am making a non standard package for use in Octopus deploy.

like image 620
awl Avatar asked Nov 28 '12 04:11

awl


People also ask

How do you add the folder where you placed NuGet exe to your PATH environment variable?

Click “Advanced System Settings” then click the “Environment Variables” button located within the Advanced tab. From here double-click the PATH variable in the top panel and create a new entry by adding the path to the directory that contains your NuGet.exe file (in this instance it's C:/NuGet/).

Where is the path of NuGet exe?

Install the official nuget.exe in your PC. Create a Symbolic Link here: %localappdata%\microsoft\winget\links. Make the nuget.exe globally available for your user to call it from anywhere, since the aforementioned directory should be present in your user's PATH variable.

What is the .NuGet folder?

nuget folder is used as a cache for packages downloaded to speed up project restore and compilation. It can safely be removed. Worst case, it will have to download the packages again in the future. Follow this answer to receive notifications.


1 Answers

you could use -NoDefaultExcludes option of nuget.exe

more details here: http://docs.nuget.org/docs/reference/command-line-reference NoDefaultExcludes Prevent default exclusion of NuGet package files and files and folders starting with a dot e.g. .svn.

like image 112
Deepak Avatar answered Sep 18 '22 15:09

Deepak