ASP.NET 5 has a folder named Dependencies->Bower which the default Web template contains things like bootstrap, hammer.js, and jquery. These dependencies are copied to a lib folder according to gulpfile.js.
ASP.NET 5有一个名为Dependencies-> Bower的文件夹,默认Web模板包含bootstrap,hammer.js和jquery等内容。根据gulpfile.js将这些依赖项复制到lib文件夹。
var paths = {
bower: "./bower_components/",
lib: "./" + project.webroot + "/lib/"
};
For some reason my site is missing all the styling and client behavior (carousel) that used to work fine, and the lib files appear to always be blank documents now. Does the gulpfile.js run during a VS build? Is there something else I need to do to re-copy these files to lib?
出于某种原因,我的网站缺少过去工作正常的所有样式和客户端行为(轮播),并且lib文件现在看起来总是空白文档。 gulpfile.js在VS构建期间运行吗?我需要做些什么才能将这些文件重新复制到lib?
1 个解决方案
#1
Go to the Task Runner Explorer in Visual Studio, right click on the copy task, and click run.
转到Visual Studio中的Task Runner Explorer,右键单击复制任务,然后单击run。
I'm not sure how the files got removed or why this was necessary, but it does fix the problem.
我不确定如何删除文件或为什么这是必要的,但它确实解决了问题。
#1
Go to the Task Runner Explorer in Visual Studio, right click on the copy task, and click run.
转到Visual Studio中的Task Runner Explorer,右键单击复制任务,然后单击run。
I'm not sure how the files got removed or why this was necessary, but it does fix the problem.
我不确定如何删除文件或为什么这是必要的,但它确实解决了问题。