We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f7bb37 commit c0dbcfeCopy full SHA for c0dbcfe
byoss/AspireApp1.AppHost/AspireApp1.AppHost.csproj
@@ -7,7 +7,6 @@
7
<TargetFramework>net9.0</TargetFramework>
8
<ImplicitUsings>enable</ImplicitUsings>
9
<Nullable>enable</Nullable>
10
- <IsAspireHost>true</IsAspireHost>
11
<UserSecretsId>2c343a00-3aab-423f-b3a2-2feabf216baa</UserSecretsId>
12
</PropertyGroup>
13
byoss/AspireApp1.AppHost/Program.cs
@@ -3,7 +3,17 @@
3
var db = builder.AddConnectionString("db");
4
5
builder.AddProject<Projects.WebApplication1>("webapi")
6
+ .WithUrlForEndpoint("http", url =>
+ {
+ url.DisplayText = "Forecast API (HTTP)";
+ url.Url += "/weatherforecast";
+ })
+ .WithUrlForEndpoint("https", url =>
+ url.DisplayText = "Forecast API (HTTPS)";
14
15
16
.WithReference(db);
-
17
+;
18
19
builder.Build().Run();
0 commit comments