asp.net-core-7.0 Questions
4
Solved
I am trying to convert a .NET Core 3.1 project to .NET 7.
When I use this in my Program.cs class:
app.UseEndpoints(endpoints =>
{
endpoints.MapRazorPages();
endpoints.MapControllerRoute(
nam...
Pyosis asked 5/12, 2022 at 16:47
0
I have enabled CORS as follows
Program.cs
builder.Services.AddCors();
var app = builder.Build();
app.UseRouting();
app.UseCors(x => x.AllowAnyMethod().AllowAnyHeader().AllowCredentials().Set...
Voidable asked 5/9, 2023 at 14:24
1
Solved
That's a result when I receive after trying to run ASP.NET Core 7.0 runtime image in Amazon ECS container (AWS Fargate service).
My project in on ASP.NET Core 7.0 Web API.
Here is a docker file for...
Indomitability asked 1/6, 2023 at 15:30
1
On a Net Core 7 project I am rendering a View Component on a Razor page:
<vc:footer></vc:footer>
The component C# code is:
public class FooterViewComponent : ViewComponent {
public Fo...
Crunch asked 20/2, 2023 at 17:54
2
Solved
In .NET 7, I do:
dotnet publish --self-contained --configuration Release --runtime win7-x64 --output myapp
How do I prevent .pdb files in the result? Ideally, just using the CLI?
Are there any add...
Prickett asked 15/3, 2022 at 2:23
1
© 2022 - 2024 — McMap. All rights reserved.