NuGet by Patrik

Nuget Package Content

The contents of the Nuget package can be defined either by defining a conventional based folder structure relative to the package manifest file or by using a files element in the manifest file. The convention based approach requires the following folder structure:

  • tools: The tools folder of a package is for PowerShell scripts and programs accessible from the Package Manager Console.
  • lib: Assemblies (DLL files) in the lib folder are added as assembly references when the package is installed.
  • content: Files under the content folder are directly copied to the root of the application when the package is installed. For example, if we want to add a script file to the /Scripts folder of the target application, then we need to place that file under Content/Scripts/{jsfilename}.

Comments

Leave a Comment

All fields are required. Your email address will not be published.