简体   繁体   中英

Add exisitng Angular.js app to visual studio solution

Does anyone know how to add an exisiting project (created with this plugin ) to a Visual Studio solution? It used bower and npm to install dependecies, so I'm afraid this is not possible.

I know how to create Angular project in Visual Studio from the begging (choosing APS MVC project template).

It is possible.

  1. You first create a web project;
  2. go to CMD and the project root folder
  3. initialize npm - npm init
  4. initialize bower - bower init
  5. then install the plugin
  6. go to visual studio and add the folders that are in the project into the solution (bower and npm folders)
  7. also add bower and npm files to the solution

Notice that this plugin is used via Yeoman, so you've got to use the command yo as show in the plugin website.

When you have all the scaffolding code you need you can add it to the project and use it in any way you want.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM