Description: We are encountering significant compilation issues while trying to integrate ICurrentTenant into our ASP.NET Zero-based project. The problem arises due to conflicts between extension methods provided by the Volo.Abp and legacy Abp packages. Below are the details: Project Details: Project Type: ASP.NET Zero (based on ABP Framework) ASP.NET Zero Version: 5.0.0 ABP Framework Version: 9.2.2 Target Framework: .NET 8.0 Relevant Package: Volo.Abp.MultiTenancy Problem: After installing Volo.Abp.MultiTenancy to use the ICurrentTenant feature, we encounter the following error during compilation: swiftCopy codeThe call is ambiguous between the following methods or properties: 'System.Linq.AbpQueryableExtensions.WhereIf<T>(System.Linq.IQueryable<T>, bool, System.Linq.Expressions.Expression<System.Func<T, bool>>)' and 'Abp.Linq.Extensions.QueryableExtensions.WhereIf<T>(System.Linq.IQueryable<T>, bool, System.Linq.Expressions.Expression<System.Func<T, bool>>)' This error indicates a conflict between the WhereIf extension methods provided by: System.Linq.AbpQueryableExtensions (from Volo.Abp) Abp.Linq.Extensions.QueryableExtensions (from older Abp packages)
1 Answer(s)
-
0
Hi
There are reference differences between ASP.NET Boilerplate packages and Volo.Abp. Here we recommend that you use Boilerplate packages on the ASP.NET Zero side. Here, if you want, you can use the package you want to use by specifying an alias in the relevant places. If you want to use Volo.Abp, you can remove the package related to Abp, but you need to fix the references due to dependency.