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!

    Missing files on deploy when using NuGet packages

    Scheduled Pinned Locked Moved Support
    buildmasternugetbuilds
    5 Posts 1 Posters 189 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

      We are trying to deploy an ASP.NET MVC4 .NET4.5 Web Application to our production server. When building the package on our testing server, the "NuGet Install Packages" extension automatically downloads and installs the missing packages needed.

      For obvious reasons, we can not have "NuGet Install Packages" run on our production servers. How do we include the DLL's that NuGet downloaded/installed in the "bin" folder of our application.

      There are many packages that are missing when it comes to deployment.

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

        You should capture a build artifact, and then deploy that build artifact to testing and production.

        Check out some of the specifics (http://inedo.com/specifics) to see how this is best accomplished.

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

          The steps we are using are:

          1. Get Latest from SVN
          2. Install NuGet Packages
          3. Build .NET Project
          4. Create Build Artifact
          5. Deploy Build Artifact

          All of these execute successfully.
          However, when we look at the deployed files, there are numerous missing dll files.

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

            So to see where the problem lies we installed a program called Team City. This is a rather rudimentary system in comparison to Buildmaster but it served as a good test.

            So we ran our project though and the artifact in the end contained all the necessary dlls we have been missing with Buildmaster.

            One thing that could be a clue is that TeamCity uses MsDeploy, also known as Web Deploy. This nailed 2 headaches we haven't managed to complete with Buildmaster.

            1. It analysed the config transforms and spat out the correct config for us.
            2. It included all the DLL's

            Is this something we can mimic in Buildmaster easily?
            We will try and get this going via the "execute command line" until in buildmaster. But that is a task for tomorrow. We don't have much more time to get this going.

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

              Can you try to use the "Build .NET Project" without checking "this is a web application"?

              Then, capture the artifact from _PublishedWebsites\project.name instead?

              This is how we solve this problem when we build proget (see http://inedo.com/specifics/proget), and we'll soon be adding another option for this action.

              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