This is just enhancement,
As nopCommerce is waiting for Entity framework core 2.1 to support Lazy loading feature,
Same time upgrade nopCommerce to Asp.Net Core 2.1 and also target all project to .netcore2.1 instead of 4.6.1.
https://blogs.msdn.microsoft.com/webdev/2018/02/02/asp-net-core-2-1-roadmap/
Also, use Microsoft.AspNetCore.App instead of Microsoft.AspNetCore.All
Use Partial Tag Helper in some places
ref: https://github.com/nopSolutions/nopCommerce/issues/2958
EFCore 2.1 has been available on Nuget
https://www.nuget.org/packages/Microsoft.EntityFrameworkCore/
After I upgraded from core 2.0 to 2.1 I got the error:
Cannot consume scoped service 'XXXXX.Models.IAppDbContextRepository' from singleton 'Microsoft.AspNetCore.Authentication.IClaimsTransformation'.
From this line on startup:
services.AddSingleton<IClaimsTransformation, ClaimsTransformer>();
I had to change it to:
services.AddTransient<IClaimsTransformation, ClaimsTransformer>();
Any ideas why did this happened?
Most helpful comment
.Net Core 2.1 released now.
https://blogs.msdn.microsoft.com/webdev/2018/05/30/asp-net-core-2-1-0-now-available/
https://blogs.msdn.microsoft.com/dotnet/2018/05/30/announcing-net-core-2-1/