Questions tagged [nuspec]

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.

253 questions
0
votes
1 answer

Ignore folders when packing a nuget package

Considering a project in Visual Studio with the following structure Project ---Folder A ----- CS Files ---Folder B ----- CS Files ---Folder C ----- CS Files All works great but I want to pack only content from Folder A and C, ignoring totally all…
Icaroto
  • 142
  • 10
0
votes
1 answer

Include non-Solution items in Nuget package

I have created a Nuspec file with the following files elements:
christofr
  • 2,680
  • 1
  • 18
  • 19
0
votes
1 answer

Nuget package dependency versions

Say I create a new library, that wraps a rest service using RestSharp. I create a nuspec and publish to a nuget feed, and the dependency lists as...: ... RestSharp:105.2.3 ... Now I go and reference this package in…
Kjensen
  • 12,447
  • 36
  • 109
  • 171
0
votes
1 answer

Determine stable version of dependencies

I have a pre-release package, after installing it in other projects, some unstable packages installs e.g. EntityFramework Alternatively, I set fix version of EF in nuspec file.
Mojtaba Khooryani
  • 1,763
  • 1
  • 17
  • 36
0
votes
1 answer

Correct way to configure /> in a .nuspec

Before I get blasted and downvoted, I have gone through all the documentation on the microsoft and nuget sites. I am trying to create a nuget package but not abler to figure out what should be the path for the below in the .nuspec file
Adi
  • 259
  • 1
  • 4
  • 14
0
votes
1 answer

Nuspec buildAction not applying to contentFiles

I've been recently trying to create a .nuspec file that attaches a .dll file as an Embedded Resource. To do so, I've used the contentFiles tag on metadata, setting the buildAction="EmbeddedResource", as described in the section Example contentFiles…
Matias G H
  • 41
  • 6
0
votes
2 answers

nuspec contentFiles element invalid in metadata

I have included the following in my nuspec file: However,…
Harald Greve
  • 147
  • 3
  • 14
0
votes
1 answer

Nuget package all sub project in a solution

I have a solution which contains more than one Project. Project structure is as below. /root A.sln A.nuspec /ProjectB projectB.csprj projectB.nuspec /ProjectC projectC.csprj projectC.nuspec I have a few question. 1- What happens…
clockworks
  • 3,755
  • 5
  • 37
  • 46
0
votes
1 answer

How to add a Project url in .nuspec file when the link itself contains element name like 'id'.

Below is my Nuspec configuration Test x xxx 1.0.0.0 xxx xxxx
Ujjal Das
  • 77
  • 1
  • 7
0
votes
1 answer

How to prevent nuspec token replacement on package install

I have a nuspec template file (template.nuspec.pp) in the content folder of a Nuget package. When the package is installed, I modify the name of the nuspec file using an install.ps1 script to match the targeted assembly. I want the contents of the…
ket
  • 728
  • 7
  • 22
0
votes
1 answer

Nuget nuspec syntax

I'm creating a new nuget package in the nuspec file it seems they have a bizarre syntax $something$ $id$ $version$ $title$ $author$
johnny 5
  • 19,893
  • 50
  • 121
  • 195
0
votes
0 answers

Including a non referenced dll from a package

I have a nuspec file that looks like this: MyDll.Service 1.0.0
Bagzli
  • 6,254
  • 17
  • 80
  • 163
0
votes
2 answers

add .net framework dependency to nuspec file

I have the following nuspec file: Project.Proxy 0.0.1 Project.Proxy Company name
Buda Gavril
  • 21,409
  • 40
  • 127
  • 196
0
votes
1 answer

Invalid child elements in nuspec when calling Nuget pack

When I run nuget pack myPackage.nuspec The element 'metadata' in namespace 'http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd' has invalid child element 'packageSourceUrl' in namespace…
p.campbell
  • 98,673
  • 67
  • 256
  • 322
0
votes
1 answer

MSBuild: How to update xml by xpath

I am trying to find a solution, how can I update release notes in the nuspec xml using MSBuild script. Now I have create MSBuild target with XmlUpdate:
Alex
  • 842
  • 11
  • 33
1 2 3
16
17