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 .NET Aspire 9 and .NET 9 #52

Merged
merged 5 commits into from
Nov 15, 2024
Merged

Update to .NET Aspire 9 and .NET 9 #52

merged 5 commits into from
Nov 15, 2024

Conversation

jongalloway
Copy link
Contributor

This pull request includes several updates to upgrade the .NET target framework and package versions across multiple projects. Additionally, new environment variables have been added to the launch settings for the API project.

Framework and Package Updates:

  • complete/Api/Api.csproj: Updated target framework from net8.0 to net9.0 and upgraded package versions for Aspire.StackExchange.Redis.OutputCaching, Microsoft.AspNetCore.OpenApi, and Swashbuckle.AspNetCore.
  • complete/AppHost/AppHost.csproj: Updated target framework from net8.0 to net9.0, added Aspire AppHost SDK, and upgraded package versions for Aspire.Hosting.AppHost and Aspire.Hosting.Redis.
  • complete/MyWeatherHub/MyWeatherHub.csproj: Updated target framework from net8.0 to net9.0 and upgraded package versions for Microsoft.AspNetCore.Components.QuickGrid and Microsoft.Extensions.ApiDescription.Client.
  • complete/ServiceDefaults/ServiceDefaults.csproj: Updated target framework from net8.0 to net9.0 and upgraded package versions for Microsoft.Extensions.Http.Resilience, Microsoft.Extensions.ServiceDiscovery, and OpenTelemetry packages.
  • start-with-api/Api/Api.csproj: Updated target framework from net8.0 to net9.0 and upgraded package versions for Microsoft.AspNetCore.OpenApi and Swashbuckle.AspNetCore.
  • start-with-api/MyWeatherHub/MyWeatherHub.csproj: Updated target framework from net8.0 to net9.0 and upgraded package versions for Microsoft.AspNetCore.Components.QuickGrid and Microsoft.Extensions.ApiDescription.Client.

Launch Settings Updates:

Updated Api.csproj:
- Target framework changed to net8.0
- Updated Aspire.StackExchange.Redis.OutputCaching to 9.0.0
- Updated Microsoft.AspNetCore.OpenApi to 8.0.11
- Removed project reference to ServiceDefaults.csproj

Updated launchSettings.json:
- Added DOTNET_RESOURCE_SERVICE_ENDPOINT_URL env variable
- Added DOTNET_ENVIRONMENT env variable for https

Updated AppHost.csproj:
- Added Aspire.AppHost.Sdk version 9.0.0
- Updated Aspire.Hosting.AppHost to 9.0.0
- Updated Aspire.Hosting.Redis to 9.0.0

Updated ServiceDefaults.csproj:
- Target framework changed to net8.0
- Updated Microsoft.Extensions.Http.Resilience to 9.0.0
- Updated Microsoft.Extensions.ServiceDiscovery to 9.0.0
Updated all projects to target net9.0. Updated package versions:
- Api.csproj: Microsoft.AspNetCore.OpenApi to 9.0.0, Swashbuckle.AspNetCore to 7.0.0
- AppHost.csproj: Aspire.AppHost.Sdk to 9.0.0
- MyWeatherHub.csproj: Microsoft.AspNetCore.Components.QuickGrid to 9.0.0, Microsoft.Extensions.ApiDescription.Client to 9.0.0
- ServiceDefaults.csproj: OpenTelemetry.Exporter.OpenTelemetryProtocol to 1.10.0, OpenTelemetry.Extensions.Hosting to 1.10.0
Updated target framework in Api.csproj and MyWeatherHub.csproj from net8.0 to net9.0. Updated package references in Api.csproj: Microsoft.AspNetCore.OpenApi to 9.0.0, Swashbuckle.AspNetCore to 7.0.0. Updated package references in MyWeatherHub.csproj: Microsoft.AspNetCore.Components.QuickGrid to 9.0.0, Microsoft.Extensions.ApiDescription.Client to 9.0.0.
@jamesmontemagno jamesmontemagno merged commit db3bde7 into main Nov 15, 2024
3 checks passed
@jamesmontemagno jamesmontemagno deleted the aspire-9 branch November 15, 2024 23:32
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