You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Changing MVC application compatibility version to 2.2 SetCompatibilityVersion(CompatibilityVersion.Version_2_2);
causes following error:
InvalidOperationException: Cannot use 'VirtoCommerce.Storefront.Routing.SlugRoute' with Endpoint Routing.
Microsoft.AspNetCore.Builder.MvcApplicationBuilderExtensions.UseMvc(IApplicationBuilder app, Action configureRoutes)
InvalidOperationException: Cannot use 'VirtoCommerce.Storefront.Routing.SlugRoute' with Endpoint Routing.
Microsoft.AspNetCore.Builder.MvcApplicationBuilderExtensions.UseMvc(IApplicationBuilder app, Action configureRoutes)
VirtoCommerce.Storefront.Startup.Configure(IApplicationBuilder app, IHostingEnvironment env) in Startup.cs
…
Current PR fixes the problem, so it could be merged.
But indeed we need to add Middleware with LinkGenerator like in link above to implement MapSlugRoute functionality to switch to 2.2 routing system.
Changing MVC application compatibility version to 2.2
SetCompatibilityVersion(CompatibilityVersion.Version_2_2);
causes following error:
InvalidOperationException: Cannot use 'VirtoCommerce.Storefront.Routing.SlugRoute' with Endpoint Routing.
Microsoft.AspNetCore.Builder.MvcApplicationBuilderExtensions.UseMvc(IApplicationBuilder app, Action configureRoutes)
InvalidOperationException: Cannot use 'VirtoCommerce.Storefront.Routing.SlugRoute' with Endpoint Routing.
Microsoft.AspNetCore.Builder.MvcApplicationBuilderExtensions.UseMvc(IApplicationBuilder app, Action configureRoutes)
VirtoCommerce.Storefront.Startup.Configure(IApplicationBuilder app, IHostingEnvironment env) in Startup.cs
…
Technical details:
kobake/AspNetCore.RouteAnalyzer#19
Need to remove specific ASP.NET.Core versions from csproj files.
The text was updated successfully, but these errors were encountered: