This article exlains how to copy our JS / CSS / IMAGE files into a SharePoint Library in a SharePoint Project using Visual Studio Modules and a package in a WSP.
Often in SharePoint Projects we need to copy our JS / CSS / IMAGE files into a SharePoint Library. We can do that using Visual Studio Modules and package in a WSP.ModulesModules are containers of files. We can use Modules to deploy files using a WSP file.ScenarioWe are trying to deploy a JS file into an existing library. StepsUse the following procedure to do the deployment.Step 1: Create new projectCreate a new project and name it ModuleTest.
Step 3: Add JS fileRight-click on the Module and add a new file. Name it My.js.
SummaryIn this article we explored how to deploy JS files using modules. The same knowledge can be used in deploying CSS/HTML/Image files.
SharePoint 2016 Document Libraries - End User Training Manual