none
Difference between Publish artifacts to Azure Pipelines & To publish a NuGet package as an Azure Artifacts feed RRS feed

  • Question

  • While using Azure Build pipeline, there is task called build solution using MS Build then publish artifacts and the publish location is azure pipeline. 

    however in some course i saw other 2 steps where you use nuget packaging. and you do nuget pack then do nuget push to nuget artifact feed. i feel the 2 steps are pretty similar. if any one can illustrate what is different between the 2 approach

    Tuesday, November 5, 2019 9:22 AM

Answers

  • Hi Ayman Shokr,

    Welcome to MSDN forum.

    The differences between approaches are mainly dependent on publishing step.

    nuget.exe -- is a tool to quickly manage nuget packages. It provides the full extent of NuGet functionality to install, create, publish, and manage packages without making any changes to project files.

    MSbuild.exe -- is a tool to build and modify solution or project. Its operations are related to proj file. It could pack project as package, but could not publish package singly. Please refer more here.

    So, to publish different files, we need to use different cli tools, though the steps are similar.

    Hope it could help you.

    Best Regards,

    Dylan 


    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com

    • Marked as answer by Ayman Shokr Wednesday, November 6, 2019 1:31 PM
    Wednesday, November 6, 2019 6:34 AM

All replies

  • Hi Ayman Shokr,

    Welcome to MSDN forum.

    The differences between approaches are mainly dependent on publishing step.

    nuget.exe -- is a tool to quickly manage nuget packages. It provides the full extent of NuGet functionality to install, create, publish, and manage packages without making any changes to project files.

    MSbuild.exe -- is a tool to build and modify solution or project. Its operations are related to proj file. It could pack project as package, but could not publish package singly. Please refer more here.

    So, to publish different files, we need to use different cli tools, though the steps are similar.

    Hope it could help you.

    Best Regards,

    Dylan 


    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com

    • Marked as answer by Ayman Shokr Wednesday, November 6, 2019 1:31 PM
    Wednesday, November 6, 2019 6:34 AM
  • so what's the use of publish artifact step? as per my understanding to make use of dependencies  referenced from another project i will have to use  nuget package which is previously published to an artifact feed.  so what is benefit  of the step publishing build artifact to azure pipeline?

     

    Wednesday, November 6, 2019 1:12 PM
  • Hi Ayman Shokr,

    Thank you for reply.

    It could help you publish any files which you need to test or deploy your app, and they are not just dependencies. 

    Best Regards,

    Dylan


    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com

    Thursday, November 7, 2019 9:44 AM