File tree 3 files changed +16
-7
lines changed
3 files changed +16
-7
lines changed Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
2
3
- <Sdk Name =" Aspire.AppHost.Sdk" Version =" 9.1 .0" />
3
+ <Sdk Name =" Aspire.AppHost.Sdk" Version =" 9.2 .0" />
4
4
5
5
<PropertyGroup >
6
6
<OutputType >Exe</OutputType >
7
7
<TargetFramework >net9.0</TargetFramework >
8
8
<ImplicitUsings >enable</ImplicitUsings >
9
9
<Nullable >enable</Nullable >
10
- <IsAspireHost >true</IsAspireHost >
11
10
<UserSecretsId >0d58b20c-2afc-4388-a733-4c2057e0a27b</UserSecretsId >
12
11
</PropertyGroup >
13
12
14
13
<ItemGroup >
15
- <PackageReference Include =" Aspire.Hosting.AppHost" Version =" 9.1 .0" />
16
- <PackageReference Include =" Aspire.Hosting.SqlServer" Version =" 9.1 .0" />
14
+ <PackageReference Include =" Aspire.Hosting.AppHost" Version =" 9.2 .0" />
15
+ <PackageReference Include =" Aspire.Hosting.SqlServer" Version =" 9.2 .0" />
17
16
</ItemGroup >
18
17
19
18
<ItemGroup >
Original file line number Diff line number Diff line change 2
2
3
3
var sqlPassword = builder . AddParameter ( "sqlsrv-password" ) ;
4
4
5
- var sqlSrv = builder . AddSqlServer ( "sqlsrv" , sqlPassword , port : 1435 ) .
6
- WithLifetime ( ContainerLifetime . Persistent ) ;
5
+ var sqlSrv = builder . AddSqlServer ( "sqlsrv" , sqlPassword , port : 1435 )
6
+ . WithLifetime ( ContainerLifetime . Persistent ) ;
7
7
8
8
//var db = sqlSrv.AddDatabase("db");
9
9
var db = sqlSrv . AddDatabase ( "db" , databaseName : "tempdb" ) ;
10
10
11
11
builder . AddProject < Projects . WebApplication1 > ( "webapi" )
12
+ . WithUrlForEndpoint ( "http" , url =>
13
+ {
14
+ url . DisplayText = "Forecast API (HTTP)" ;
15
+ url . Url += "/weatherforecast" ;
16
+ } )
17
+ . WithUrlForEndpoint ( "https" , url =>
18
+ {
19
+ url . DisplayText = "Forecast API (HTTPS)" ;
20
+ url . Url += "/weatherforecast" ;
21
+ } )
12
22
. WithReference ( db )
13
23
. WaitFor ( db ) ;
14
24
Original file line number Diff line number Diff line change 7
7
</PropertyGroup >
8
8
9
9
<ItemGroup >
10
- <PackageReference Include =" Aspire.Microsoft.Data.SqlClient" Version =" 9.1 .0" />
10
+ <PackageReference Include =" Aspire.Microsoft.Data.SqlClient" Version =" 9.2 .0" />
11
11
<PackageReference Include =" Microsoft.Data.SqlClient" Version =" 6.0.1" />
12
12
</ItemGroup >
13
13
You can’t perform that action at this time.
0 commit comments