Starts in:
1 DAY
20 HRS
46 MIN
57 SEC
Starts in:
1 D
20 H
46 M
57 S
Open Closed

Unable to compile on Azure DevOps during NuGetCommand #1524


User avatar
0
Tony_Albutt created

Hi

I am unable to implement CI\CD as I am unable to compile on Azure DevOps, and therefore unable to deploy to Azure.

During the NuGetCommand process, I get an error with every Volo.Abp package ? ##[error]Packages failed to restore many lines like below NU1101: Unable to find package Volo.Abp.AspNetCore.Mvc.UI.Theme.Commercial. No packages exist with this id in source(s): NuGetOrg NU1101: Unable to find package Volo.Abp.Commercial.Core. No packages exist with this id in source(s): NuGetOrg NU1101: Unable to find package Volo.Abp.Identity.Pro.Application.Contracts. No packages exist with this id in source(s): NuGetOrg)

Do you have documentation for the build pipeline that is able to help, or assist me to get this resolved?

I have saved the log file. Screenshot below.


7 Answer(s)
  • User Avatar
    0
    yekalkan created
    Support Team Fullstack Developer

    Hi @Tony_Albutt,

    Commercial ABP Packages are not listed on NuGet.org, but nuget.abp.io .

    You need to add this package source (to your NuGet sources). Example:

    <add key="ABP Commercial NuGet Source" value="https://nuget.abp.io/{Your-Key}/v3/index.json" />

    You can find this line in NuGet.Config file in your project. Check it to see {Your-Key} value.

  • User Avatar
    0
    Tony_Albutt created

    Thanks Yelalkan

    I have that in my NuGet.Config file?

    Is there a setting that I have to enable somewhere?

    Thanks and regards Tony

  • User Avatar
    0
    yekalkan created
    Support Team Fullstack Developer

    You can check the following document https://docs.microsoft.com/en-us/azure/devops/pipelines/packages/nuget-restore?view=azure-devops#restore-packages-with-nuget-restore-build-task

  • User Avatar
    0
    Tony_Albutt created

    Can you recomend where I can get information on how to create a pipeline that works with ABP.IO Does anyony use ABP.IO on Azure and Azure DevOps?

  • User Avatar
    0
    yekalkan created
    Support Team Fullstack Developer

    I think this is what you are looking for: https://abpioazuredevopsblazor.azurewebsites.net/

    It is published by an ABP community member.

  • User Avatar
    0
    Tony_Albutt created

    Thanks Yekalkan

    This looks fantastic

    Have a great day

  • User Avatar
    0
    Tony_Albutt created

    Thanks Yekalkan

    After some tweeking and changing, this is now working. You may want to recorn that there are 3 changes than need to be applied when anyone uses the instructions from your link https://abpioazuredevopsblazor.azurewebsites.net/

    results

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06