I'm actually totally stuck trying to add build a multilangual website. Since it's the first time, i'm following the tutorial from medium website which look pretty clear (https://medium.com/swlh/step-by-step-tutorial-to-build-multi-cultural-asp-net-core-web-app-3fac9a960c43), sorry for the link but it's only in case someone would need to read it.
In this tutorial, I need to add services.AddRazorPages() in the Configuration method of Startup.cs. It looks like something really easy to do but it throws an error which is "'IServiceCollection' does not contain a definition for 'AddRazorPages'".
I've tried to look for a solution on google but it seems that i'm the first one to have this error (couldn't find any related article).
Is there something i'm missing here with the .AddRazorPages()?
I'm using .NET Core 2.1
Have you placed services.AddRazorPages() in the ConfigureServices or in the Configure method? Because it should be in the ConfigureServices method.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With