- ABP Framework version: v8.3.1
- UI Type: Blazor WASM
- Database System: EF Core (PostgreSQL)
- Tiered (for MVC): yes
- Exception message and full stack trace: "Unable to satisfy conflicting requests for 'Volo."
- Steps to reproduce the issue: Create a new solution using CLI referencing packages - it will compile. Switch to local source, and now the same project throws many compile errors about conflicting requests. The same thing happens when downloading source for modules. They compile until the CLI option to use local source is run.
15 Answer(s)
-
0
Hi,
could you share the full steps? thanks.
-
0
That's an incredibly frustrating answer - what's wrong with the information I already provided? Do you need me to explain how to run your CLI? How to use it to create a solution? How to download module source?
-
0
-
0
powershell -Command "Invoke-WebRequest -Uri https://github.com/abpframework/abp/archive/refs/tags/8.3.1.zip -OutFile C:\Temp\AbpTest\abp-8.3.1.zip" powershell -Command "Expand-Archive -Path 'C:\Temp\ABPTest\abp-8.3.1.zip' -DestinationPath 'C:\Temp\ABPTest'" cd /d C:\Temp\ABPTest ren abp-8.3.1 abp abp get-source Volo.Abp.TextTemplateManagement --version 8.3.1 --output-folder Volo.Abp.TextTemplateManagement dotnet build .\Volo.Abp.TextTemplateManagement\Volo.Abp.TextTemplateManagement.sln @REM Successful abp.exe switch-to-local --solution C:\Temp\ABPTest\Volo.Abp.TextTemplateManagement\Volo.Abp.TextTemplateManagement.sln --paths C:\Temp\ABPTest dotnet clean .\Volo.Abp.TextTemplateManagement\Volo.Abp.TextTemplateManagement.sln dotnet build .\Volo.Abp.TextTemplateManagement\Volo.Abp.TextTemplateManagement.sln
-
0
Your steps still work for me:
PS C:\Users\Deawb> Invoke-WebRequest -Uri https://github.com/abpframework/abp/archive/refs/tags/8.3.1.zip -OutFile C:\Temp\AbpTest\abp-8.3.1.zip PS C:\Users\Deawb> You will also need to download the source code for all commercial modules PS C:\Users\Deawb> Expand-Archive -Path 'C:\Temp\ABPTest\abp-8.3.1.zip' -DestinationPath 'C:\Temp\ABPTest' PS C:\Users\Deawb> cd c:\temp\abptest PS C:\temp\abptest> ren abp-8.3.1 abp PS C:\temp\abptest> abp get-source Volo.Abp.TextTemplateManagement --version 8.3.1 --output-folder Volo.Abp.TextTemplateManagement PS C:\temp\abptest> dotnet build .\Volo.Abp.TextTemplateManagement\Volo.Abp.TextTemplateManagement.sln Restore succeeded with 86 warning(s) in 3.6s ............ Build succeeded with 207 warning(s) in 17.3s PS C:\temp\abptest> abp switch-to-local --solution c:\temp\abptest\Volo.Abp.TextTemplateManagement\Volo.Abp.TextTemplateManagement.sln --paths c:\temp\abptest [10:27:17 INF] You are running the second generation of the ABP CLI. If you're interested in the legacy CLI, see https://abp.io/new-cli [10:27:17 INF] Converting projects to local reference. [10:27:17 INF] Converting to local reference: c:\temp\abptest\Volo.Abp.TextTemplateManagement\host\Volo.Abp.TextTemplateManagement.Host.Shared\Volo.Abp.TextTemplateManagement.Host.Shared.csproj [10:27:17 INF] Converting to local reference: c:\temp\abptest\Volo.Abp.TextTemplateManagement\host\Volo.Abp.TextTemplateManagement.Web.Unified\Volo.Abp.TextTemplateManagement.Web.Unified.csproj [10:27:18 INF] Converting to local reference: c:\temp\abptest\Volo.Abp.TextTemplateManagement\src\Volo.Abp.TextTemplateManagement.Application\Volo.Abp.TextTemplateManagement.Application.csproj [10:27:18 INF] Converting to local reference: c:\temp\abptest\Volo.Abp.TextTemplateManagement\src\Volo.Abp.TextTemplateManagement.Application.Contracts\Volo.Abp.TextTemplateManagement.Application.Contracts.csproj [10:27:18 INF] Converting to local reference: c:\temp\abptest\Volo.Abp.TextTemplateManagement\src\Volo.Abp.TextTemplateManagement.Blazor\Volo.Abp.TextTemplateManagement.Blazor.csproj [10:27:18 INF] Converting to local reference: c:\temp\abptest\Volo.Abp.TextTemplateManagement\src\Volo.Abp.TextTemplateManagement.Blazor.Server\Volo.Abp.TextTemplateManagement.Blazor.Server.csproj [10:27:18 INF] Converting to local reference: c:\temp\abptest\Volo.Abp.TextTemplateManagement\src\Volo.Abp.TextTemplateManagement.Blazor.WebAssembly\Volo.Abp.TextTemplateManagement.Blazor.WebAssembly.csproj [10:27:18 INF] Converting to local reference: c:\temp\abptest\Volo.Abp.TextTemplateManagement\src\Volo.Abp.TextTemplateManagement.Domain\Volo.Abp.TextTemplateManagement.Domain.csproj [10:27:18 INF] Converting to local reference: c:\temp\abptest\Volo.Abp.TextTemplateManagement\src\Volo.Abp.TextTemplateManagement.Domain.Shared\Volo.Abp.TextTemplateManagement.Domain.Shared.csproj [10:27:18 INF] Converting to local reference: c:\temp\abptest\Volo.Abp.TextTemplateManagement\src\Volo.Abp.TextTemplateManagement.EntityFrameworkCore\Volo.Abp.TextTemplateManagement.EntityFrameworkCore.csproj [10:27:18 INF] Converting to local reference: c:\temp\abptest\Volo.Abp.TextTemplateManagement\src\Volo.Abp.TextTemplateManagement.HttpApi\Volo.Abp.TextTemplateManagement.HttpApi.csproj [10:27:18 INF] Converting to local reference: c:\temp\abptest\Volo.Abp.TextTemplateManagement\src\Volo.Abp.TextTemplateManagement.HttpApi.Client\Volo.Abp.TextTemplateManagement.HttpApi.Client.csproj [10:27:18 INF] Converting to local reference: c:\temp\abptest\Volo.Abp.TextTemplateManagement\src\Volo.Abp.TextTemplateManagement.Installer\Volo.Abp.TextTemplateManagement.Installer.csproj [10:27:18 INF] Converting to local reference: c:\temp\abptest\Volo.Abp.TextTemplateManagement\src\Volo.Abp.TextTemplateManagement.MongoDB\Volo.Abp.TextTemplateManagement.MongoDB.csproj [10:27:18 INF] Converting to local reference: c:\temp\abptest\Volo.Abp.TextTemplateManagement\src\Volo.Abp.TextTemplateManagement.Web\Volo.Abp.TextTemplateManagement.Web.csproj [10:27:18 INF] Converting to local reference: c:\temp\abptest\Volo.Abp.TextTemplateManagement\test\Volo.Abp.TextTemplateManagement.Application.Tests\Volo.Abp.TextTemplateManagement.Application.Tests.csproj [10:27:18 INF] Converting to local reference: c:\temp\abptest\Volo.Abp.TextTemplateManagement\test\Volo.Abp.TextTemplateManagement.Domain.Tests\Volo.Abp.TextTemplateManagement.Domain.Tests.csproj [10:27:18 INF] Converting to local reference: c:\temp\abptest\Volo.Abp.TextTemplateManagement\test\Volo.Abp.TextTemplateManagement.EntityFrameworkCore.Tests\Volo.Abp.TextTemplateManagement.EntityFrameworkCore.Tests.csproj [10:27:18 INF] Converting to local reference: c:\temp\abptest\Volo.Abp.TextTemplateManagement\test\Volo.Abp.TextTemplateManagement.MongoDB.Tests\Volo.Abp.TextTemplateManagement.MongoDB.Tests.csproj [10:27:18 INF] Converting to local reference: c:\temp\abptest\Volo.Abp.TextTemplateManagement\test\Volo.Abp.TextTemplateManagement.TestBase\Volo.Abp.TextTemplateManagement.TestBase.csproj [10:27:18 INF] Converted 20 projects to local references. PS C:\temp\abptest> dotnet clean .\Volo.Abp.TextTemplateManagement\Volo.Abp.TextTemplateManagement.sln You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy Build succeeded in 4.0s PS C:\temp\abptest> dotnet build .\Volo.Abp.TextTemplateManagement\Volo.Abp.TextTemplateManagement.sln Restore succeeded with 400 warning(s) in 6.9s ..... Build succeeded with 1617 warning(s) in 48.3s
-
0
Do not run this on a machine which has the commercial source available (which is the environment your customers must use). When you use a machine which is configured the same way as your customers, you will see the following:
C:\Temp\ABPTest\Volo.Abp.TextTemplateManagement\host\Volo.Abp.TextTemplateManagement.Web.Unified\Volo.Abp.TextTemplateManagement.Web.Unified.csproj : error NU1106: Unable to satisfy conflicting requests for 'Volo.Abp.Core': Volo.Abp.Core (>= 8.3.1) (via package/Volo.Abp.Commercial.Core 8.3.1) Volo.Abp.Core (>= 8.3.1) (via package/Volo.Abp.Commercial.Core 8.3.1) Volo.Abp.Core (>= 8.3.1) (via package/Volo.Abp.Commercial.Core 8.3.1) Volo.Abp.Core (>= 8.3.1) (via package/Volo.Abp.Commercial.Core 8.3.1) Volo.Abp.Core (>= 8.3.1) (via package/Volo.Abp.Commercial.Core 8.3.1) Volo.Abp.Core (>= 8.3.1) (via package/Volo.Abp.Commercial.Core 8.3.1) externalProject/Volo.Abp.Core (>= 8.3.1) (via project/Volo.Abp.Castle.Core 8.3.1) Volo.Abp.Core (>= 8.3.1) (via package/Volo.Abp.Sms 8.3.1) Volo.Abp.Core (>= 8.3.1) (via package/Volo.Abp.Commercial.Core 8.3.1) Volo.Abp.Core (>= 8.3.1) (via package/Volo.Abp.Sms 8.3.1) Volo.Abp.Core (>= 8.3.1) (via package/Volo.Abp.BlobStoring 8.3.1) Volo.Abp.Core (>= 8.3.1) (via package/Volo.Abp.Commercial.Core 8.3.1) Volo.Abp.Core (>= 8.3.1) (via package/Volo.Abp.Commercial.Core 8.3.1) Volo.Abp.Core (>= 8.3.1) (via package/Volo.Abp.Commercial.Core 8.3.1) Volo.Abp.Core (>= 8.3.1) (via package/Volo.Abp.Commercial.Core 8.3.1) Volo.Abp.Core (>= 8.3.1) (via package/Volo.Abp.Commercial.Core 8.3.1) Volo.Abp.Core (>= 8.3.1) (via package/Volo.Abp.Commercial.Core 8.3.1) externalProject/Volo.Abp.Core (>= 8.3.1) (via project/Volo.Abp.ObjectMapping 8.3.1) Volo.Abp.Core (>= 8.3.1) (via package/Volo.Abp.Commercial.Core 8.3.1) externalProject/Volo.Abp.Core (>= 8.3.1) (via project/Volo.Abp.Security 8.3.1) externalProject/Volo.Abp.Core (>= 8.3.1) (via project/Volo.Abp.ObjectMapping 8.3.1) externalProject/Volo.Abp.Core (>= 8.3.1) (via project/Volo.Abp.ObjectMapping 8.3.1) externalProject/Volo.Abp.Core (>= 8.3.1) (via project/Volo.Abp.Http.Abstractions 8.3.1) externalProject/Volo.Abp.Core (>= 8.3.1) (via project/Volo.Abp.ObjectMapping 8.3.1) externalProject/Volo.Abp.Core (>= 8.3.1) (via project/Volo.Abp.Security 8.3.1) externalProject/Volo.Abp.Core (>= 8.3.1) (via project/Volo.Abp.Guids 8.3.1) externalProject/Volo.Abp.Core (>= 8.3.1) (via project/Volo.Abp.ObjectMapping 8.3.1) externalProject/Volo.Abp.Core (>= 8.3.1) (via project/Volo.Abp.Specifications 8.3.1) externalProject/Volo.Abp.Core (>= 8.3.1) (via project/Volo.Abp.ObjectMapping 8.3.1) externalProject/Volo.Abp.Core (>= 8.3.1) (via project/Volo.Abp.AspNetCore.Abstractions 8.3.1) Volo.Abp.Core (>= 8.3.1) (via package/Volo.Abp.Gdpr.Abstractions 8.3.1) externalProject/Volo.Abp.Core (>= 8.3.1) (via project/Volo.Abp.ObjectMapping 8.3.1) externalProject/Volo.Abp.Core (>= 8.3.1) (via project/Volo.Abp.AspNetCore.Abstractions 8.3.1) Volo.Abp.Core (>= 8.3.1) (via package/Volo.Abp.Gdpr.Abstractions 8.3.1) externalProject/Volo.Abp.Core (>= 8.3.1) (via project/Volo.Abp.VirtualFileSystem 8.3.1) externalProject/Volo.Abp.Core (>= 8.3.1) (via project/Volo.Abp.ObjectMapping 8.3.1) externalProject/Volo.Abp.Core (>= 8.3.1) (via project/Volo.Abp.AspNetCore.Abstractions 8.3.1)
This goes on for nearly 500 lines. It happens everywhere a commercial package is referenced that we cannot get source to.
-
0
Hi,
you can try to remove
Volo.Abp.Commercial.Core
from theVolo.Abp.TextTemplateManagement
-
0
You're missing the point! It appears EVERYWHERE that references Volo.Abp.Commercial.Core - this was just an example.
Are you saying that I don't need ANY references in any project to any of the commercial packages?
-
0
Hi,
yes, it's a part of the commercial source.
Or you can try to add a local nuget source and copy
Volo.Abp.Commercial.Core
package from your nuget cache folder to here. -
0
We have a commercial license. As soon as we replace packages with source code we are getting these errors all throughout our solution. I just picked a single module as an example.
It needs to be fixed.
-
0
Hi,
Sorry, I didn't get it. I tried the exact same steps as you, but I can't reproduce it.
Anyway, I'll have another coworker try your steps.
-
0
As I said, you need to do this on a machine that doesn't have access to the source code for any of the commercial modules.
-
0
As I said, you need to do this on a machine that doesn't have access to the source code for any of the commercial modules.
If a machine can't access any commercial modules(without commercial nuget source), It certainly can't build.
This is not a problem.
you can consider creating a local nuget source and copy
Volo.Abp.Commercial.Core
( all needed packages ) from your nuget cache to the local nuget source.But I recommend you to delete all about
volo.abp.commerical.core
package and code. -
0
That's not what I'm saying. I can access the PACKAGES, but as a customer I do not have access to source for COMMERCIAL. I have access to source for everything else. When I reference all packages it is OK, when I switch to local source I am still referencing the package for commericial (like Volo.Abp.Commercial.Core and a couple others), and that is where I am getting "NU1106: Unable to satisfy conflicting requests for 'Volo.Abp.Core'" This was not a problem in version 7 of ABP and .NET 7, but it IS a problem with ABP 8 and .NET 8 (in this case, I am using ABP 8.3.1)
-
0
HI,
okay, I unserstand. I can sure that we are using the same environment machine
can you please share the projects with me? i'd like to check it. shiwei.liang@volosoft.com