AzureDevOps YAML Pipeline | Create NuGet package | Publish to Feed | .Net Core Implementation

Sdílet
Vložit
  • čas přidán 29. 10. 2022
  • Github repository link for FileAppLogger code - github.com/jitendra-25/FileAp...
    In this video we will see -
    1. How we can create a NuGet package using the AzureDevOps YAML pipeline.
    2. How to Create an Azure Artifact Feed, and publish NuGet package into the Feed.
    3. Finally, How to Connect the Azure Artifact Feed to Visual Studio and use the NuGet package in another solution.
    ----------
    Support me -
    • BuyMeACoffee - www.buymeacoffee.com/jitpanchal
    Connect with me -
    • Email - jitendrap.coding@gmail.com
    • LinkedIn - / jitendra-p
    • Medium Blog - / public
    • Instagram - / itsjitendrap
    ----------
    Please Like the video and Subscribe to the channel. THANK YOU for watching and supporting me to grow this channel !!

Komentáře • 17

  • @jitendrapanchal53
    @jitendrapanchal53  Před rokem

    Sorry for the background noise in the audio.

  • @ChrisKSP
    @ChrisKSP Před rokem +1

    incredibly useful, thanks for making this!

  • @srishtikumari5117
    @srishtikumari5117 Před 3 měsíci +1

    I have changed classic to yaml pipeline but nuget versioning is not available in feed showing old version can you suggest what should i do

    • @jitendrap380
      @jitendrap380 Před 3 měsíci

      What is the NuGet task you are using? You should get an option to use versioning scheme in NuGet task.

  • @renanpinheiro1688
    @renanpinheiro1688 Před rokem +1

    Thanks for the video, could you provide the YAML?

    • @jitendrapanchal53
      @jitendrapanchal53  Před rokem +1

      Thanks for watching the video. Please use this url to download the YAML file, and replace your Artifact Feed GUID value in it -
      github.com/jitendra-25/FileAppLogger/blob/master/FileAppLoggerYAML.yml

  • @user-jr1nv7fp4s
    @user-jr1nv7fp4s Před 5 měsíci +1

    Hi, Very interesting video! I am having problems trying to deploy the artifact. I have created a release pipeline that downloads the artifact and then runs the tasks IIS web app manage
    and IIS web app deploy. The problem comes when I try to access the API it doesn't recognize the files. I don't know if I'm skipping some step or that I can't deploy the artifact directly from the nupkg file. Could you help me? Thank you very much!

    • @jitendrapanchal53
      @jitendrapanchal53  Před 5 měsíci

      Thanks for watching the video. For API publishing you have to use dotnet publish task and copy the files into Artifacts directory using Copy task. Then in the release pipeline deploy that artifact on IIS. Hope this helps.

  • @irshadf5462
    @irshadf5462 Před 9 měsíci +1

    Thanks for the video. How to create single nuget package from multiple projects?

    • @jitendrapanchal53
      @jitendrapanchal53  Před 9 měsíci

      Thanks for watching the video.
      For creating single nuget from multiple projects ypu can create a nuspec file with all the dependencies, and then using nuget pack command to create a nuget package.
      Please let me know if this was helpful or you need more help.

    • @irshadf5462
      @irshadf5462 Před 9 měsíci +1

      Thanks @@jitendrapanchal53 for your reply. I actually tried to create nuspec file using Nuget Package Explorer, but couldn't get it how to create it. Do you have link or steps for creating nuspec file?
      Also is it even recommended way to create single nuget package from multiple projects? (by creating single package I am trying to avoid multiple pipelines)

    • @jitendrapanchal53
      @jitendrapanchal53  Před 6 měsíci +1

      Sorry for the delay in response. Here is the link for nuspec documentation - learn.microsoft.com/en-us/nuget/reference/nuspec
      Usually, it is better to create one nuget package for one project. You can use single pipeline and publish multiple nuget as artifacts.

    • @irshadf5462
      @irshadf5462 Před 6 měsíci

      Thanks @@jitendrapanchal53

  • @arunprasathbalaiyan5349
    @arunprasathbalaiyan5349 Před rokem +1

    If my solution has multiple projects and I have to create a nuget packages for each project respectively, how should I do this??

    • @jitendrapanchal53
      @jitendrapanchal53  Před rokem

      Thanks for watching the video.
      If your solution have multiple projects then you can create a nuspec file for each project, Or if it is a dotnet solution then you can use .csproj file to create nuget package for each project.
      Please let me know if this was helpful.

    • @sagargadge8973
      @sagargadge8973 Před 3 měsíci

      Please send link to create nupck file.