Migrating to .NET Core 3 | ASP.NET Core 2.2 & 3 REST API Tutorial 16

preview_player
Показать описание

Hello everybody I'm Nick and today I show how easy and simple it is to migrate your ASP.NET Core 2, 2.1 and 2.2 APIs to ASP.NET Core 3. We will see what changed and how we can simply fix any migration issues without having to deal with complex problems and endless debugging.

Don't forget to comment, like and subscribe :)

Social media:
Рекомендации по теме
Комментарии
Автор

Well done. I like the way you present the material. Quite helpful in gathering my notes for an upcoming 2.2 to 3.1 conversion project. The integration test notes were very interesting. Thanks

NomadicBrian
Автор

Great series Nick and it awesome to see you included the bits about JWT, Integration Testing and Migrating to .NET Core 3.0. Keep up the great work and keep coding!

rodmcbride
Автор

Absolutely amazing videos. Please continue in this deep netcore v3 knowledge transfer

Автор

Great tutorial, but i getting error in PostsControllerTests file at every word "Should", for excample and description of error is 'HttpStatusCode' does not contain a definition for 'Should' and no accessible extension method 'Should' accepting a first argument of type 'HttpStatusCode' could be found (are you missing a using directive or an assembly reference?) what should i do?

ishaqsalamdwicahyo
Автор

Tested still works in 3.1
BUT as of today (2020-01-16) with 3.1.1 updates, suddenly there is a runtime error "Could not load file or assembly 'Microsoft.AspNetCore.Razor.Runtime, Version=3.1.1.0".
And Razor.Runtime v3.1.1 doesn't even exist.

ianneko
Автор

Hi Nick,

Thanks for videos.
I upgraded my project from version 2.2 to version 3.0. I keep the installer files like you in separate classes.
But when I write the code = false" to the "MVCInstaller" class, "app.UseMvc ()" in startup.cs
code is running, but the warning continues to appear. But when I write the code into "startup.cs" instead of the "MVCInstaller" class
warning I'm not getting an error. I wonder why ?

qnill
Автор

The AddEntityFrameWorkStores Method on the IdentityBuilder does not exist for me, do you know how to fix that? or what it's been replaced with. I cant find anything online
EDIT: I found it in the package For anyone with the same issue :)

AntoNosu
Автор

I am getting error Could not load type from assembly when migrating from 2.1 to 3.0. Could you please help ?

loveandladles
Автор

Im getting the following error message
TypeError: Failed to execute 'fetch' on 'Window'

once I add
=
on the Post controller .. so what is it mean and how can I solve it?
Thank u in advance :)

maghameghomaghamegho
Автор

Hej Nick. First of all, great series!
When running the tests i get an with the description:

No MediaTypeFormatter is available to read an object of type 'AuthSuccessResponse' from content with media type 'text/plain'

It complains about the method called AuthenticateAsync and more specifically this line:

var registrationResponse = await

Any suggestions how to fix this? I have tried downloading your project from github, but i get the same error.

michaelm
Автор

Thank you for your efforts on creating these videos.
Is there a way to handle authorization in dotnet core 3? Can you create a video for this? I know there is role and policies based authorizations but I don't know exactly how to integrated them withing API?

mihaimyh
Автор

Great video, very helpful. With dotnet Core 3.0 officially out, and dependency to NewtonsoftJson removed, what changes should be done to Swagger Examples? The latest still has NewtonsoftJson dependency, and for me the Examples don't show in CamelCase anymore, even though the scheme has them right, and the response comes correctly.

ksutine
Автор

I just realized after I migrated the project I couldn't connect to my api from other device in the network.
If i migrate it back it works again.
What is causing this problem? Can you help me?

patrikfajnar
Автор

Hello, Excellent video, one question: how do you do to have that theme in the visual studio IDE? thanks

CarlosHerreraJugovie
Автор

When upgrading to core 3 preview 8, I had issues when the Integration tests gave nullreference exceptions on the FindByEmailAsync method of the UserManager when it was used in the InMemory mode.


After some research I came to this article, explaining that the issue was present in preview 6 and was still not fixed in preview 8. However, it is fixed in preview 9 nightly builds.


Here is information on how to configure nuget to use the nightly builds:


Enjoy!

ketelsb
visit shbcf.ru