Questions about folders in ASP.NET Core

Asked

Viewed 129 times

-3

I am in doubt about what each project folder means. Could someone explain me briefly? I would also like to know about the omnisharp.

FOLDERS:

obj

pages

properties

wwwroot

appsettings

csproj

program.Cs

startup.Cs

  • This video talks a little about this folder structure that you show in the question.

1 answer

1

I don’t know if this is the case, but this folder structure seems to have been removed from the template Web Application (Razor pages) of Visual Studio.

In this case: obj: Serves for the compiler to store temporary objects used in the build

pages: Serves to store the associated *.cshtml (and *.Cs) files, or basically the pages of your website.

properties: It is a Visual Studio directory, to store some project configuration files.

wwwroot: Serves for static content such as HTML, CSS and JS files.

appsettings: It is not a directory, but a json file, where your website settings are located.

csproj: It is not a directory, but the project file of your site. It specifies the dependencies and other settings. It is similar to the package.json, on the Node.

program.Cs: It’s not a directory either. It’s where your website’s endtrypoint (or "main") usually is.

startup.Cs: It is also not a directory. It is a file commonly used to configure the site startup as well as the Asp.net execution pipeline.


The omnisharp for already deserved another answer... It is a set of plugins and extensions for the editors most used to facilitate the development of applications .Net. As far as I know, one of the main objectives of the same is forcener refactoring tools to expedite development.

  • I forgot to reply about Omnisharp. I will edit the answer :)

  • Thank you @tvdias. It has helped me a lot in understanding.

  • Hello @allanalencar, I advise you to follow the tour to see how best to thank for an answer :)

  • Okay. I posted another question. link

  • Actually, I answered your other question, too...

  • @Allanalencar, do not forget to mark the answer as accepted, if you find the explanation satisfactory.

  • where do I mark the answer? I will take the tour again. I am new here and am learning.

  • Have more info on this link, @Allanalencar

Show 3 more comments

Browser other questions tagged

You are not signed in. Login or sign up in order to post.