-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Closed
Labels
area-minimalIncludes minimal APIs, endpoint filters, parameter binding, request delegate generator etcIncludes minimal APIs, endpoint filters, parameter binding, request delegate generator etcfeature-validationIssues related to model validation in minimal and controller-based APIsIssues related to model validation in minimal and controller-based APIs
Milestone
Description
Is there an existing issue for this?
- I have searched the existing issues
Describe the bug
I'm setting up validation but it throws some errors during build.
Expected Behavior
No response
Steps To Reproduce
Build this feature branch: https://github.com/erwinkramer/bank-api/tree/feature/dotnet10
I also attempted to add <InterceptorsNamespaces>$(InterceptorsNamespaces);Microsoft.AspNetCore.Http.Validation.Generated</InterceptorsNamespaces>
but it doesn't change the errors.
Exceptions (if any)
C:\Users\erwin\Repos\bank-api\BankApi.Service.Beta\obj\Debug\net10.0\Microsoft.Extensions.Validation.ValidationsGenerator\Microsoft.Extensions.Validation.ValidationsGenerator\ValidatableInfoResolver.g.cs(433,112): error CS0122: 'InternalEntryBase.StateData' is inaccessible due to its protection level [C:\Users\erwin\Repos\bank-api\BankApi.Service.Beta\BankApi.Service.Beta.csproj]
C:\Users\erwin\Repos\bank-api\BankApi.Service.Beta\obj\Debug\net10.0\Microsoft.Extensions.Validation.ValidationsGenerator\Microsoft.Extensions.Validation.ValidationsGenerator\ValidatableInfoResolver.g.cs(436,114): error CS0122: 'InternalEntryBase.StateData' is inaccessible due to its protection level [C:\Users\erwin\Repos\bank-api\BankApi.Service.Beta\BankApi.Service.Beta.csproj]
C:\Users\erwin\Repos\bank-api\BankApi.Service.Beta\obj\Debug\net10.0\Microsoft.Extensions.Validation.ValidationsGenerator\Microsoft.Extensions.Validation.ValidationsGenerator\ValidatableInfoResolver.g.cs(439,132): error CS0122: 'InternalEntryBase.StateData' is inaccessible due to its protection level [C:\Users\erwin\Repos\bank-api\BankApi.Service.Beta\BankApi.Service.Beta.csproj]
C:\Users\erwin\Repos\bank-api\BankApi.Service.Beta\obj\Debug\net10.0\Microsoft.Extensions.Validation.ValidationsGenerator\Microsoft.Extensions.Validation.ValidationsGenerator\ValidatableInfoResolver.g.cs(491,130): error CS0122: 'InternalEntryBase.StateData' is inaccessible due to its protection level [C:\Users\erwin\Repos\bank-api\BankApi.Service.Beta\BankApi.Service.Beta.csproj]
C:\Users\erwin\Repos\bank-api\BankApi.Service.Beta\obj\Debug\net10.0\Microsoft.Extensions.Validation.ValidationsGenerator\Microsoft.Extensions.Validation.ValidationsGenerator\ValidatableInfoResolver.g.cs(1694,60): error CS0122: 'BlobClientConfiguration' is inaccessible due to its protection level [C:\Users\erwin\Repos\bank-api\BankApi.Service.Beta\BankApi.Service.Beta.csproj]
C:\Users\erwin\Repos\bank-api\BankApi.Service.Beta\obj\Debug\net10.0\Microsoft.Extensions.Validation.ValidationsGenerator\Microsoft.Extensions.Validation.ValidationsGenerator\ValidatableInfoResolver.g.cs(1697,62): error CS0122: 'BlobClientConfiguration' is inaccessible due to its protection level [C:\Users\erwin\Repos\bank-api\BankApi.Service.Beta\BankApi.Service.Beta.csproj]
C:\Users\erwin\Repos\bank-api\BankApi.Service.Beta\obj\Debug\net10.0\Microsoft.Extensions.Validation.ValidationsGenerator\Microsoft.Extensions.Validation.ValidationsGenerator\ValidatableInfoResolver.g.cs(1700,80): error CS0122: 'BlobClientConfiguration' is inaccessible due to its protection level [C:\Users\erwin\Repos\bank-api\BankApi.Service.Beta\BankApi.Service.Beta.csproj]
C:\Users\erwin\Repos\bank-api\BankApi.Service.Beta\obj\Debug\net10.0\Microsoft.Extensions.Validation.ValidationsGenerator\Microsoft.Extensions.Validation.ValidationsGenerator\ValidatableInfoResolver.g.cs(1716,78): error CS0122: 'BlobClientConfiguration' is inaccessible due to its protection level [C:\Users\erwin\Repos\bank-api\BankApi.Service.Beta\BankApi.Service.Beta.csproj]
.NET Version
10.0.100-preview.6.25358.103
Anything else?
I assume it tries to read DI-types like BlobServiceClient
as used here: https://github.com/erwinkramer/bank-api/blob/63f70f94e03674335d99a78da900707deacf522b/BankApi.Core/Implementation/Operation.Teller.cs#L24
Metadata
Metadata
Assignees
Labels
area-minimalIncludes minimal APIs, endpoint filters, parameter binding, request delegate generator etcIncludes minimal APIs, endpoint filters, parameter binding, request delegate generator etcfeature-validationIssues related to model validation in minimal and controller-based APIsIssues related to model validation in minimal and controller-based APIs