Visual Studio 2022 HTML empty project

Kevin Petteys 111 Reputation points
2022-12-12T00:29:07.733+00:00

I would like to create an project to track a website I am creating that only uses javascript, css, and html. I have tried to create a project file and just leave out the SDK but that prevents Visual Studio from loading the project. Is there another way to do it?

Developer technologies Visual Studio Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 34,436 Reputation points Microsoft External Staff
    2022-12-12T03:03:04.52+00:00

    Hello @Anonymous ,

    Welcome to Microsoft Q&A forum.

    In short, the SDK is needed. If you want to create a project(based on .NET), then you need to include/import SDK in the project file(or generating it by using VS, automatically, when you create a project), unless you don't create a project.

    Normally, the project templates in Visual Studio contain the necessary minimal settings which make them successfully build and run. See this document: .NET project SDKs, for .NET projects, the SDK is needed like

    <Project Sdk="Microsoft.NET.Sdk.Web">  
    …  
    </Project>  
    

    Otherwise the project will not be loaded as you can see.

    Sincerely,
    Tianyu

    • If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
      Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.