Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NuGetPack fails if no Files have been specified #1154

Closed
wieslawsoltes opened this issue Aug 12, 2016 · 2 comments
Closed

NuGetPack fails if no Files have been specified #1154

wieslawsoltes opened this issue Aug 12, 2016 · 2 comments
Labels
Milestone

Comments

@wieslawsoltes
Copy link

var nuspec = new NuGetPackSettings()
{
    Id = "SomePackage",
    Version = "0.1.0",

    Authors = new [] { "a" },
    Owners = new [] { "a" },
    LicenseUrl = new Uri("http://opensource.org/licenses/MIT"),
    ProjectUrl = new Uri("https://github.com/a/a/"),
    RequireLicenseAcceptance = false,
    Symbols = false,
    NoPackageAnalysis = true,
    Description = "a",
    Copyright = "Copyright 2015",
    Tags = new [] { "a" },
    Dependencies = new []
    {
        new NuSpecDependency() { Id = "Dep1", Version = "0.1.0" },
        new NuSpecDependency() { Id = "Dep2", Version = "0.1.0" }
    },
    OutputDirectory = (DirectoryPath)Directory("./artifacts")
};
NuGetPack(nuspec);
Error: 
Required setting Files not specified

This should be allowed, very useful for creating meta packages.

@gep13 gep13 added the Bug label Aug 12, 2016
@gep13
Copy link
Member

gep13 commented Aug 12, 2016

@wieslawsoltes agreed. This is definitely an issue. If there are dependencies defined, then Files is not a required parameter.

tpodolak added a commit to tpodolak/cake that referenced this issue Oct 6, 2016
@devlead devlead added this to the v0.17.0 milestone Oct 17, 2016
devlead pushed a commit to tpodolak/cake that referenced this issue Oct 17, 2016
@devlead
Copy link
Member

devlead commented Oct 27, 2016

Fixed by #1154

@devlead devlead closed this as completed Oct 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants