Skip to content
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

Update to run on .NET Aspire 9 #48

Merged
merged 8 commits into from
Nov 17, 2024
Merged

Update to run on .NET Aspire 9 #48

merged 8 commits into from
Nov 17, 2024

Conversation

jongalloway
Copy link
Contributor

This pull request includes several updates to package versions, environment configurations, and project references across multiple files. The most important changes are grouped by themes: package updates, environment configuration updates, and codebase improvements.

Package Updates:

  • Updated Aspire.StackExchange.Redis from version 8.2.0 to 9.0.0 in src/Basket.API/Basket.API.csproj.
  • Updated Aspire.Npgsql.EntityFrameworkCore.PostgreSQL from version 8.2.0 to 9.0.0-rc.2.24551.3 in src/Catalog.Data.Manager/Catalog.Data.Manager.csproj, src/Catalog.Data/Catalog.Data.csproj, src/Ordering.API/Ordering.API.csproj, and src/Ordering.Data.Manager/Ordering.Data.Manager.csproj. [1] [2] [3] [4]
  • Updated Microsoft.EntityFrameworkCore.Tools from version 8.0.7 to 8.0.11 in src/Catalog.Data.Manager/Catalog.Data.Manager.csproj and src/Ordering.Data.Manager/Ordering.Data.Manager.csproj. [1] [2]
  • Updated Aspire.Hosting.Testing from version 8.2.0 to 9.0.0 in src/IntegrationTests/IntegrationTests.csproj.
  • Updated various packages in src/eShop.ServiceDefaults/eShop.ServiceDefaults.csproj to their latest versions.

Environment Configuration Updates:

  • Added DOTNET_RESOURCE_SERVICE_ENDPOINT_URL and DOTNET_ENVIRONMENT to environment variables in src/Basket.API/Properties/launchSettings.json, src/Catalog.Data.Manager/Properties/launchSettings.json, src/Ordering.API/Properties/launchSettings.json, src/Ordering.Data.Manager/Properties/launchSettings.json, and src/WebApp/Properties/launchSettings.json. [1] [2] [3] [4] [5] [6] [7] [8] [9]

Codebase Improvements:

  • Added Aspire.Hosting.ApplicationModel using directives in src/IntegrationTests/Infrastructure/DistributedApplicationExtensions.cs, src/IntegrationTests/Infrastructure/ResourceExtensions.cs, and src/IntegrationTests/WebAppTests.cs. [1] [2] [3]
  • Changed project.GetName() to project.Name in TryApplyEfMigrationsAsync method in src/IntegrationTests/Infrastructure/DistributedApplicationExtensions.cs.
  • Added Aspire.AppHost.Sdk with version 9.0.0 in src/eShop.AppHost/eShop.AppHost.csproj.

These changes ensure that the project dependencies are up-to-date, improve the environment configuration for development, and enhance the codebase for better maintainability.

Updated TargetFramework to net8.0 in multiple projects. Upgraded Aspire and Microsoft package references to newer versions. Added new environment variables in launchSettings.json. Removed ProjectReference, Protobuf, and Compile items from .csproj files. Added dotnetRunMessages to launchSettings.json profiles. Included new using directives for Aspire.Hosting. Changed method call from project.GetName() to project.Name. Updated SDK in eShop.AppHost.csproj to Aspire.AppHost.Sdk 9.0.0. Removed eShop.ServiceDefaults project references and unused using directives.
@jongalloway jongalloway marked this pull request as ready for review November 16, 2024 02:07
@jongalloway jongalloway merged commit 3fcdc98 into main Nov 17, 2024
3 checks passed
@jongalloway jongalloway deleted the aspire-9 branch November 17, 2024 18:55
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.

2 participants