First, create the project
1, how to create a project, refer to the previous article
Second, the package introduction
1, Net core of the package sub-front and back end of the two, the back end with NuGet, the front end with Bower.
2. Unlike NET, when the net core references a NuGet package, the front-end file is not introduced and only the DLL is introduced, even if the package contains a front-end file.
3, CSS, JS components, through the introduction of bower.
Third, NuGet package reference
1, the project was created, has been introduced by default Aspnetcore.all package, expand to see all components.
2. Click: Manage NuGet Packages with dependencies and go to the admin interface.
3. View: Can view all, installed, new version of the package
4. Installation: Take MySQL as an example, select Package, select version, install, accept license.
5. View: After the installation is complete, review the installation package results.
Iv. Bower Package Reference
1, add bower Two configuration files, the content is below. (Here's a question: After I update to the latest version, I can't add it through the new item, which was previously possible.) We'll find a way to add that.
2, after adding the configuration file, the project right-click Management Bower Package, enter the management interface.
3. Select the components to install, select the version, install.
4. After installation, check the installation results.
Bower.json File Contents
{ "name": "ASP.", " private": True, "dependencies": { }}
. bowerrc File Contents
{ "directory": "Wwwroot/lib"}
(iii) NET core Project Package Management