Starts in:
0 DAY
17 HRS
30 MIN
6 SEC
Starts in:
0 D
17 H
30 M
6 S
Open Closed

Abp Pro modules download on Build Server #12


User avatar
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)
  • User Avatar
    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

  • User Avatar
    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>
    
  • User Avatar
    0
    AlainLeicht created

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

  • User Avatar
    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.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Great to hear that :)

  • User Avatar
    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: DotNetCoreInstaller@0
            displayName: 'Install .NET Core Sdk'
            inputs:
              version: 3.1.101
          - task: DotNetCoreCLI@2
            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?

  • User Avatar
    0
    wazbek created

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

    feedsToUse: config
    
  • User Avatar
    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)
    
    
Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06