>> Hi everyone. I'm going to show you how you can upgrade
your application to the latest.NET In Visual Studio.
You can upgrade any type of application, Asp.NET,
Winforms, WPF Console, Application Class Library.
It doesn't matter what.NET Framework it's targeting right now.
Is it.NET Framework or.NET Core or even.NET five in Visual Studio.
Just in a few clicks,
you can upgrade your app to the latest.NET.
[MUSIC]
>> To do so, first you need to install
Visual Studio extension that is called.NET upgrade assistant.
It is available at marketplace.visualstudio.com.
Once you get this one installed,
when you right-click on
your project file in the Solution Explorer,
you will see an option upgrade.
Upgrades. Here, I see a great assistant.
And if you options for my upgrade,
I can do upgrade in place,
meaning that my original project will be upgraded,
or I can do that side-by-side.
My original project will remain
untouched and a copy of my project will be
created and that copy will be upgraded to the.NET that they chose.
There is another option available for
a web application that is called side-by-side incremental.
In this case, it's going to create a facade and
my original.NET framework application will be behind that facade,
as well as a new.NET core I speed of.NET core
application that targets the framework that they
chose.NET six or.NET seven.
This facade, we'll do some logic
whenever it has some call incoming,
it will analyze is this end point that
is called already implemented in the new app.
It's going to forward the call to the new application.
If not, it's going to forward the call to
the original.NET Framework application.
In this way I can stretch my upgrade for months and month
and mix it with project development and
my project will always be up and working.
The tool we'll show you only those types that
are making that makes the most sense for your specific project.
You might not see all three of them.
If you're doing Web application,
you'll just see side-by-side incremental upgrade.
If you are doing Winforms or WPF,
you'll see in place and side-by-side,
so whichever is the best option that's going to be shown here.
An important class library.
I see all three options.
I'm going to choose the first one.
On the next page,
I need to choose the target framework.NET six,.NET seven.
I will choose.NET seven which is the latest one here.
And I can uncheck any components that they don't want to upgrade.
I want to upgrade them all.
You can see everything is done and one file was upgraded.
That's the field green checkmark and the rest
were remained untouched there already
compatible was the.NET seven.
So nothing was done here,
but you can see that they all Esin.
Now if I right-click look at properties,
my project will be targeting.NET seven.
That easy just in a few clicks,
I upgraded my project from.NET Framework to.NET seven.
Now I want to show you how to upgrade as p.NET application.
I have sba.net MVC app targeting.NET Framework 4.8.
I want to migrate it to.NET seven.
I do same thing,
right-click upgrade and here
I see options side-by-side incremental,
which makes sense for Web applications.
I can choose to create a new project for my.NET seven app,
or if I already started migration I can choose existing project.
In my case, I don't have any projects.
Here. It's the name for my new application,
I will call it.NET seven.
I can choose Project Template, MVC,
or Web API on.NET seven or a.NET six,
let me choose.NET seven.
MVC application targeting.NET seven.
Next, here is a list of all the changes that
will be done and a clicked "Finish'.
I see the tool completed migration, going to click "done".
Here's a summary. What happened?
I got a new app,.NET seven,
that targets.NET seven,
but right now that is just empty app, just a template.
I have my old application that targets.net framework.
There is a sharp reverse proxy as a facade.
Right now, if I'm going to run my application and call it,
all calls will be forwarded to.NET framework
because there's nothing in.NET seven application.
But I'm going to move some themes to.NET seven,
I clicked" Upgrade controller".
I'm going to choose a controller click " Upgrade".
These are all dependencies style,
keep them all checked.
Upgrade selection, and the tool is moving my first controller.
I can see success.
I'm going to go to summary.
Here you can see already that one into point already targets as
P.NET core and the rest 14 still on.NET Framework.
I also can see and point Explorer..
Here on the left side,
you can see all the points of my original application.
On my.NET seven application I
already have one endpoint implemented.
Just like that, I'm going to continue ports in my controllers,
views, models, etc,
and eventually I will have everything in.NET
seven apps so I can get rid of the
original.NET Framework application and just
leave the new app to work fully.
Just like that, very easy inside Visual Studio,
you can upgrade your applications.
Of course, if your project is very complicated, super custom,
there might be some manual steps that you will have to do
in order to get your application fully working on the latest.net.
But the most stuff that could be automated,
we automated for you in Visual Studio.
Please give us feedback if you face any issues of if there's
anything else that you would like the tool to do in Visual Studio.
Top-right corner, click on
report a problem or a suggestive feature,
and let us know what you think with that.
Happy upgrades. Thank you. [MUSIC]