- ABP Framework version: 6.0.0-rc4
- UI type: Blazor WASM
- DB provider: SQL
-
- Tiered (MVC) or Identity Server Separated (Angular): no
It seems ABP Suite 6.0 rc4 (and at least RC3 as well) are locking some files after generation, which leads to error messages when trying to build and not all of them are obvious that it is ABP Suite that is the reason for it, while some contain that information if you looks closely, like "XXXXX Exceeded retry count of 10. Failed. The file is locked by: "Volo.Abp.Suite (36088)"
Killing/restarting the ABP Suite process makes the error go away so it is no doubt about what is causing this, so as long as you know why this is, you can easily work around the problem.
8 Answer(s)
-
0
Hi,
Could you share the steps to reproduce? thanks.
-
0
Hi,
Could you share the steps to reproduce? thanks.
Hi,
Basically just create a new solution in ABP Suite (Blazor WASM with MAUI mobile in our case), let it complete, then open the solution in VS2022 (both Preview and not Preview) and then try to build it there. You will get a lot of build errors because files are in use. Kill ABP Suite and rebuild and it all works. We have seen this multiple times when we have done some trial and error for other reasons and also with RC3. Maybe RC2 as well but don't remember.
Edit:
No errors from ABP Suite either, and the generated code seems to work fine, when files are not locked anymore.
-
0
Hi,
When you create a new project, the ABP suite will build the project, try to restore libs, and create initial migration files. so yes, it will lock the file and take a while(not long)
You need to wait until these steps are finished, then you can open the solution in VS2022 and do anything.
-
0
Hi,
When you create a new project, the ABP suite will build the project, try to restore libs, and create initial migration files. so yes, it will lock the file and take a while(not long)
You need to wait until these steps are finished, then you can open the solution in VS2022 and do anything.
Yes I know, but in this case that never seems to happen. Have not experienced similar problems with previous versions of ABP Suite before version 6 RC3/4,
-
0
Hi,
Ok, I will try to reproduce the problem.
-
0
This is the last output from ABP Suite you get
Building....: (1/1)M:\Projects\ASP.NET\ABP\src\TEST\aspnet-core\src\TEST.Blazor\TEST.Blazor.csproj Executing...: dotnet build M:\Projects\ASP.NET\ABP\src\TEST\aspnet-core\src\TEST.Blazor\TEST.Blazor.csproj MSBuild version 17.3.0+92e077650 for .NET Determining projects to restore... Restored M:\Projects\ASP.NET\ABP\src\TEST\aspnet-core\src\TEST.Application.Contracts\TEST.Application.Contracts.csproj (in 1,55 sec). Restored M:\Projects\ASP.NET\ABP\src\TEST\aspnet-core\src\TEST.HttpApi.Client\TEST.HttpApi.Client.csproj (in 2,1 sec). Restored M:\Projects\ASP.NET\ABP\src\TEST\aspnet-core\src\TEST.Blazor\TEST.Blazor.csproj (in 7,44 sec). 1 of 4 projects are up-to-date for restore. TEST.Domain.Shared -> M:\Projects\ASP.NET\ABP\src\TEST\aspnet-core\src\TEST.Domain.Shared\bin\Debug\netstandard2.0\TEST.Domain.Shared.dll TEST.Application.Contracts -> M:\Projects\ASP.NET\ABP\src\TEST\aspnet-core\src\TEST.Application.Contracts\bin\Debug\netstandard2.0\TEST.Application.Contracts.dll TEST.HttpApi.Client -> M:\Projects\ASP.NET\ABP\src\TEST\aspnet-core\src\TEST.HttpApi.Client\bin\Debug\netstandard2.0\TEST.HttpApi.Client.dll TEST.Blazor -> M:\Projects\ASP.NET\ABP\src\TEST\aspnet-core\src\TEST.Blazor\bin\Debug\net6.0\TEST.Blazor.dll TEST.Blazor (Blazor output) -> M:\Projects\ASP.NET\ABP\src\TEST\aspnet-core\src\TEST.Blazor\bin\Debug\net6.0\wwwroot
Build succeeded. 0 Warning(s) 0 Error(s)
Time Elapsed 00:00:13.07
-
2
Hi,
I can reproduce the problem and will create an internal issue to fix it, BTW your ticket was refunded.
-
0
Hi,
I can reproduce the problem and will create an internal issue to fix it, BTW your ticket was refunded.
Thanks.