Skip to content

Update the project to target .NET 8 and C# 12, and optimize the code to utilize the latest .NET and C# features for performance and readability improvements. #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

nirzaf
Copy link

@nirzaf nirzaf commented Aug 17, 2024

  • BlazorEcommerce.Identity/ConfigureServices.cs

    • Update AddIdentityServices method to use AddDbContextFactory instead of AddDbContext.
    • Update AddIdentityServices method to use AddAuthentication with JwtBearerDefaults.AuthenticationScheme instead of options => { options.DefaultAuthenticateScheme = JwtBearerDefaults.AuthenticationScheme; options.DefaultChallengeScheme = JwtBearerDefaults.AuthenticationScheme; }.
  • BlazorEcommerce.Infrastructure/ConfigureServices.cs

    • Update AddInfrastructureServices method to use AddOptions instead of Configure.
  • BlazorEcommerce.Persistence/ConfigureServices.cs

    • Update AddPersistanceServices method to use AddDbContextFactory instead of AddDbContext.
  • Presentation/Server/Program.cs

    • Update Program.cs to use AddDbContextFactory instead of AddDbContext.
    • Update Program.cs to use AddAuthentication with JwtBearerDefaults.AuthenticationScheme instead of options => { options.DefaultAuthenticateScheme = JwtBearerDefaults.AuthenticationScheme; options.DefaultChallengeScheme = JwtBearerDefaults.AuthenticationScheme; }.

nirzaf added 2 commits August 17, 2024 22:30
Upgraded the target framework for all projects from .NET 7 to .NET 8 and set language version to 12. Added global.json to specify the SDK version and configured roll-forward settings. Created IntelliJ IDEA project files, including version control settings and a .gitignore for IDEA-specific files.
Upgraded various package dependencies to their latest stable versions across all project files. This includes updates for EntityFrameworkCore, AutoMapper, FluentValidation, MediatR, and others to ensure compatibility and access to new features and improvements.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant