Questions tagged [asp.net-core-5.0]

ASP.NET Core 5 is the current version of ASP.NET Core, built on top of .NET 5. Use this tag for questions specifically about ASP.NET Core 5 and ASP.NET Core 5's formal specification. Do also include the general [asp.net-core] tag.

311 questions
18
votes
1 answer

Deploy ASP.NET Core 5 app to existing Azure App Service?

I have an existing Azure App Service running on ASP.NET Core 3.x. I have upgraded the application to today’s release of ASP.NET Core 5. This works fine on my local IIS Express server. When I publish to the application to the App Service using Visual…
10
votes
3 answers

Package Microsoft.EntityFrameworkCore.Sqlite 5.0.0-rc.1.20451.13 is not compatible with net50 (.NETFramework,Version=v5.0) / win7-x86

I want to update my packages but I got some errors like this: The error is: Error NU1202 Package Microsoft.EntityFrameworkCore.Sqlite 5.0.0-rc.1.20451.13 is not compatible with net50 (.NETFramework,Version=v5.0) / win7-x86. …
8
votes
1 answer

.NET 5 not compiling to single file executables

Haiya! I'm having an issue regarding trying to compile my .NET 5 application to a single file executable while debugging through Visual Studio. My CSProject is bellow.
7
votes
1 answer

Purpose of dotnetRunMessages in launchSettings.json

In ASP.NET Core 5 the template provides this in launchSettings.json: "MyProject": { "commandName": "Project", "dotnetRunMessages": "true", // <<<<<<<< "launchBrowser": true, "applicationUrl":…
lonix
  • 4,787
  • 1
  • 29
  • 74
7
votes
4 answers

NuGet Package Manager attempting to add .NET 5.0 updates to .NET Core 3.1 application

When I go into Tools | NuGet Package Manager | Manage NuGet Package for Solution, it shows me there are 12 updates available. But when I attempt to update them all, I get errors. NU1202: Package Microsoft.VisualStudio.Web.CodeGeneration 5.0.0 is not…
6
votes
0 answers

.NET Core 5 Angular SSR

I am starting a new Angular website and thought I would start with the new .NET 5 but I am running into a few problems with adding SSR. I created a new website and added an Angular client using ng new client-app then added the SSR using ng add…
Andy Braham
  • 7,763
  • 4
  • 38
  • 44
5
votes
1 answer

What app.UseMigrationsEndPoint does in .NET Core Web Application Startup class

I created a new .NET Core Web Application from Visual Studio and I got this piece of code generated in startup class: if (env.IsDevelopment()) { // *** app.UseMigrationsEndPoint(); // *** } What actually does this line…
5
votes
0 answers

404 Not found for blazor.webassembly.js in Blazor Web assembly app

I created a new "hosted" Blazor web assembly Razor class library and referenced it from a traditional .NET 5.0 MVC app. The Razor class library components render just fine, however, the blazor client JS file is getting a 404 not found. This is wasm…
5
votes
2 answers

Why does ApiAuthorization not work in .NET 5

I am using .NET Core API Authorization since version 3.1, which was working fine until I upgraded my project to .NET 5. After updating, I have been getting a NullReferenceException. Here is the code from…
5
votes
4 answers

Package Microsoft.AspNetCore.Authentication.JwtBearer 5.0.0 is not compatible with netcoreapp3.1 yet it's targeting net 5.0

I am migrating to .NET 5.0 from .Net Core 3.1. I keep getting this error message: Package Microsoft.AspNetCore.Authentication.JwtBearer 5.0.0 is not compatible with netcoreapp3.1 (.NETCoreApp,Version=v3.1) / win-x86. Package…
MyDaftQuestions
  • 2,987
  • 10
  • 48
  • 93
4
votes
1 answer

An internal failure occurred while running MSBuild - Could not load file or assembly System.Net.Primitives

Using XUnit and Asp.Net Core 5 I have the following test: public class Tests : IClassFixture { private readonly ServiceProviderFixture _fixture; public IndicatorsTests(ServiceProviderFixture fixture) { _fixture =…
Miguel Moura
  • 28,129
  • 59
  • 187
  • 356
4
votes
1 answer

Serialization and MD5 hashes failing after upgrading from .Net Core 3.1 to .Net 5

After upgrading one of my applications from .Net Core 3.1 to .Net 5 I am noticing weird failures in the parts of my code dealing with byte array serialization and MD5 hashes. The code worked just fine in .Net Core 3.1, but after the upgrade to .Net…
TGH
  • 37,121
  • 10
  • 94
  • 126
4
votes
1 answer

Identity stores with DB Context Factory

On my ASP.NET Core 5.0 project, I changed services.AddDbContext(...); to services.AddPooledDbContextFactory(...); and now the application is not starting. A subset of errors I got: Error while…
4
votes
1 answer

ASP.NET Core 5.0 RouteDataRequestCultureProvider remove default culture in url

I tried to add multi language feature to my asp.net-core project but there are some changes between .net 3.1 and 5.0 in RequestLocalization and i couldn't get what i want. I added Resource files for each language and I used Resource in my razor…
4
votes
1 answer

How to force ASP.NET Core 5 source code to not be optimized

I'm trying to debug the Antiforgery code in the ASP.NET Core 5 framework. I have built the code successfully using the instructions in https://github.com/dotnet/aspnetcore/blob/master/docs/BuildFromSource.md using the Debug configuration. I have…
David Klempfner
  • 6,679
  • 15
  • 47
  • 102
1
2 3
20 21