locked
how to add wwwroot folder in asp.net webapi RRS feed

  • Question

  • User1839056048 posted

    Hi

    I have an angular application and its backend is in a web api.

    My requirement is to add angular file in web api.

    angular file is added in wwwroot folder.but wwwroot is not found in my application.iam using visual studio 2017 community edition and not asp.net core

    how to add www root folder

    Regards

    Baiju

    Friday, January 10, 2020 8:46 AM

All replies

  • User-474980206 posted

    wwwroot is the default location for the asp.net core static file handler. If you are asp.net, then the static file handler looks in the root. Typically you would have an index.html file that references the JavaScript files. The structure of the static angular site depends on your tool chain. normally you would a production build and copy to the root of site. Also the default build will not support a subdir, it expects to be the web server root site. See build instructions if you need a sub site.

    Saturday, January 11, 2020 8:37 PM