Skip to content

Commit 1b2698c

Browse files
eerhardtjoperezr
andauthored
Update to Aspire 9.5 (#900)
* Update to Aspire 9.5 * Remove obsolete Aspire package sources from nuget.config * Update Aspire unstable packages version to 9.5.0-preview.1.25474.7 --------- Co-authored-by: Jose Perez Rodriguez <joperezr@microsoft.com>
1 parent 318e037 commit 1b2698c

File tree

6 files changed

+14
-8
lines changed

6 files changed

+14
-8
lines changed

Directory.Packages.props

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
<CentralPackageTransitivePinningEnabled>true</CentralPackageTransitivePinningEnabled>
55
<AspnetVersion>10.0.0-preview.7.25380.108</AspnetVersion>
66
<MicrosoftExtensionsVersion>10.0.0-preview.7.25380.108</MicrosoftExtensionsVersion>
7-
<AspireVersion>9.4.2</AspireVersion>
8-
<AspireUnstablePackagesVersion>9.4.2-preview.1.25428.12</AspireUnstablePackagesVersion>
7+
<AspireVersion>9.5.0</AspireVersion>
8+
<AspireUnstablePackagesVersion>9.5.0-preview.1.25474.7</AspireUnstablePackagesVersion>
99
<GrpcVersion>2.71.0</GrpcVersion>
1010
<DuendeVersion>7.3.1</DuendeVersion>
1111
<ApiVersioningVersion>8.1.0</ApiVersioningVersion>
@@ -57,6 +57,8 @@
5757
<PackageVersion Include="Pgvector.EntityFrameworkCore" Version="0.2.2" />
5858
<!-- Version together with runtime -->
5959
<PackageVersion Include="Microsoft.Extensions.Options" Version="10.0.0-rc.1.25451.107" />
60+
<PackageVersion Include="Microsoft.Extensions.Configuration.Abstractions" Version="10.0.0-rc.1.25451.107" />
61+
<PackageVersion Include="Microsoft.Extensions.Logging.Abstractions" Version="10.0.0-rc.1.25451.107" />
6062
<!-- Xabaril packages -->
6163
<PackageVersion Include="AspNetCore.HealthChecks.Uris" Version="9.0.0" />
6264
<!-- AI -->

src/WebApp/Extensions/Extensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ public static void AddApplicationServices(this IHostApplicationBuilder builder)
3131
builder.Services.AddGrpcClient<Basket.BasketClient>(o => o.Address = new("http://basket-api"))
3232
.AddAuthToken();
3333

34-
builder.Services.AddHttpClient<CatalogService>(o => o.BaseAddress = new("http://catalog-api"))
34+
builder.Services.AddHttpClient<CatalogService>(o => o.BaseAddress = new("https+http://catalog-api"))
3535
.AddApiVersion(2.0)
3636
.AddAuthToken();
3737

38-
builder.Services.AddHttpClient<OrderingService>(o => o.BaseAddress = new("http://ordering-api"))
38+
builder.Services.AddHttpClient<OrderingService>(o => o.BaseAddress = new("https+http://ordering-api"))
3939
.AddApiVersion(1.0)
4040
.AddAuthToken();
4141
}

src/eShop.AppHost/Extensions.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ public static IDistributedApplicationBuilder AddOpenAI(this IDistributedApplicat
6666
.WithDescription("The Azure OpenAI endpoint to use, e.g. https://<name>.openai.azure.com/")
6767
.WithCustomInput(p => new()
6868
{
69+
Name = "OpenAIEndpointParameter",
6970
Label = "Azure OpenAI Endpoint",
7071
InputType = InputType.Text,
7172
Value = "https://<name>.openai.azure.com/",
@@ -79,6 +80,7 @@ public static IDistributedApplicationBuilder AddOpenAI(this IDistributedApplicat
7980
.WithDescription("The OpenAI API key to use.")
8081
.WithCustomInput(p => new()
8182
{
83+
Name = "OpenAIKeyParameter",
8284
Label = "API Key",
8385
InputType = InputType.SecretText
8486
});
@@ -88,6 +90,7 @@ public static IDistributedApplicationBuilder AddOpenAI(this IDistributedApplicat
8890
.WithDescription("The chat model to use.")
8991
.WithCustomInput(p => new()
9092
{
93+
Name = "ChatModelParameter",
9194
Label = "Chat Model",
9295
InputType = InputType.Text,
9396
Value = chatModelName,
@@ -97,6 +100,7 @@ public static IDistributedApplicationBuilder AddOpenAI(this IDistributedApplicat
97100
.WithDescription("The embedding model to use.")
98101
.WithCustomInput(p => new()
99102
{
103+
Name = "EmbeddingModelParameter",
100104
Label = "Text Embedding Model",
101105
InputType = InputType.Text,
102106
Value = textEmbeddingModelName,

src/eShop.AppHost/eShop.AppHost.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
2-
<Sdk Name="Aspire.AppHost.Sdk" Version="9.4.0" />
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
<Sdk Name="Aspire.AppHost.Sdk" Version="9.5.0" />
33

44
<PropertyGroup>
55
<OutputType>Exe</OutputType>

tests/Catalog.FunctionalTests/Catalog.FunctionalTests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<Project Sdk="Microsoft.NET.Sdk">
2-
<Sdk Name="Aspire.AppHost.Sdk" Version="9.4.0" />
2+
<Sdk Name="Aspire.AppHost.Sdk" Version="9.5.0" />
33

44
<PropertyGroup>
55
<TargetFramework>net10.0</TargetFramework>

tests/Ordering.FunctionalTests/Ordering.FunctionalTests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<Project Sdk="Microsoft.NET.Sdk">
2-
<Sdk Name="Aspire.AppHost.Sdk" Version="9.4.0" />
2+
<Sdk Name="Aspire.AppHost.Sdk" Version="9.5.0" />
33

44
<PropertyGroup>
55
<TargetFramework>net10.0</TargetFramework>

0 commit comments

Comments
 (0)