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 ...
Advice
0
votes
2
replies
34
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:...
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 ...
-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
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 '...
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 ...
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'...
-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
26
views
IL2026/IL3050 Warnings only visible via dotnet format, neither in Visual Studio 2026 nor via dotnet build /publish
After installing Visual Studio 2026 and .NET10 I noticed the following behavior:
I’m building an AOT project that uses DI. When I build and publish the project, the IL trimming/AOT warnings are not ...