23 questions
0
votes
0
answers
58
views
.NET is not recognized
In a .NET Core C# project, I get many errors like this:
Predefined type 'System.Object' is not defined or imported
Primary variables such as int and string are not recognized.
I have tried the ...
Advice
0
votes
2
replies
33
views
ASP.NET Core 10 integration tests using multiple web projects/entry points
When creating integration tests for ASP.NET Core 10 web apps, we use the WebApplicationFactory<TEntryPoint> class. When a single ASP.NET Core web project is used as SUT, it's simple and it works:...
Best practices
0
votes
4
replies
60
views
Upgrading from .NET framework 4.8 VB.NET project to .NET 10
I have an application which was written years ago in VB.NET. Recently I migrated it to .NET framework 4.8. This change was smooth.
Now I am planning to migrate it to an ASP.NET Core 10 Web API using C#...
3
votes
0
answers
148
views
Upgrading project to .NET 10 breaks Scalar support when using document transformers
I'm currently in the process of upgrading to .NET 10 from .NET 9, but unfortunately as usual the documentation of breaking changes seems to be lacking when it comes to certain functionality and ...
0
votes
1
answer
99
views
Blazor with .NET 10 mode: @rendermode @(new InteractiveWebAssemblyRenderMode(prerender: false))
I am updating a Blazor web assembly project from .NET 9 to .NET 10, and noticed a change in behavior with the following line of code:
@rendermode @(new InteractiveWebAssemblyRenderMode(prerender: ...
0
votes
0
answers
29
views
Conflicting assets with the same target path in ASP.NET Core 10 static web asset compression
The error occurs between two projects (PortalAdmin and Portal) that both contain the same static web asset. This appears to be related to the new static web asset compression feature in .NET 10.
What'...
-7
votes
0
answers
82
views
Blazor onClick fails after switching to .Net 10 [closed]
I have a .Net 9.0 Blazor project that I've migrated to .Net 10.0 .
After the migration, the @onclick events no longer trigger.
The .Net 9.0 version was setup to use InteractiveServer rendering both on ...
1
vote
1
answer
92
views
ASP.NET Core blazor app, 404 blazor.server.js after .NET 10 installed
I have a big project that uses Blazor, suddenly when I run it, the Blazor pages do not work anymore, because the blazor.server.js returns 404. This happened after I installed latest version of VS 2026 ...
1
vote
1
answer
80
views
How to use expression setters in ExecuteUpdate again in EF Core 10
Microsoft have changed ExecuteUpdateAsync to accept non-expression setters parameter in NET 10. Now it works this way:
await context.Blogs.ExecuteUpdateAsync(s =>
{
s.SetProperty(b => b....
2
votes
1
answer
271
views
Microsoft.AspNetCore.OpenApi 10.0.0 - The 'interceptors' feature is not enabled in this namespace
I am trying to upgrade to .NET 10 (from .NET 9), but after updating the Microsoft.AspNetCore.OpenApi package to 10.0.0, I can no longer build my application.
This is the error I get:
The '...
-1
votes
1
answer
160
views
Aspire publish not creating dockerfile
I’m working with Aspire in a .NET 10 RC2 project.
When I run:
aspire publish
it logs that it’s “creating Docker image”, but no Docker image is actually produced.
I have ran it with --debug and indeed ...
0
votes
0
answers
72
views
NavigationError on NavigateTo in .NET 10 preview
Blazor (render server global) in IdentityRedirectManager.cs
Line 31: navigationManager.NavigateTo(uri);
I get this error when redirect page:
Microsoft.AspNetCore.Components.NavigationException
...