Make sure you have added the DotNetCliToolReference in your WebApi project. I'm assuming VS2017 csproj file.
<ItemGroup>
<DotNetCliToolReference Include="Microsoft.EntityFrameworkCore.Tools.DotNet" Version="1.0.0" />
<DotNetCliToolReference Include="BundlerMinifier.Core" Version="2.2.281" />
</ItemGroup>
The second entry in the code above.
Method 01
Find your .csproj file and right_click > Edit or right click on you project go to 'Edit projectnam.csproj'
Then comment or remove
<Target Name="PrepublishScript" BeforeTargets="PrepareForPublish">
<Exec Command="bower install" />
<Exec Command="dotnet bundle" />
</Target>
Method 02
You need install NodeJS globally. then run
npm install -g bower
and
npm install -g gulp
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.