Working with Polymer in Visual Studio 2015 (Preview)

In the new VS2015, there is built in Bower and npm support. This is great if you want to use Visual Studio to build Polymer components and apps. Importing the basic Polymer packages in to VS2015 is not completely straight forward unfortunately, as the autocomplete for the Bower packages doesn’t seem to work a 100% just yet.

Importing the Polymer packages with Bower in to VS2015

To import the packages polymer, polymer/core-elements and polymer/paper-elements you first edit the bower.json file in your VS2015 web project. The way to insert them is under the dependencies tag, see code snippet.

"dependencies": {
     "polymer": "^0.5.4",
	"core-elements": "Polymer/core-elements#^0.5.4",
	"paper-elements": "Polymer/paper-elements#^0.5.4"
}

After the bower.json file is edited, you will see the packages pop up under your Bower dependencies. Then you need to right click the Bower packages header and select Restore Packages to actually download the packages from Bower.

Then check your Output Window and select Package Manager Log to see what’s being imported from Bower and make sure there are no errors!

Happy Coding! 🙂

Polymer Bower packages in Visual Studio 2015
Tagged on:         

3 thoughts on “Polymer Bower packages in Visual Studio 2015

  • December 2, 2014 at 11:30
    Permalink

    Just wanna thank you for your post! It saved my day!! 🙂

    Reply
    • December 3, 2014 at 01:28
      Permalink

      Glad to hear that, and cool to see more people using VS2015 to develop Polymer apps 🙂

      Reply
  • January 12, 2015 at 15:43
    Permalink

    Nice Blog, thanks for sharing this kind of information.

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.