-
Notifications
You must be signed in to change notification settings - Fork 64
NuSpec
Create a .nuspec file that conforms to the NuSpec specification.
desc "Create a NuSpec for this project"
nuspec :nuspec do |spec|
spec.output_file = "path/to/nuspec"
spec.id = "myproject"
spec.version = "1.0.0"
spec.authors = ["The Authors"]
spec.title = "My Project"
spec.description = "This is the description of my package."
spec.project_url = "http://example.com"
spec.license_url = "http://example.com/license"
spec.dependency "Autofac", "2.4.3.700"
spec.file "tools/*.exe", "tools"
spec.framework_assembly "System.CoreEx", "net40"
spec.framework_assembly "System.Reactive", "net40"
end
The location of the resulting nuspec file.
output_file = "path/to/nuspec"
This is the unique identifier and version associated with the package.
id = "myproject"
version = "1.0.0"
The authors of the package contents (versus the owners
of the package container itself).
authors = ["Some Author"]
A full text description of the package.
description = "The package description here."
A long-form, line-wrapping description can be provided using Ruby's heredoc
syntax.
description = <<END
This is a really long, multi-line
description of my project.
END
A human friendly title of the package.
title = ""
A list of the package creators.
owners = ["John Doe"]
A summary of the package.
summary = "A summary of the package."
A locale ID for the package, such as en-US
.
language = "en-US"
A URL for the home page of the package.
project_url = "http://myproject.com"
A URL for the image to use as the icon for the package.
icon_url = "http://myproject.com/icon.ico"
A link to the license that the package is under.
license_url = "http://myproject.com/license"
Ensure that the package license is accepted before the package is installed.
require_license_acceptance
A list of tags and keywords that describe the package.
tags = ["foo", "bar"]
A short copyright statement.
copyright = ""
Add a file or file(s) to be included in the package. The first parameter accepts wildcards according to the rules. And the second identifies the name or directory within the package.
file "tools/*.exe", "tools"
Add a dependent package by ID and (optional) version, using the normal version range specification.
dependency "foo", "~>1.0"
Add a framework assembly by name and target framework, including: net40
, net35
, net20
, mono
, wp7
.
framework_assembly "System.Reactive", "net40"
Write the file with "pretty" whitespace.
pretty_formatting
(none)