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

Поділитися
Вставка
  • Опубліковано 25 жов 2024

КОМЕНТАРІ • 18

  • @jitendrapanchal53
    @jitendrapanchal53  2 роки тому

    Sorry for the background noise in the audio.

  • @bnlakshmibn
    @bnlakshmibn 5 днів тому

    very clear

  • @ChrisKSP
    @ChrisKSP Рік тому +2

    incredibly useful, thanks for making this!

  • @irshadf5462
    @irshadf5462 Рік тому +2

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

    • @jitendrapanchal53
      @jitendrapanchal53  Рік тому

      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 Рік тому +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  9 місяців тому +2

      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 9 місяців тому

      Thanks @@jitendrapanchal53

  • @DanielRico-z3i
    @DanielRico-z3i 8 місяців тому +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  8 місяців тому

      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.

  • @arunprasathbalaiyan5349
    @arunprasathbalaiyan5349 Рік тому +2

    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  Рік тому +1

      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 6 місяців тому

      Please send link to create nupck file.

  • @srishtikumari5117
    @srishtikumari5117 6 місяців тому +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 6 місяців тому

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

  • @renanpinheiro1688
    @renanpinheiro1688 Рік тому +1

    Thanks for the video, could you provide the YAML?

    • @jitendrapanchal53
      @jitendrapanchal53  Рік тому +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