Open Closed

Abp Pro modules download on Build Server #12


0
AlainLeicht created

Hi,

After upgrading our solution to the commercial Version, our build server is not able to do run dotnet publish anymore: error NU1101: Unable to find package Volo.Abp.LanguageManagement.Domain.Shared

How can the build prozess access those nuget packages?

Best Regards,


8 Answer(s)
  • 0
    wazbek created

    Hi

    I am having the same issue but with "dotnet restore" in our Azure build pipeline. Multiple Volo.* packages throwing the error NU1101: Unable to find package Volo.* . No packages exist with this id in source(s): NuGetOrg.

    Please provide a solution.

    Regards,

    Warick

  • 0
    ismcagdas created
    Support Team

    Hi,

    Do you have Nuget.Config in the source code used in your build server ? Your NuGet.Config file must include abp.io nuget source specific to your account. It should be something like this;

    <?xml version="1.0" encoding="utf-8"?>
    <configuration>
        <packageSources>
    		<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
            <!-- {ABP_COMMERCIAL_NUGET_SOURCE} -->
        </packageSources>
    </configuration>
    
  • 0
    AlainLeicht created

    What is the url to the abp.io source? My local Visual Studio works without any other source than nuget.org.

  • 0
    AlainLeicht created

    Nuget.config gets generated with account specific nuget source when creating a new project. just copied that in the old solution, dotnet publish now works on build server.

  • 0
    ismcagdas created
    Support Team

    Great to hear that :)

  • 0
    wazbek created

    Hi

    Can you please share what your build pipeline yaml looks like to get this to work?

    I am still getting errors when running 'dotnet restore'. I have the 'ABP Commercial NuGet Source' configured in my NuGet.Config file.

    This is what my restore step looks like in my yaml file:

    - job: aspnetcore
        displayName: .NET Core
        pool:
          vmImage: 'ubuntu-latest'
        steps:
          - task: [email protected]
            displayName: 'Install .NET Core Sdk'
            inputs:
              version: 3.1.101
          - task: [email protected]
            displayName: '.NET Core Restore'
            inputs:
              command: restore 
              nugetConfigPath: NexBase/aspnet-core/NuGet.Config
              projects: |
                NexBase/aspnet-core/Modules/**/src/*.csproj
                NexBase/aspnet-core/src/**/*.csproj
    

    I am still recieving the following errors:

    /home/vsts/work/1/s/NexBase/aspnet-core/src/NexBase.Application.Contracts/NexBase.Application.Contracts.csproj : error NU1101: Unable to find package Volo.Abp.Account.Pro.Admin.Application.Contracts. No packages exist with this id in source(s): NuGetOrg
             /home/vsts/work/1/s/NexBase/aspnet-core/src/NexBase.Domain.Shared/NexBase.Domain.Shared.csproj : error NU1101: Unable to find package Volo.Abp.LeptonTheme.Management.Domain.Shared. No packages exist with this id in source(s): NuGetOrg [/home/vsts/work/1/s/NexBase/aspnet-core/src/NexBase.Application.Contracts/NexBase.Application.Contracts.csproj]
             /home/vsts/work/1/s/NexBase/aspnet-core/src/NexBase.Domain.Shared/NexBase.Domain.Shared.csproj : error NU1101: Unable to find package Volo.Saas.Domain.Shared. No packages exist with this id in source(s): NuGetOrg [/home/vsts/work/1/s/NexBase/aspnet-core/src/NexBase.Application.Contracts/NexBase.Application.Contracts.csproj]
             /home/vsts/work/1/s/NexBase/aspnet-core/src/NexBase.Domain.Shared/NexBase.Domain.Shared.csproj : error NU1101: Unable to find package Volo.Abp.LanguageManagement.Domain.Shared. No packages exist with this id in source(s): NuGetOrg [/home/vsts/work/1/s/NexBase/aspnet-core/src/NexBase.Application.Contracts/NexBase.Application.Contracts.csproj]
             /home/vsts/work/1/s/NexBase/aspnet-core/src/NexBase.Application.Contracts/NexBase.Application.Contracts.csproj : error NU1101: Unable to find package Volo.Abp.Account.Pro.Public.Application.Contracts. No packages exist with this id in source(s): NuGetOrg
             /home/vsts/work/1/s/NexBase/aspnet-core/src/NexBase.Application.Contracts/NexBase.Application.Contracts.csproj : error NU1101: Unable to find package Volo.Abp.LeptonTheme.Management.Application.Contracts. No packages exist with this id in source(s): NuGetOrg
             /home/vsts/work/1/s/NexBase/aspnet-core/src/NexBase.Application.Contracts/NexBase.Application.Contracts.csproj : error NU1101: Unable to find package Volo.Abp.LanguageManagement.Application.Contracts. No packages exist with this id in source(s): NuGetOrg
             /home/vsts/work/1/s/NexBase/aspnet-core/src/NexBase.Application.Contracts/NexBase.Application.Contracts.csproj : error NU1101: Unable to find package Volo.Saas.Host.Application.Contracts. No packages exist with this id in source(s): NuGetOrg
             /home/vsts/work/1/s/NexBase/aspnet-core/src/NexBase.Application.Contracts/NexBase.Application.Contracts.csproj : error NU1101: Unable to find package Volo.Abp.Identity.Pro.Application.Contracts. No packages exist with this id in source(s): NuGetOrg
             /home/vsts/work/1/s/NexBase/aspnet-core/src/NexBase.Application.Contracts/NexBase.Application.Contracts.csproj : error NU1101: Unable to find package Volo.Abp.AuditLogging.Application.Contracts. No packages exist with this id in source(s): NuGetOrg
             /home/vsts/work/1/s/NexBase/aspnet-core/src/NexBase.Application.Contracts/NexBase.Application.Contracts.csproj : error NU1101: Unable to find package Volo.Abp.IdentityServer.Application.Contracts. No packages exist with this id in source(s): NuGetOrg
             /home/vsts/work/1/s/NexBase/aspnet-core/src/NexBase.Application.Contracts/NexBase.Application.Contracts.csproj : error NU1101: Unable to find package Volo.Abp.LeptonTheme.Management.Domain.Shared. No packages exist with this id in source(s): NuGetOrg
             /home/vsts/work/1/s/NexBase/aspnet-core/src/NexBase.Application.Contracts/NexBase.Application.Contracts.csproj : error NU1101: Unable to find package Volo.Saas.Domain.Shared. No packages exist with this id in source(s): NuGetOrg
             /home/vsts/work/1/s/NexBase/aspnet-core/src/NexBase.Application.Contracts/NexBase.Application.Contracts.csproj : error NU1101: Unable to find package Volo.Abp.LanguageManagement.Domain.Shared. No packages exist with this id in source(s): NuGetOrg
    
    

    Am I missing something?

  • 0
    wazbek created

    Got this working by adding this to the inputs of the restore task:

    feedsToUse: config
    
  • 0
    wazbek created

    Hi

    Can you please share your dotnet build step. I am still getting errors on my build step:

    NexBaseDomainSharedModule.cs(7,16): error CS0234: The type or namespace name 'LanguageManagement' does not exist in the namespace 'Volo.Abp' (are you missing an assembly reference?) [/home/vsts/work/1/s/NexBase/aspnet-core/src/NexBase.Domain.Shared/NexBase.Domain.Shared.csproj]
    NexBaseDomainSharedModule.cs(8,16): error CS0234: The type or namespace name 'LeptonTheme' does not exist in the namespace 'Volo.Abp' (are you missing an assembly reference?) [/home/vsts/work/1/s/NexBase/aspnet-core/src/NexBase.Domain.Shared/NexBase.Domain.Shared.csproj]
    NexBaseDomainSharedModule.cs(15,12): error CS0234: The type or namespace name 'Saas' does not exist in the namespace 'Volo' (are you missing an assembly reference?) [/home/vsts/work/1/s/NexBase/aspnet-core/src/NexBase.Domain.Shared/NexBase.Domain.Shared.csproj]
    NexBaseDomainSharedModule.cs(27,16): error CS0246: The type or namespace name 'LanguageManagementDomainSharedModule' could not be found (are you missing a using directive or an assembly reference?) [/home/vsts/work/1/s/NexBase/aspnet-core/src/NexBase.Domain.Shared/NexBase.Domain.Shared.csproj]
    NexBaseDomainSharedModule.cs(28,16): error CS0246: The type or namespace name 'SaasDomainSharedModule' could not be found (are you missing a using directive or an assembly reference?) [/home/vsts/work/1/s/NexBase/aspnet-core/src/NexBase.Domain.Shared/NexBase.Domain.Shared.csproj]
    NexBaseDomainSharedModule.cs(29,16): error CS0246: The type or namespace name 'LeptonThemeManagementDomainSharedModule' could not be found (are you missing a using directive or an assembly reference?) [/home/vsts/work/1/s/NexBase/aspnet-core/src/NexBase.Domain.Shared/NexBase.Domain.Shared.csproj]
        8 Warning(s)
        6 Error(s)