It looks like with Visual Studio 2015 RTM, the bower_components folder is gone and packages are saving directly to the wwwroot/lib/ folder. This would be verified by the fact that the default gulpfile no longer has a function for copying files from bower_components to wwwroot.
However in the default project.json, bower_components is still in the "exclude" property even though the folder no longer exists. Possibly an oversight?
Does anyone know what is going on with this? I didn't see anything about it in the release notes or the bug fixes and known issues articles. Also, I thought the entire point of the wwwroot folder was to house only white-listed files which will be needed by the actual site. Which, I guess there is no harm in making library code available here, it actually makes our lives easier as we add new libraries, but throughout the beta period the bower_components folder was pretty strictly separated.
https://www.visualstudio.com/en-us/news/vs2015-vs.aspx
https://support.microsoft.com/en-us/kb/3025135
I've been trying to adjust my project to match the changes in the latest VS project template for asp.net 5 as well.
From what I can tell, previously there was a task to copy stuff from the bower_components folder into wwwroot/lib
But now that is not needed because they put the bower files directly in wwwroot/lib and this happens because there is a new file in the root of the web app named .bowerrc which has the following content:
{
"directory": "wwwroot/lib"
}
so I think bower_components folder is no longer needed lots of related changes in gruntfile.js as well.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With