All right, guys.
So we have our project set up.
Now, remember that for me.
And if you have the same difficulty as I do, you would see this caution mark under the dependencies,
at least at the time of recording.
So you will want to go to the road folder for the solution and you will want to create that that is
open in Explorer.
You will want to create that global dot Jason file.
So you want to go ahead and put that there.
And just so we can review what this file has, I just opened with Visual Studio code so we can see quickly
and this is just a configuration file to set the SDK version, I guess a little back in time because
well, we're the runtime for dot net for sorry for Visual Studio 2022 preview at least on my machine
is not playing nicely with button it Malawi so we just put in that global not JSON file which you should
have from the previous exercise is you can just copy and paste that same file into the solution root
folder and then you can go ahead and do a solution build.
Now after successful build, we will be able to proceed.
Know what I've noticed also?
If you don't have this issue, no problem.
But I have these issues point demo just in case we're sharing that experience.
As I said at the time of this recording, Malawi is fairly still undergoing development, so it still
has a few nuts and bolts loose, for lack of a better expression.
But you may need to restart Visual Studio because you'll see that Windows Machine is the only option
there.
Normally, Malawi is a platform that allows development for Windows, Android, Mac and other operating
systems as you've seen already.
One thing with the Windows option, though, is that your Windows machine needs to be in developer mode.
So this debugging option might give you an error message stating that your machine needs to be in developer
mode, at which point you'll have to make that decision whether you want to turn on developer mode or
not.
Also, I may not have mentioned that you can actually manage your Android devices here through the Android
device manager.
You can manage the different emulators that you use so you can add new emulators or you can use the
one that would have come with it.
I think from the first time that you'd have run it, you had to go through some options and accept certain
problems before you could get to the immediate.
And that's fact.
All right.
And the alternative, however, is that you could actually use the Android subsystem for windows.
So because windows, at least if you're using Windows 11.
So if you're using Windows 11, there's an Android subsystem that may come built into your machine and
you can actually use it.
Unfortunately, I don't have that, so I can't show you that.
But that does lead to a bit more efficiency when you're doing your debugging and development operations.
So all of that being said, let us go ahead and set up some folder structures here.
So I'm going to add a new folder.
This one is going to be for the models.
So I'm going to add the folder structure to to kind of mimic what I expect to put in.
So our models view models and I'm also going to put in one for views, right.
And you're probably wondering, okay, what's of use your view?
Typically, if you're doing the MVC pattern, you would have the model and we have the model here that
represents the data to be displayed.
You have the view which in this case would be our XAML page.
So all of our XAML pages can go inside of views.
And then if you have multiple XAML pages that are kind of related to each other, they can, you know,
can make your folder structure so that you can put in the the related pages together.
I was going to say a decorator for the structure, but you get what I mean.
So I mean, just to have a clean layout of everything in your MIUI app, you can go ahead and put in
those folders and then view models here.
So I did mention MVC model, view controller.
And then for this section we're going to be looking at my VM, which is model view view model.
So a view model in my VM actually would store the it would be like the bridge between the view and the
model.
So the model is the data, the view is what you see.
And in the view model is just pulling strings in between, carrying out commands, doing transformations
and sorting out certain bindings for you.
So like I said, we're going to get into all of that in this section.
But for now, let's just have that folder structure we already put in our global JSON.
And then we can restart Visual Studio and wait until we get the proper debugging functions are options
rather.
And when we come back, we will be going through setting up the NVM, how it works and we'll be creating
a few.
And when we come back, we'll be setting up our data models.