23 questions
9
votes
2
answers
234
views
Nullable warning when upgrading to extension-members syntax
I have two versions of helper methods for logging on ILogger. The first (classic extension methods) compiles fine; the second using extension members results in a compiler warning/error code.
CS8620: ...
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 ...
1
vote
0
answers
33
views
Embedded Views in ASP.NET Core 10
Previously, in .NET 9 and lower, we could use RazorRuntimeCompiliation to implement embedded views in assemblies.
services.Configure<MvcRazorRuntimeCompilationOptions>( options =>
{
var ...
5
votes
2
answers
180
views
Is there a difference between the C# Volatile.ReadBarrier vs Volatile.Read?
In the released .NET 10 there is a new method added to the Volatile class with the name ReadBarrier().
And I don't know whether from the compilers perspective there is a difference if I do a read with ...
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 ...
1
vote
0
answers
72
views
Could not load type 'Microsoft.AspNetCore.Http.Metadata.IApiEndpointMetadata'
After upgrading from .NET 9 to .NET 10 (.NET vesion and packages like OpenApi), I started getting this exception:
Application startup exception
System.TypeLoadException: Could not load type '...
2
votes
1
answer
465
views
Are extension properties subject to being displayed in the debugger by default?
I'm working on building up my extensions utilizing the new extension member syntax so I can add static class methods and extension properties for my commonly used operations.
I have defined a few ...
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....
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
0
answers
64
views
Start Android emulator with .NET Maui app from .NET Aspire dashboard
I have a .NET 10 MAUI app configured with Aspire 13. When I start the Aspire project and the dashboard launches, I ensure that the emulator is running.
Steps to reproduce
Start Visual Studio
Create a ...
1
vote
1
answer
154
views
.NET migrations with vulnerabilities
I am attempting to create a new EF Core migration using the add-migration command in the Visual Studio Package Manager, but the command is failing with the following error:
The running command ...
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
...