ASP.NET Core: how to create wwwroot / lib on assembly

I have a main ASP.NET application and decided not to associate the wwwroot / lib folder with Bower packages through Git, so I included this folder in the .gitignore file.

But after deleting the wwwroot / lib folder, I realized that this folder with all Bower packages is not automatically created during assembly, for example, in NuGet packages.

How to ensure that Bower packages are automatically created / updated, etc.?

+4
source share
1 answer

The approach to the events of the preliminary assembly of the project.

First, make sure that a gazebo is installed on your computer. Command to install:

npm install -g bower

To verify that the bower installation is installed, run the command below.

npm bower -v

.

CD $(MSBuildProjectDirectory)
bower install

CD $(MSBuildProjectDirectory) bower install , bower.json.

, , bower.json.

Screenshot

+2

Source: https://habr.com/ru/post/1674113/


All Articles