Open Closed

Build Agent on Ubuntu - through Azure DevOps #3562


0
Baytech created
  • ABP Framework version: v5.1.2

  • UI type: Angular

  • DB provider: EF Core

  • Tiered (MVC) or Identity Server Separated (Angular): no

  • Exception message and stack trace: Build FAILED.

     "/home/bryan/agent1/_/68/s/aspnet-core/src/FPM.HttpApi.Host/FPM.HttpApi.Host.csproj" (Publish target) (1) ->
     "/home/bryan/agent1/_/68/s/aspnet-core/src/FPM.Application/FPM.Application.csproj" (default target) (2:2) ->
     "/home/bryan/agent1/_/68/s/aspnet-core/src/FPM.Application.Contracts/FPM.Application.Contracts.csproj" (default target) (5:3) ->
     "/home/bryan/agent1/_/68/s/aspnet-core/src/FPM.Domain.Shared/FPM.Domain.Shared.csproj" (default target) (8:6) ->
     (ResolveAssemblyReferences target) ->
       /usr/share/dotnet/sdk/6.0.302/Microsoft.Common.CurrentVersion.targets(2302,5): warning MSB3106: Assembly strong name "/home/bryan/.nuget/packages/volo.abp.identity.pro.domain.shared/5.1.2/lib/netstandard2.0/Volo.Abp.Identity.Pro.Domain.Shared.dll" is either a path which could not be found or it is a full assembly name which is badly formed. If it is a full assembly name it may contain characters that need to be escaped with backslash(\). Those characters are Equals(=), Comma(,), Quote("), Apostrophe('), Backslash(\). [/home/bryan/agent1/_/68/s/aspnet-core/src/FPM.Domain.Shared/FPM.Domain.Shared.csproj]
       /usr/share/dotnet/sdk/6.0.302/Microsoft.Common.CurrentVersion.targets(2302,5): warning MSB3106: Assembly strong name "/home/bryan/.nuget/packages/volo.abp.languagemanagement.domain.shared/5.1.2/lib/netstandard2.0/Volo.Abp.LanguageManagement.Domain.Shared.dll" is either a path which could not be found or it is a full assembly name which is badly formed. If it is a full assembly name it may contain characters that need to be escaped with backslash(\). Those characters are Equals(=), Comma(,), Quote("), Apostrophe('), Backslash(\). [/home/bryan/agent1/_/68/s/aspnet-core/src/FPM.Domain.Shared/FPM.Domain.Shared.csproj]
       /usr/share/dotnet/sdk/6.0.302/Microsoft.Common.CurrentVersion.targets(2302,5): warning MSB3106: Assembly strong name "/home/bryan/.nuget/packages/volo.abp.leptontheme.management.domain.shared/5.1.2/lib/netstandard2.0/Volo.Abp.LeptonTheme.Management.Domain.Shared.dll" is either a path which could not be found or it is a full assembly name which is badly formed. If it is a full assembly name it may contain characters that need to be escaped with backslash(\). Those characters are Equals(=), Comma(,), Quote("), Apostrophe('), Backslash(\). [/home/bryan/agent1/_/68/s/aspnet-core/src/FPM.Domain.Shared/FPM.Domain.Shared.csproj]
       /usr/share/dotnet/sdk/6.0.302/Microsoft.Common.CurrentVersion.targets(2302,5): warning MSB3106: Assembly strong name "/home/bryan/.nuget/packages/volo.abp.texttemplatemanagement.domain.shared/5.1.2/lib/netstandard2.0/Volo.Abp.TextTemplateManagement.Domain.Shared.dll" is either a path which could not be found or it is a full assembly name which is badly formed. If it is a full assembly name it may contain characters that need to be escaped with backslash(\). Those characters are Equals(=), Comma(,), Quote("), Apostrophe('), Backslash(\). [/home/bryan/agent1/_/68/s/aspnet-core/src/FPM.Domain.Shared/FPM.Domain.Shared.csproj]
       /usr/share/dotnet/sdk/6.0.302/Microsoft.Common.CurrentVersion.targets(2302,5): warning MSB3106: Assembly strong name "/home/bryan/.nuget/packages/volo.payment.domain.shared/5.1.2/lib/netstandard2.0/Volo.Payment.Domain.Shared.dll" is either a path which could not be found or it is a full assembly name which is badly formed. If it is a full assembly name it may contain characters that need to be escaped with backslash(\). Those characters are Equals(=), Comma(,), Quote("), Apostrophe('), Backslash(\). [/home/bryan/agent1/_/68/s/aspnet-core/src/FPM.Domain.Shared/FPM.Domain.Shared.csproj]
       /usr/share/dotnet/sdk/6.0.302/Microsoft.Common.CurrentVersion.targets(2302,5): warning MSB3106: Assembly strong name "/home/bryan/.nuget/packages/volo.saas.domain.shared/5.1.2/lib/netstandard2.0/Volo.Saas.Domain.Shared.dll" is either a path which could not be found or it is a full assembly name which is badly formed. If it is a full assembly name it may contain characters that need to be escaped with backslash(\). Those characters are Equals(=), Comma(,), Quote("), Apostrophe('), Backslash(\). [/home/bryan/agent1/_/68/s/aspnet-core/src/FPM.Domain.Shared/FPM.Domain.Shared.csproj]
    
    
     "/home/bryan/agent1/_/68/s/aspnet-core/src/FPM.HttpApi.Host/FPM.HttpApi.Host.csproj" (Publish target) (1) ->
     "/home/bryan/agent1/_/68/s/aspnet-core/src/FPM.Application/FPM.Application.csproj" (default target) (2:2) ->
     "/home/bryan/agent1/_/68/s/aspnet-core/src/FPM.Application.Contracts/FPM.Application.Contracts.csproj" (default target) (5:3) ->
     "/home/bryan/agent1/_/68/s/aspnet-core/src/FPM.Domain.Shared/FPM.Domain.Shared.csproj" (default target) (8:6) ->
     (CoreCompile target) ->
       /home/bryan/agent1/_/68/s/aspnet-core/src/FPM.Domain.Shared/FPMDomainSharedModule.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/bryan/agent1/_/68/s/aspnet-core/src/FPM.Domain.Shared/FPM.Domain.Shared.csproj]
       /home/bryan/agent1/_/68/s/aspnet-core/src/FPM.Domain.Shared/FPMDomainSharedModule.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/bryan/agent1/_/68/s/aspnet-core/src/FPM.Domain.Shared/FPM.Domain.Shared.csproj]
       /home/bryan/agent1/_/68/s/aspnet-core/src/FPM.Domain.Shared/FPMDomainSharedModule.cs(15,16): error CS0234: The type or namespace name 'TextTemplateManagement' does not exist in the namespace 'Volo.Abp' (are you missing an assembly reference?) [/home/bryan/agent1/_/68/s/aspnet-core/src/FPM.Domain.Shared/FPM.Domain.Shared.csproj]
       /home/bryan/agent1/_/68/s/aspnet-core/src/FPM.Domain.Shared/FPMDomainSharedModule.cs(17,12): error CS0234: The type or namespace name 'Saas' does not exist in the namespace 'Volo' (are you missing an assembly reference?) [/home/bryan/agent1/_/68/s/aspnet-core/src/FPM.Domain.Shared/FPM.Domain.Shared.csproj]
       /home/bryan/agent1/_/68/s/aspnet-core/src/FPM.Domain.Shared/FPMDomainSharedModule.cs(27,12): error CS0246: The type or namespace name 'AbpIdentityProDomainSharedModule' could not be found (are you missing a using directive or an assembly reference?) [/home/bryan/agent1/_/68/s/aspnet-core/src/FPM.Domain.Shared/FPM.Domain.Shared.csproj]
       /home/bryan/agent1/_/68/s/aspnet-core/src/FPM.Domain.Shared/FPMDomainSharedModule.cs(31,12): error CS0246: The type or namespace name 'LanguageManagementDomainSharedModule' could not be found (are you missing a using directive or an assembly reference?) [/home/bryan/agent1/_/68/s/aspnet-core/src/FPM.Domain.Shared/FPM.Domain.Shared.csproj]
       /home/bryan/agent1/_/68/s/aspnet-core/src/FPM.Domain.Shared/FPMDomainSharedModule.cs(32,12): error CS0246: The type or namespace name 'SaasDomainSharedModule' could not be found (are you missing a using directive or an assembly reference?) [/home/bryan/agent1/_/68/s/aspnet-core/src/FPM.Domain.Shared/FPM.Domain.Shared.csproj]
       /home/bryan/agent1/_/68/s/aspnet-core/src/FPM.Domain.Shared/FPMDomainSharedModule.cs(33,12): error CS0246: The type or namespace name 'TextTemplateManagementDomainSharedModule' could not be found (are you missing a using directive or an assembly reference?) [/home/bryan/agent1/_/68/s/aspnet-core/src/FPM.Domain.Shared/FPM.Domain.Shared.csproj]
       /home/bryan/agent1/_/68/s/aspnet-core/src/FPM.Domain.Shared/FPMDomainSharedModule.cs(34,12): error CS0246: The type or namespace name 'LeptonThemeManagementDomainSharedModule' could not be found (are you missing a using directive or an assembly reference?) [/home/bryan/agent1/_/68/s/aspnet-core/src/FPM.Domain.Shared/FPM.Domain.Shared.csproj]
    
  • Steps to reproduce the issue:"

  • Build normally on your windows machine.

  • Then checkin and run in Azure Devops on a build agent that is on Ubuntu

Relevant Commands when building

dotnet restore --no-cache -s https://api.nuget.org/v3/index.json -s https://www.myget.org/F/blazorise/api/v3/index.json -s https://nuget.abp.io/xxxxxx/v3/index.json dotnet publish --no-restore -c Release -o $(build.artifactstagingdirectory)\build\release

Fails

What we are seeing is the packages are not being stored via dotnet restore correctly on linux.

This is the name of the file where as is should be in the lib -> netstandard2.0 folder. Not a filename 'lib\netstandard2.0\Volo.Abp.Identity.Pro.Domain.Shared.dll'

This might be a problem with how the packages are on ABP's server?

should look like this

Has anyone tried compiling this on ubuntu?


3 Answer(s)
  • 0
    maliming created
    Support Team

    hi

    We have not get similar errors. nuget packages is created via dotnet pack command which is standard.

  • 0
    Baytech created

    We resolved this. It was an issues with 5.1.2, we just moved to 5.1.3

  • 0
    maliming created
    Support Team

    👍👍👍