1
00:00:00,170 --> 00:00:03,700
Hey guys in this video we'll take a quick look at package management.

2
00:00:03,710 --> 00:00:09,450
No I would have mentioned before in the earlier times and we're looking at what comes with the project.

3
00:00:09,480 --> 00:00:15,630
But now we get all of these bootstrap files and all of these script files decor and so on.

4
00:00:15,630 --> 00:00:19,560
I would have mentioned that they're not necessarily always at the latest versions.

5
00:00:19,560 --> 00:00:19,830
Right.

6
00:00:19,830 --> 00:00:27,640
Because as they build on it to get version one point one zero dot one and then one two as if it's offensive.

7
00:00:27,870 --> 00:00:33,900
The easiest way or the the the way that you would probably think about it naturally to upgrade these

8
00:00:33,900 --> 00:00:39,270
files would be to go and get the physical files and come back and replace them here in the project and

9
00:00:39,450 --> 00:00:40,230
that would be fine.

10
00:00:40,230 --> 00:00:41,970
That would be understandable.

11
00:00:42,270 --> 00:00:48,460
But then Visual Studio kind of tries to make it easier for you by giving you what they call a new get

12
00:00:48,480 --> 00:00:54,120
package management so if you right click your project or your exec references then you'd see that they

13
00:00:54,120 --> 00:00:55,670
have this thing called managed.

14
00:00:55,710 --> 00:01:03,360
You get packages and when you put that it opens up a nice menu section where it's listing out all the

15
00:01:03,480 --> 00:01:09,480
Installed Packages all of the possible updates and also allowing you to browse.

16
00:01:09,480 --> 00:01:14,730
So there are times when what comes out of the box of Visual Studio might not be adequate for what you

17
00:01:14,730 --> 00:01:15,860
want to do.

18
00:01:15,930 --> 00:01:22,780
And so they have an open source community where they allow people to contribute solutions.

19
00:01:22,860 --> 00:01:28,380
And so you can actually browse all of those solutions right here and you can download and units you

20
00:01:28,380 --> 00:01:35,750
can get adopters for my school database and even bootstrap everything that you might need.

21
00:01:35,760 --> 00:01:37,200
It's somewhere here.

22
00:01:37,220 --> 00:01:43,050
So you can always just search if you know exactly what you want and you can actually just click it and

23
00:01:43,050 --> 00:01:47,400
view more details as to the version and you can select to exactly what version.

24
00:01:47,400 --> 00:01:52,430
So it's a very powerful selection and package management tool.

25
00:01:52,770 --> 00:02:00,030
I'm going to go over to updates because we can see that we have thirty four pending updates so as at

26
00:02:00,030 --> 00:02:03,380
the time of this regarding MVC five was kind of being phased though.

27
00:02:03,390 --> 00:02:09,820
So it's kind of behind but a lot of these things all out of the box at the time were the latest.

28
00:02:09,840 --> 00:02:11,640
No they're not the latest.

29
00:02:11,670 --> 00:02:15,930
So new gates is allowing me to say okay I can update and let's look at bootstrap.

30
00:02:15,990 --> 00:02:23,550
I warned about updating bootstrap because if I did bootstrap right here I'm moving from version 3.0

31
00:02:23,820 --> 00:02:29,670
to Version 4 and there are quite a few changes in the code for bootstrap between 3 and 4.

32
00:02:29,670 --> 00:02:35,220
So a big jump like that would cause me itself to do a lot of regression testing and changes and all

33
00:02:35,220 --> 00:02:35,840
over the place.

34
00:02:35,840 --> 00:02:36,090
Right.

35
00:02:36,090 --> 00:02:42,180
So for the purpose of this course I will not updated to Version 4.0.

36
00:02:42,180 --> 00:02:42,540
All right.

37
00:02:42,930 --> 00:02:48,270
But then as you go along we see that query we've got this at version 1 it's not version three point

38
00:02:48,270 --> 00:02:53,890
four and the other G core of libraries are quite farther ahead than we are right now.

39
00:02:53,940 --> 00:02:56,700
You see that MVC libraries.

40
00:02:56,760 --> 00:03:02,250
So it's not only for JavaScript and see us as files but also deals and deal those are listed on the

41
00:03:02,280 --> 00:03:08,460
references sections all of these things that give it the actual functionality all of those things can

42
00:03:08,460 --> 00:03:11,380
be updated using new gets.

43
00:03:11,400 --> 00:03:16,740
So I'm going to focus on me in the the script files because sometimes when you did the deal those things

44
00:03:16,740 --> 00:03:20,840
just break things stop working off compatibility issues and all sorts of things.

45
00:03:20,850 --> 00:03:23,290
So I'm just going to keep it simple.

46
00:03:23,460 --> 00:03:24,800
And I'm just into updates.

47
00:03:24,810 --> 00:03:27,760
Anything that is javascript.

48
00:03:27,780 --> 00:03:35,030
So here I know that this this is a javascript file all right.

49
00:03:35,040 --> 00:03:42,770
Web Greece it's made for optimizing I'll use that also I'll take Newton Jesus son of a modernizer.

50
00:03:42,930 --> 00:03:50,460
You'll see the query validation and the G query and please note if you're going to upgrade any J Cary

51
00:03:50,490 --> 00:03:52,470
doc file please I'll be at the G.

52
00:03:52,470 --> 00:03:57,410
Query Base File I've run into problems in the past with that thinking that oh I don't need the data

53
00:03:57,440 --> 00:04:00,190
to where but the other things I can update.

54
00:04:00,270 --> 00:04:07,560
So those things can be updated if I'll be a bootstrap then it would be the census file and the script

55
00:04:07,560 --> 00:04:08,670
file associated with it.

56
00:04:08,670 --> 00:04:14,820
But once again I will be moving from and I'll leave everything else as is of course you can.

57
00:04:14,970 --> 00:04:23,160
You can always rule back so if you tried to update these Microsoft dots dependencies or ideals from

58
00:04:23,160 --> 00:04:28,650
version to Verizon and something bricks you can always just take note of what version worked and then

59
00:04:28,650 --> 00:04:34,950
you can just rule box so you can uninstall or you can see what is the version you want in the selected

60
00:04:34,950 --> 00:04:35,420
like that.

61
00:04:35,490 --> 00:04:39,300
And that just click updates and it will install that specific version for you.

62
00:04:39,330 --> 00:04:43,250
So I want the latest one for this one and then just put that back.

63
00:04:43,440 --> 00:04:48,080
And then once you're finished you know picking and choosing and this same procedure applies to when

64
00:04:48,090 --> 00:04:53,250
you're browsing and trying to install you just select the one you want and then you can just be installed.

65
00:04:53,280 --> 00:04:58,350
This would be installed as a so beats someone to go ahead and update these.

66
00:04:59,010 --> 00:05:04,310
So my problem to do in this process to say that oh there is a to make these updates.

67
00:05:04,680 --> 00:05:11,160
And are you sure you want to continue I just click Okay then you accept a license agreements that come

68
00:05:11,160 --> 00:05:11,610
your way

69
00:05:18,320 --> 00:05:18,610
all right.

70
00:05:18,620 --> 00:05:19,370
And we're done.

71
00:05:19,400 --> 00:05:27,020
So you would see that you got a few more ticks because changes had to be made and the new get it engine

72
00:05:27,020 --> 00:05:32,690
issue in that we have fewer updates pending because you know everything else is art and it leads us

73
00:05:32,700 --> 00:05:34,320
so we can just close that window.

74
00:05:34,340 --> 00:05:41,090
What I want to point I'll do also is I will once again read tweaks here and the packages that config

75
00:05:41,090 --> 00:05:46,370
file is actually like tracking all of the packages that's our in our project.

76
00:05:46,640 --> 00:05:51,670
If we take a look in the scripts for that we see that we have some new files.

77
00:05:51,740 --> 00:05:56,900
So when we get a new file because of our source control engine tracking all the changes we get this

78
00:05:56,900 --> 00:06:00,680
plus science so get knows that this is a new file.

79
00:06:00,680 --> 00:06:04,070
It was never there and the neurotic means that these were modified.

80
00:06:04,070 --> 00:06:04,310
Right.

81
00:06:04,310 --> 00:06:11,450
So we got rid of the old files and brought in the new files and we didn't do any updates to our script

82
00:06:11,520 --> 00:06:12,600
to our assistance.

83
00:06:12,650 --> 00:06:14,140
So there are no changes there.

84
00:06:14,180 --> 00:06:19,640
Of course if I submitted bootstrap then you would see signs there for the brand new files.

85
00:06:19,640 --> 00:06:20,010
All right.

86
00:06:20,450 --> 00:06:27,440
So once all of this is done we can just go ahead and control shift and b to do a build and the build

87
00:06:27,440 --> 00:06:28,890
was successful.

88
00:06:28,910 --> 00:06:34,610
I will also just go ahead and check in this school outside of the school and comets.

89
00:06:34,880 --> 00:06:41,060
So once again because we have its own source control no we're tracking every change that we make so

90
00:06:41,060 --> 00:06:45,710
we can just see updated some script files.

91
00:06:45,710 --> 00:06:53,150
And did you the three versions so that should be descriptive enough and then we can assume it's all

92
00:06:53,150 --> 00:06:54,370
and sync.

93
00:06:54,440 --> 00:07:01,280
So once we do with that what it does is commit the changes locally and then it just pushes them to get

94
00:07:01,280 --> 00:07:07,750
hub automatically so that we don't have to get involved with a second step once you come it's all unseen.

95
00:07:08,090 --> 00:07:10,570
And there we go successfully synchronize.

96
00:07:10,700 --> 00:07:17,510
And once again if we just take a look at Toba we just refresh then we'll see we have a comet.

97
00:07:17,510 --> 00:07:17,780
All right.

98
00:07:18,080 --> 00:07:26,220
And by clicking comments we can see all of the changes when they were made and what they entail.

99
00:07:26,220 --> 00:07:29,360
All right so that's where your comments come in handy.

100
00:07:29,360 --> 00:07:33,280
And then if you want that specific version you can just click it and it was so you.

101
00:07:33,450 --> 00:07:34,630
What was done.

102
00:07:34,640 --> 00:07:38,870
Can we just froze the files to get that specific version of files.

103
00:07:39,000 --> 00:07:45,260
So if anything breaks then we can just roll back to before making those you get updates.
