VSTS Nuget Publishing












-2














I have a projects that I am preparing to push to the VSTS nuget server - private *within a build definition). I have one project that is pushing ok and shows up in the nuget explorer in Visual Studio. I have another project that depends on the first project as a dependency. I have configured the build process to interface with the dependent project on the private nuget server - and it builds ok. The packing fails though indicating that the nuget package from the orignal project cannot b found. The following is the scenario I am running in to:



project A Build
Project A pack nuget package
Project A publish nuget package



project B NUGET GET - Project A (passes)
project B Build (passes)
project B pack nuget package (fails)
following error is reported



The nuget command failed with exit code(1) and
error(Unable to find 'A.nupkg'. Make sure the project has been built.)



Unsure why the packing of project B is looking for the project A package. The package B packing task is only pointing to the project B proj file - unclear why it is looking for the project A package that is not being packed into the current package










share|improve this question



























    -2














    I have a projects that I am preparing to push to the VSTS nuget server - private *within a build definition). I have one project that is pushing ok and shows up in the nuget explorer in Visual Studio. I have another project that depends on the first project as a dependency. I have configured the build process to interface with the dependent project on the private nuget server - and it builds ok. The packing fails though indicating that the nuget package from the orignal project cannot b found. The following is the scenario I am running in to:



    project A Build
    Project A pack nuget package
    Project A publish nuget package



    project B NUGET GET - Project A (passes)
    project B Build (passes)
    project B pack nuget package (fails)
    following error is reported



    The nuget command failed with exit code(1) and
    error(Unable to find 'A.nupkg'. Make sure the project has been built.)



    Unsure why the packing of project B is looking for the project A package. The package B packing task is only pointing to the project B proj file - unclear why it is looking for the project A package that is not being packed into the current package










    share|improve this question

























      -2












      -2








      -2







      I have a projects that I am preparing to push to the VSTS nuget server - private *within a build definition). I have one project that is pushing ok and shows up in the nuget explorer in Visual Studio. I have another project that depends on the first project as a dependency. I have configured the build process to interface with the dependent project on the private nuget server - and it builds ok. The packing fails though indicating that the nuget package from the orignal project cannot b found. The following is the scenario I am running in to:



      project A Build
      Project A pack nuget package
      Project A publish nuget package



      project B NUGET GET - Project A (passes)
      project B Build (passes)
      project B pack nuget package (fails)
      following error is reported



      The nuget command failed with exit code(1) and
      error(Unable to find 'A.nupkg'. Make sure the project has been built.)



      Unsure why the packing of project B is looking for the project A package. The package B packing task is only pointing to the project B proj file - unclear why it is looking for the project A package that is not being packed into the current package










      share|improve this question













      I have a projects that I am preparing to push to the VSTS nuget server - private *within a build definition). I have one project that is pushing ok and shows up in the nuget explorer in Visual Studio. I have another project that depends on the first project as a dependency. I have configured the build process to interface with the dependent project on the private nuget server - and it builds ok. The packing fails though indicating that the nuget package from the orignal project cannot b found. The following is the scenario I am running in to:



      project A Build
      Project A pack nuget package
      Project A publish nuget package



      project B NUGET GET - Project A (passes)
      project B Build (passes)
      project B pack nuget package (fails)
      following error is reported



      The nuget command failed with exit code(1) and
      error(Unable to find 'A.nupkg'. Make sure the project has been built.)



      Unsure why the packing of project B is looking for the project A package. The package B packing task is only pointing to the project B proj file - unclear why it is looking for the project A package that is not being packed into the current package







      nuget






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 17 '18 at 21:16









      PeterPeter

      619




      619
























          1 Answer
          1






          active

          oldest

          votes


















          0














          OK - after researching I found what the problem was. The VSTS nuget TASK for the put operation works explicitly on a Visual Studio .net project (not a solution). After realizing that the NUGET packing operation needs to know the location of other included nuget packages I understood what was happening. Since the identified location is the Visual Studio project it is looking for the package location in the folder above location of the target visual Studio project. Now my system does not maintain the solutions in this fashion - so locating the Package folder was failing. What would have been nice is if the error message had indicated that it could not find the package in the location being looked at. Once I understood what was happening I found that there is a config file called nuget.config that is placed in the same location the target Visual Studio project is in that can specify the location of the nuget packages.



           <configuration>
          <config>
          <add key="repositoryPath"
          value="......OrderITSolutionsDataManagementCorepackages" />
          </config>
          </configuration>


          This solved the problem. It would be nice if MS had prepped the NUGET task to take a Visual Studio solution and then ability to select the project from the solution that is being packed so the package folder could be located (by default Visual Studio will place the package folder in the location the nuget operation is looking).



          Peter






          share|improve this answer























            Your Answer






            StackExchange.ifUsing("editor", function () {
            StackExchange.using("externalEditor", function () {
            StackExchange.using("snippets", function () {
            StackExchange.snippets.init();
            });
            });
            }, "code-snippets");

            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "1"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53355658%2fvsts-nuget-publishing%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            OK - after researching I found what the problem was. The VSTS nuget TASK for the put operation works explicitly on a Visual Studio .net project (not a solution). After realizing that the NUGET packing operation needs to know the location of other included nuget packages I understood what was happening. Since the identified location is the Visual Studio project it is looking for the package location in the folder above location of the target visual Studio project. Now my system does not maintain the solutions in this fashion - so locating the Package folder was failing. What would have been nice is if the error message had indicated that it could not find the package in the location being looked at. Once I understood what was happening I found that there is a config file called nuget.config that is placed in the same location the target Visual Studio project is in that can specify the location of the nuget packages.



             <configuration>
            <config>
            <add key="repositoryPath"
            value="......OrderITSolutionsDataManagementCorepackages" />
            </config>
            </configuration>


            This solved the problem. It would be nice if MS had prepped the NUGET task to take a Visual Studio solution and then ability to select the project from the solution that is being packed so the package folder could be located (by default Visual Studio will place the package folder in the location the nuget operation is looking).



            Peter






            share|improve this answer




























              0














              OK - after researching I found what the problem was. The VSTS nuget TASK for the put operation works explicitly on a Visual Studio .net project (not a solution). After realizing that the NUGET packing operation needs to know the location of other included nuget packages I understood what was happening. Since the identified location is the Visual Studio project it is looking for the package location in the folder above location of the target visual Studio project. Now my system does not maintain the solutions in this fashion - so locating the Package folder was failing. What would have been nice is if the error message had indicated that it could not find the package in the location being looked at. Once I understood what was happening I found that there is a config file called nuget.config that is placed in the same location the target Visual Studio project is in that can specify the location of the nuget packages.



               <configuration>
              <config>
              <add key="repositoryPath"
              value="......OrderITSolutionsDataManagementCorepackages" />
              </config>
              </configuration>


              This solved the problem. It would be nice if MS had prepped the NUGET task to take a Visual Studio solution and then ability to select the project from the solution that is being packed so the package folder could be located (by default Visual Studio will place the package folder in the location the nuget operation is looking).



              Peter






              share|improve this answer


























                0












                0








                0






                OK - after researching I found what the problem was. The VSTS nuget TASK for the put operation works explicitly on a Visual Studio .net project (not a solution). After realizing that the NUGET packing operation needs to know the location of other included nuget packages I understood what was happening. Since the identified location is the Visual Studio project it is looking for the package location in the folder above location of the target visual Studio project. Now my system does not maintain the solutions in this fashion - so locating the Package folder was failing. What would have been nice is if the error message had indicated that it could not find the package in the location being looked at. Once I understood what was happening I found that there is a config file called nuget.config that is placed in the same location the target Visual Studio project is in that can specify the location of the nuget packages.



                 <configuration>
                <config>
                <add key="repositoryPath"
                value="......OrderITSolutionsDataManagementCorepackages" />
                </config>
                </configuration>


                This solved the problem. It would be nice if MS had prepped the NUGET task to take a Visual Studio solution and then ability to select the project from the solution that is being packed so the package folder could be located (by default Visual Studio will place the package folder in the location the nuget operation is looking).



                Peter






                share|improve this answer














                OK - after researching I found what the problem was. The VSTS nuget TASK for the put operation works explicitly on a Visual Studio .net project (not a solution). After realizing that the NUGET packing operation needs to know the location of other included nuget packages I understood what was happening. Since the identified location is the Visual Studio project it is looking for the package location in the folder above location of the target visual Studio project. Now my system does not maintain the solutions in this fashion - so locating the Package folder was failing. What would have been nice is if the error message had indicated that it could not find the package in the location being looked at. Once I understood what was happening I found that there is a config file called nuget.config that is placed in the same location the target Visual Studio project is in that can specify the location of the nuget packages.



                 <configuration>
                <config>
                <add key="repositoryPath"
                value="......OrderITSolutionsDataManagementCorepackages" />
                </config>
                </configuration>


                This solved the problem. It would be nice if MS had prepped the NUGET task to take a Visual Studio solution and then ability to select the project from the solution that is being packed so the package folder could be located (by default Visual Studio will place the package folder in the location the nuget operation is looking).



                Peter







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Nov 18 '18 at 14:17

























                answered Nov 18 '18 at 13:10









                PeterPeter

                619




                619






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.





                    Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                    Please pay close attention to the following guidance:


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53355658%2fvsts-nuget-publishing%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Biblatex bibliography style without URLs when DOI exists (in Overleaf with Zotero bibliography)

                    ComboBox Display Member on multiple fields

                    Is it possible to collect Nectar points via Trainline?