user3188781
user3188781

Reputation:

Why does Visual Studio force to create solution file? How can I avoid solution files?

I am creating a asp.net website and when I open it, Visual Studio asks me to create solution file every time. But I don't want the solution files at all. How can I create a website without a solution file? There are other related questions in stack overflow but they give workaround by creating the solution file. I don't want to create solution file.

Upvotes: 1

Views: 266

Answers (1)

mason
mason

Reputation: 32693

If you do a New Website instead of New Project -> New Web Application, you can easily move the site's code files around. You don't need a solution file (although one will be generated in a separate location). You can ignore that solution file for the most part. I think that's as close as you can get to a "no solution" ASP.NET website.

Note that the New Website approach doesn't generate a project file (.csproj), which you may also want to get rid of if I'm following your line of reasoning correctly.

See ASP.NET Web Site or ASP.NET Web Application? for a discussion of Web Site vs Web Application.

Upvotes: 1

Related Questions