A Nuspec file is used in the generation of Nuget packages. It can be used to specify meta data about the package, to define a package's dependencies, and to specify which files should be packaged.
Questions tagged [nuspec]
253 questions
0
votes
0 answers
Restricting package dependencies in .nuspec (ex. '< 0.7' not working)
I have two c# libraries:
main-library
dependency-library (released in version 0.6 and 0.7)
The main-library has the following defined in .nuspec:
According to documentation for Nuget…

Aleksander Sjåfjell
- 49
- 6
0
votes
0 answers
How not include a reference from solution while preparing NuGet with IncludeReferencedProjects option
I am producing a NuGet from several projects in a solution. One of the projects are required during the development process in the main project. (When I say main I mean the project which I run the nuget with IncludeReferencedProjects options) I do…

Nuri Tasdemir
- 9,720
- 3
- 42
- 67
0
votes
3 answers
which is good approach to create nuget packages?
As I developer I wonder which is the best approch to create a nuget packages ?
1.NuGet Package Project (link)
2.Use Nuget.exe use .Nuspec (add manually and update manually)
Anyone guide on this.
Currently I'm using nuget.exe and .Nuspec but…

Neo
- 15,491
- 59
- 215
- 405
0
votes
2 answers
How can i create a (design time only) nuget package that doesn't add an assembly reference when installed?
I want to build a nuget package for a design time only package. This package contains resources (a ruleset file, a build props file and an assembly) for using a custom code analysis rule set.
My nuspec file (inside my CodeAnalysis assembly project)…

oɔɯǝɹ
- 7,219
- 7
- 58
- 69
0
votes
1 answer
Squirrel for Windows drops everything in the Publisher Name after a comma
I've discovered that when using Squirrel for Windows installation framework, the program's Publisher name, as seen in the Programs and Features of Windows, is specified by the Authors field of the Package Metadata in the .nuspec file.
However, when…

Feckmore
- 4,322
- 6
- 43
- 51
0
votes
2 answers
How to delete files a dependency installed after your package is installed
I'm working on a nuget package that depends on the Unity and Unity.Mvc4 packages. My nuspec file has them listed as dependencies. Everything works, but when my package is installed the dependencies are installed first.
The Unity dependencies…

Ryan Mann
- 5,178
- 32
- 42
0
votes
0 answers
Programmatically generate a NuGet package without NuGet.Core
I'm looking to generate a .nupkg containing a [single] [source] file on the fly without using the NuGet.Core lib or shelling out to a nuget.exe pack.
As I understand it, in essence to generate a .nupkg with a single file in it should be a matter of…

Ruben Bartelink
- 59,778
- 26
- 187
- 249
0
votes
2 answers
Nuget $project.Object.References.Add fails in install PS-script
I have my nuget package, lets call it A that has a dependency on another public package Nunit.Runners
When A depends on Nunit.Runners it doesn't add the assemblies I need into my project, the assemblies I depend on are in…

roundcrisis
- 17,276
- 14
- 60
- 92
0
votes
1 answer
Change default Automatic Package Updater Chocolatey output path to avoid output will be pushed to GitHub
Introduction
Aim: define output directory for automatically created Chocolatey packages by ketarin to avoid that automatically created nuspec packages will be pushed to GitHub
The steps located in this manual have been followed to create a…

030
- 10,842
- 12
- 78
- 123
0
votes
0 answers
How can I query nuget.org for metainfo
I need to find out some specific metainformation like hash, license, author for a specific version of a package without downloading it.
I already found out about the existence of a web api but dont know how to really use it.
If I query something…

Ilja
- 1
- 3
0
votes
1 answer
NuGet target framework vs. MSBuild version
I'm building a NuGet package that uses the new features in NuGet 2.5 to automatically update the project file to include a *.props and *.targets file to add support for custom build steps. Currently these files are included in the NuGet package…

Sam Harwell
- 97,721
- 20
- 209
- 280
0
votes
1 answer
Is there a way to create just ONE NuGet package that will target multiple project types (web forms, MVC, etc.)?
My company commonly uses Web Forms projects and MVC projects within Visual Studio. When creating a package, the package will/should be different for the different project types.
QUESTION: Rather than creating two slightly different NuGet packages…

Mike Marks
- 10,017
- 17
- 69
- 128
0
votes
1 answer
Installing a Nuget package I created returns an error "There are multiple root elements. Line 3, position 2."
I recently created a Nuget package, but when trying to install it, it's returning the error:
There are multiple root elements. Line 3, position 2.
QUESTION: What is this error referencing- the nuspec file? The web.config.transform that I have in…

Mike Marks
- 10,017
- 17
- 69
- 128