Ich habe ein ASP.NET Core 8-Web-API-Projekt erstellt.
Aber wenn ich das Projekt ausführe, erhalte ich diese Fehlermeldung:
System.MissingMethodException : 'Methode nicht gefunden: 'Boolean Microsoft.AspNetCore.Authorization.IAuthorizationPolicyProvider.get_AllowsCachingPolicies()'.'
Der Fehler tritt bei app.Run();
aufvar builder = WebApplication.CreateBuilder(args);
// Add services to the container.
builder.Services.AddControllers();
Ich verstehe es nicht. Ich habe das Paket Microsoft.AspNetCore.Authorization installiert, aber ich habe immer noch das gleiche Problem.
Weiß jemand, was das Problem ist?
Ich habe ein ASP.NET Core 8-Web-API-Projekt erstellt. Aber wenn ich das Projekt ausführe, erhalte ich diese Fehlermeldung: System.MissingMethodException : 'Methode nicht gefunden: 'Boolean Microsoft.AspNetCore.Authorization.IAuthorizationPolicyProvider.get_AllowsCachingPolicies()'.'
Der Fehler tritt bei app.Run(); aufvar builder = WebApplication.CreateBuilder(args);
// Add services to the container. builder.Services.AddControllers();
Ich verstehe es nicht. Ich habe das Paket Microsoft.AspNetCore.Authorization installiert, aber ich habe immer noch das gleiche Problem. Weiß jemand, was das Problem ist?
Ich habe ein Klassenbibliotheksprojekt mit .NET 9 SDK erstellt, das Nuget -Paket microsoft.asp.netcore.identity installiert und eine Klasse erstellt:
using System.Security.Claims;
Ich möchte Integrationstests in einer Azure -Funktions -App (.NET 9/Isolated Worker) durchführen, ähnlich wie sie normalerweise mit Microsoft.aspnetcore.mvc.testing auf ASP.NET CORE -Apps: