✅ ASP.NET open project
im trying to open ASP.net web project and it only show me asp.net web project with razor pages
idk if i downloaded smth wrong or smth
51 Replies
This is a list of templates, to create a new project
If you want to open an existing project, double-clicking the
.sln
or .csproj
file will usually do itlike im asking in genral if some0one had the same problem as me
What is the problem though?
The menu in the screenshot lets you create a new project
u remmber we talk in web
Yes
and it only show me the razor pages
and not the empty one
There is literally the empty template in the list?
Why do you want a completely empty ASP.NET project?
not core empty
I don't know what you want, sorry
like core Web App w/o the razor stuff
Like, an API?
You talk about opening a project and show us a list from creating projects
If so, then pick the Web API project
That will contain just the bare minimum, no Razor
like this pic donw there
There is no empty project on this list even
what's the purpose?
not empty empty
like core web app without the razor stuff
idk whats razor
A templating engine.
b ut idk how to use it tho
Learn?
ill just sit on utube i guess
So what kind of app do you want to create at all?
just a site
Use Razor Pages then
With Razor templates and all
ok i guesss
This is the easiest
thanks im just a bit stupid in this things
Then you have two choices, MVC which is more boilerplate or Razor pages which is newer and requires typically fewer files and boilerplate.
understood
thx for the help
Third option would be Blazor Server but I wouldn't consider that here if you need more or less a static site.
i can do like interaction on the site using razor yeh?
like buttons and stuff
What kind of interactions?
button prob
Chances are that will required Javascript
Razor Pages and MVC are SSR
ik java script its fine
Meaning, everything is rendered on the server
there is no server side in razor pages?
So any interaction requires a page reload
It is server-side
SSR
stands for ServerSide Renderingoh xd
im more familiar with the USSR xd
If you want to have interactions without reloading the page, you can create an API controller and call it with Javascript
As I said, RPages and MVC are much closer to how the web actually is
As opposed to Webforms and its
runat
stuffso should i open MVC or Razor?
Razor Pages are easier to get started with
In the end, you can mix and match
mvc is model view controller?
Nothing stops you from adding some Blazor components later, or an MVC controller, or a Minimal API endpoint
Yes
MVC is Model View Controller
ok do u have like suggested tutrial or i just wonder around and fine my self
thx alot for the help tho
IME this tutorial is not bad: https://www.learnrazorpages.com/
An Introduction To ASP.NET Razor Pages | Learn Razor Pages
Razor Pages is a page-focused development framework for building dynamic, data-driven web sites with clean separation of concerns using the latest version of ASP.NET.
I reference it myself every now and then
ok thx
imma close it here
Sure
Unknown User•5mo ago
Message Not Public
Sign In & Join Server To View
If you have no further questions, please use /close to mark the forum thread as answered