- ABP Framework version: v6.0.2
- UI Type: Angular
- Database System: EF Core (SQL Server, Oracle, MySQL, PostgreSQL, etc..)
- Tiered (for MVC) or Auth Server Separated (for Angular): no
I have a microservice project. I am trying to run CI/CD processes with Bitbucket runner. When the push operation is made to the relevant branch, the runner starts, downloads the project to the server, and there is only the dotnet build command in the yaml file. After a while, the command gives the following error. Could not copy the file "obj\Debug\netstandard2.0\AppPool.AdministrationService.Domain.Shared.dll" But when I try to compile the same project on Powershell or Visual Studio, it compiles perfectly. What could be the reason for the error with Runner?
image: mcr.microsoft.com/dotnet/core/sdk:6.0
pipelines:
branches:
Deploy_Server_Test:
- step:
name: "BUILD DB MIGRATOR"
runs-on:
- self.hosted
- windows
- local
script:
- dotnet restore
- dotnet build
3 Answer(s)
-
0
Hello ,
Please check this answer given by EngincanV https://support.abp.io/qa/questions/2116/310c3140-7424-d7ab-eeea-3a003ed02853.
Thank you.
-
0
Hi, I don't understand. I tried everything. When I compile the project with Visual Studio or Powershell, I can get the build, but when I download the project to the server and try to compile it with Bitbucket Runner, it gives an error.
Could not copy the file "obj\Debug\netstandard2.0\AppPool.AdministrationService.Domain.Shared.dll"
Is it possible to compile your trial project with bitbucket runner?
-
0
hi
Our project is just a net core app. You can build it locally, which means it is no problem.
Is it possible to compile your trial project with bitbucket runner?
You can try following:
- use
dotnet build /graphBuild
to replacedotnet build
command. - build a plain asp net core web app in your runner to ensure the environment is fine.
- use