Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

    If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

    Generic .nuspec file

    Scheduled Pinned Locked Moved Support
    nugetpackagesproget
    2 Posts 1 Posters 4 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ? This user is from outside of this forum
      Guest
      last edited by

      Hey guys,
      I created a build project that uses a generic .nuspec file with variables inside.
      Everything goes fine until i get to the files section.
      The files section looks like this:

      <files>
              <file src="..\..\build\Compile\Host.exe"/>
              <file src="..\..\build\Compile\*.dll"/>
              <file src="..\..\build\Compile\*.config"/>
              <file src="..\..\build\Compile\assets\**\*.*" target="assets"/>
      </files>
      

      The thing is that some of the projects has all of those files included and it works fine, but some of the projects has no "assets" folder within, and the packing job is not working.

      Is there any way to tell the "nuget pack" command to just continue even if not all of the files are there, and he packs whatever he finds?
      So i will not have to create 2 .nuspec files.

      Thanks.

      Product: ProGet
      Version: 3.5.4

      1 Reply Last reply Reply Quote 0
      • ? This user is from outside of this forum
        Guest
        last edited by

        You may be best asking this on NuGet forums, as this relates to behavior in the nuget.exe client. We do not use "nuget.exe pack" ourselves (instead, we opt to use the proget client tools) as it's more reliable and has defined behaviors.

        1 Reply Last reply Reply Quote 0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • 1 / 1
        • First post
          Last post
        Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation