开发者

which are the differences between open project/solution and open website in Visual Studio?

开发者 https://www.devze.com 2023-03-20 08:39 出处:网络
Eg. opening a website as a project or open a project as a w开发者_如何转开发ebsite. Are there any differences between this two options?Open project / solution will open a .csproj file which contains a

Eg. opening a website as a project or open a project as a w开发者_如何转开发ebsite. Are there any differences between this two options?


Open project / solution will open a .csproj file which contains a list of the files included in your projects, among other settings. Website is just a folder with files / subfolders in it. You can't control which files are included , it just take the whole base directory content.


They are different project types and are treated differently by visual studio. You can see the differences here:


It's the difference between a web project (aka web application) and a website.

A website in visual studio doesn't have an associated project file - it is just a collection of directories and files. Everything in it is part of the site.

See on MSDN.


Open Website: Here you do not need to create a associated solution file.

Open Project Here you can create a solution and in one solution can add many projects or websites. when you open solution then it will load all projects and websites that are included in solution.

0

精彩评论

暂无评论...
验证码 换一张
取 消