Closed JoshTango closed 5 months ago
Here is the code generated by visual studio for program.cs which I assume we can remove some of these lines:
`var builder = WebApplication.CreateBuilder(args);
// Add services to the container. builder.Services.AddRazorPages();
var app = builder.Build();
// Configure the HTTP request pipeline. if (!app.Environment.IsDevelopment()) { app.UseExceptionHandler("/Error"); // The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts. app.UseHsts(); }
app.UseHttpsRedirection(); app.UseStaticFiles();
app.UseRouting();
app.UseAuthorization();
app.MapRazorPages();
app.Run();`
Ok thanks. Then the documentation needs upgraded I guess.
Yes ;)
Ok thanks. Then the documentation needs upgraded I guess.
Where? what I see in https://docs.orchardcore.net/en/latest/docs/getting-started/ is correct
there is a step in https://docs.orchardcore.net/en/latest/docs/getting-started/templates/ called so:
Finally, we will need to register Orchard CMS service in our Startup.cs file like this:
@JoshTango could you please open a PR?
@agriffard did docs.orchardcore.net
contains the latest update from the nightly builds?
@agriffard did
docs.orchardcore.net
contains the latest update from the nightly builds?
https://docs.orchardcore.net/en/latest/... is built based on the main branch.
This was done in https://github.com/OrchardCMS/OrchardCore/pull/13380.
What is the guidance for a new asp.net project in .net 7? We don't have a startup file anymore and instead just have a program.cs. The documentation has a gif showing the steps for I assume pre .net 7?