Visual Studio 2013 - Configuring Nuget Packages for Each Project
I want all of our future projects to use Bootstrap LESS and other nuget packages. Rather than delivering the document to all my team members and hoping they don't remember setting it up, can I create a skeleton project and then create it so that it appears under File -> New Project and they have nuget packages ready to upgrade at first build? I could create a Site.less example to run my command.
I would rather have a template than distribute a solution. Can this be done in VS203? The example I see does not cover nuget packages and sample code for setting up LESS. They are for customizing the class.
source to share
Yes, you can actually.
- Create a new project
- Add whatever you want including NuGet packages.
- Go to File => Export Template
- Select "Project Template"
- Fill in any required information.
- Create a new project based on this template
If you build this project now and look at the links, you will notice that it has the NuGet packages that you defined earlier. Create a package restore project and you are ready to go.
source to share