Skip to content

Commit 4013c52

Browse files
committed
added support for Aspire 9.2
1 parent 137a5b7 commit 4013c52

File tree

3 files changed

+15
-6
lines changed

3 files changed

+15
-6
lines changed

hostedss - dbprj/AspireApp1.AppHost/AspireApp1.AppHost.csproj

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,19 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

3-
<Sdk Name="Aspire.AppHost.Sdk" Version="9.1.0" />
3+
<Sdk Name="Aspire.AppHost.Sdk" Version="9.2.0" />
44

55
<PropertyGroup>
66
<OutputType>Exe</OutputType>
77
<TargetFramework>net9.0</TargetFramework>
88
<ImplicitUsings>enable</ImplicitUsings>
99
<Nullable>enable</Nullable>
10-
<IsAspireHost>true</IsAspireHost>
1110
<UserSecretsId>881669bd-202c-44f1-a97c-04b18b065290</UserSecretsId>
1211
</PropertyGroup>
1312

1413
<ItemGroup>
15-
<PackageReference Include="Aspire.Hosting.AppHost" Version="9.1.0" />
16-
<PackageReference Include="Aspire.Hosting.SqlServer" Version="9.1.0" />
17-
<PackageReference Include="CommunityToolkit.Aspire.Hosting.SqlDatabaseProjects" Version="9.2.1" />
14+
<PackageReference Include="Aspire.Hosting.AppHost" Version="9.2.0" />
15+
<PackageReference Include="Aspire.Hosting.SqlServer" Version="9.2.0" />
16+
<PackageReference Include="CommunityToolkit.Aspire.Hosting.SqlDatabaseProjects" Version="9.3.0" />
1817
</ItemGroup>
1918

2019
<ItemGroup>

hostedss - dbprj/AspireApp1.AppHost/Program.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,16 @@
1111
.WaitFor(db);
1212

1313
builder.AddProject<Projects.WebApplication1>("webapi")
14+
.WithUrlForEndpoint("http", url =>
15+
{
16+
url.DisplayText = "Forecast API (HTTP)";
17+
url.Url += "/weatherforecast";
18+
})
19+
.WithUrlForEndpoint("https", url =>
20+
{
21+
url.DisplayText = "Forecast API (HTTPS)";
22+
url.Url += "/weatherforecast";
23+
})
1424
.WithReference(db)
1525
.WaitFor(db)
1626
.WaitForCompletion(dbPrj);

hostedss - dbprj/WebApplication1/WebApplication1.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="Aspire.Microsoft.Data.SqlClient" Version="9.1.0" />
10+
<PackageReference Include="Aspire.Microsoft.Data.SqlClient" Version="9.2.0" />
1111
<PackageReference Include="Microsoft.Data.SqlClient" Version="6.0.1" />
1212
</ItemGroup>
1313

0 commit comments

Comments
 (0)