Hello.
I am tring to setup my pipeline. I am using the "dotnet build" syntax in my yml file. Some project are correctly building. But some of are doesnt. For example; I can build easly these project correctly;
dotnet build services/administration/src/HitFrame.AdministrationService.Domain.Shared/HitFrame.AdministrationService.Domain.Shared.csproj dotnet build services/administration/src/HitFrame.AdministrationService.Domain/HitFrame.AdministrationService.Domain.csproj dotnet build services/administration/src/HitFrame.AdministrationService.Application.Contracts/HitFrame.AdministrationService.Application.Contracts.csproj dotnet build services/administration/src/HitFrame.AdministrationService.Application/HitFrame.AdministrationService.Application.csproj dotnet build services/administration/src/HitFrame.AdministrationService.HttpApi/HitFrame.AdministrationService.HttpApi.csproj dotnet build services/administration/src/HitFrame.AdministrationService.EntityFrameworkCore/HitFrame.AdministrationService.EntityFrameworkCore.csproj
But when I try the build the HttpApi.Host project as you can see the below;
dotnet build services/administration/src/HitFrame.AdministrationService.HttpApi.Host/HitFrame.AdministrationService.HttpApi.Host.csproj
this error shows up;
/usr/share/dotnet/sdk/6.0.413/Microsoft.Common.CurrentVersion.targets(2066,5): warning : The referenced project '../../../../shared/HitFrame.Shared.SapB1/HitFrame.Shared.SapB1.csproj' does not exist. [/opt/atlassian/pipelines/agent/build/services/hitMobile/src/HitFrame.HitMobileService.Application.Contracts/HitFrame.HitMobileService.Application.Contracts.csproj]
AdministrationService.HttpApi.Host projects references are like this; <ProjectReference Include="........\shared\HitFrame.Shared.Hosting.AspNetCore\HitFrame.Shared.Hosting.AspNetCore.csproj" /> <ProjectReference Include="........\shared\HitFrame.Shared.Localization\HitFrame.Shared.Localization.csproj" /> <ProjectReference Include="........\shared\HitFrame.Shared.Hosting.Microservices\HitFrame.Shared.Hosting.Microservices.csproj" /> <ProjectReference Include="......\saas\src\HitFrame.SaasService.Application.Contracts\HitFrame.SaasService.Application.Contracts.csproj" /> <ProjectReference Include="......\identity\src\HitFrame.IdentityService.Application.Contracts\HitFrame.IdentityService.Application.Contracts.csproj" /> <ProjectReference Include="......\hitEcm\src\HitFrame.HitEcmService.Application.Contracts\HitFrame.HitEcmService.Application.Contracts.csproj" /> <ProjectReference Include="......\hitmobile\src\HitFrame.HitMobileService.Application.Contracts\HitFrame.HitMobileService.Application.Contracts.csproj"/>
Last reference can not be find by system I guess. I tried to build the HitFrame.HitMobileService.Application.Contracts.csproj and guess what? I had error. The error is like this; Skipping project "/opt/atlassian/pipelines/agent/build/shared/HitFrame.Shared.SapB1/HitFrame.Shared.SapB1.csproj" because it was not found. ...... ...... ...... ...... ...... /usr/share/dotnet/sdk/6.0.413/Microsoft.Common.CurrentVersion.targets(2066,5): warning : The referenced project '../../../../shared/HitFrame.Shared.SapB1/HitFrame.Shared.SapB1.csproj' does not exist. [/opt/atlassian/pipelines/agent/build/services/hitMobile/src/HitFrame.HitMobileService.Application.Contracts/HitFrame.HitMobileService.Application.Contracts.csproj]
But I can build the HitFrame.Shared.SapB1.csproj on its own. I think my Shared.B1 project can not be referenced by pipline foldering system. By the way my project running correctly. I am using the SharedB1 project almost every important touch.
How can I build my projects referencing the SharedB1 project? Whitout fixing this error, my pipeline are meaningless.
Good coding....
- ABP Framework version: v6.0.2
- UI Type: Angular
- **Database System: EF Core (SQL Server PostgreSQL
- **Tiered (for MVC) or Auth Server Separated (for Angular): yes
11 Answer(s)
-
0
hi
You can try graphbuild, The graphBuild ensures that referenced projects are built after the projects they depend on.
dotnet build /graphbuild
-
0
Hi maliming. Thank you for responding so fast.
I tried to dotnet build MyWebApp.csproj --graph. But result is the same.
-
0
hi
Can you try to build the sln instead of csproj?
run this command on the folder in which the xx.sln file exists.
dotnet build /graphbuild
-
0
Hi again.
dotnet build /graphbuild services/administration/HitFrame.AdministrationService.sln
The error message is the same as before;
/opt/atlassian/pipelines/agent/build/shared/HitFrame.Shared.SapB1/HitFrame.Shared.SapB1.csproj : error MSB4025: The project file could not be loaded. Could not find a part of the path '/opt/atlassian/pipelines/agent/build/shared/HitFrame.Shared.SapB1/HitFrame.Shared.SapB1.csproj'.
-
0
hi
Can you share username & password so I can check your pipeline online?
liming.ma@volosoft.com
-
0
Hello.
I shared the informations in e-mail.
-
0
hi
I will check your project asap.
-
0
hi
This seems to be a Case-sensitive problem.
hitecm
vshitEcm
😅The referenced project '../../../../services/hitecm/src/HitFrame.HitEcmService.EntityFrameworkCore/HitFrame.HitEcmService.EntityFrameworkCore.csproj' does not exist. /opt/atlassian/pipelines/agent/build/services/hitEcm/src/HitFrame.HitEcmService.EntityFrameworkCore/HitFrame.HitEcmService.EntityFrameworkCore.csproj /opt/atlassian/pipelines/agent/build/services/hitMobile/src/HitFrame.HitMobileService.EntityFrameworkCore/EntityFrameworkCore/HitMobileServiceEntityFrameworkCoreModule.cs
-
0
Hello again.
Thanks for remember. Actually this is not main problem but we fixed too.
The main error is; /usr/share/dotnet/sdk/6.0.414/Microsoft.Common.CurrentVersion.targets(2066,5): warning : The referenced project '../../../../shared/HitFrame.Shared.SapB1/HitFrame.Shared.SapB1.csproj' does not exist. [/opt/atlassian/pipelines/agent/build/services/hitMobile/src/HitFrame.HitMobileService.Application.Contracts/HitFrame.HitMobileService.Application.Contracts.csproj]
And my project references are like this temGroup> <PackageReference Include="Volo.Abp.Ddd.Application.Contracts" Version="6.0.2" /> <PackageReference Include="Volo.Abp.Authorization" Version="6.0.2" /> <ProjectReference Include="........\services\hitEcm\src\HitFrame.HitEcmService.Application.Contracts\HitFrame.HitEcmService.Application.Contracts.csproj" /> <ProjectReference Include="........\shared\HitFrame.Shared.SapB1\HitFrame.Shared.SapB1.csproj" /> <ProjectReference Include="..\HitFrame.HitMobileService.Domain.Shared\HitFrame.HitMobileService.Domain.Shared.csproj" />
I shared my pipeline and yaml file url as e-mail.
-
0
I suggest you use Windows as a build server to troubleshoot whether it is a problem of Linux environment.
-
0
Hello.
I solved. Changed the slotion name and fixed.HitFrame.Shared.SapB1 to TestSharedB1. Somehow fixed. Thanks for answering!