locked
How to create static web site RRS feed

  • Question

  • in visual studio 2015 community edition i want to create a website that does not contain more than html/css and javascript. i can't see how to make such a site. i can see only dynamic sites
    Sunday, January 8, 2017 5:03 PM

All replies

  • When creating a new website project, make sure that you choose an Empty Web Site project. You can then create/add your HTML/CSS or JS files according to your project's needs.

    Also, you can build your own Project Template by exporting your project and add it to the VS Project Template. You can read more about this project here.


    Real men hack kernels!

    • Proposed as answer by Oscar_Wu Monday, January 9, 2017 2:13 AM
    Sunday, January 8, 2017 5:35 PM
  • Hi Meddo soso,

    According to your description, you want to create a neo web project that without html/css and js files.

    So I think you could create a new empty web project.

    You could create an empty web application, just with the following screenshot (File->New->Project-> Web->ASP.NET Web Application):

    Or you could create a new empty website with the following screenshot (File->New->WebSite->ASP.NET Empty Web Site):

    After creating these projects, you could add Html or JS or Css files manually (Right-click the project name-> add -> Add New Item->Html Page).

    Sincerely,

    Oscar


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Monday, January 9, 2017 2:13 AM
  • but that site is still a dynamic site and need asp.net to run.the goal is to make html templates. any advice ?
    Tuesday, January 10, 2017 8:28 AM
  • Hi Docesamy,

    >>but that site is still a dynamic site and need asp.net to run.

    What do you think static website look like? As far as I know, Html+CSS will be a static site, we could not interact with it.

    Please feel free to let me know your idea :)

    If some replies help you resolved your doubts, please remember to mark it as answer, which could be helpful for others who have the same doubts as yours.

    Sincerely,

    Oscar


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.



    • Edited by Oscar_Wu Tuesday, January 10, 2017 8:51 AM
    • Proposed as answer by Oscar_Wu Wednesday, January 11, 2017 9:49 AM
    Tuesday, January 10, 2017 8:49 AM
  • Hi Meddo soso,

    If my reply help you resolved your issue, please remember to mark it as answer, which could help others who has the same doubts as yours. :)

    Sincerely,

    Oscar


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Wednesday, January 18, 2017 2:39 AM