Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions samples/Metrics/ServiceDefaults/ServiceDefaults.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<FrameworkReference Include="Microsoft.AspNetCore.App" />

<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="10.0.9" />
<PackageReference Include="Microsoft.OpenApi" Version="2.7.5" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="10.0.9" />
<PackageReference Include="Microsoft.Extensions.Http.Resilience" Version="10.7.0" />
<PackageReference Include="Microsoft.Extensions.ServiceDiscovery" Version="10.7.0" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="10.0.9" />
<PackageReference Include="Microsoft.OpenApi" Version="2.7.5" />
<PackageReference Include="Scalar.AspNetCore" Version="2.16.11" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,35 @@
// Queue Data Contributor role is required to send messages to the queue
StorageBuiltInRole.StorageQueueDataContributor)
.WithHostStorage(storage)
.WithUrlForEndpoint("http", u => u.DisplayText = "Functions App");
.WithUrlForEndpoint("https", u => u.DisplayText = "Functions App");

if (builder.ExecutionContext.IsRunMode)
{
// The Functions project's launchSettings.json passes '--useHttps' to the local Azure Functions host.
// Azure Functions Core Tools can't auto-generate a certificate on the .NET build of the tools, so the
// trusted ASP.NET Core developer certificate is exported to a password-protected PFX and handed to
// 'func host start' via its --cert/--password options.
var functionsCertPassword = builder.AddResource(
ParameterResourceBuilderExtensions.CreateGeneratedParameter(
builder,
"functions-cert-password",
secret: true,
parameterDefault: new GenerateParameterDefault()));

// The developer certificate APIs used below to serve the Azure Functions host over HTTPS are experimental.
#pragma warning disable ASPIRECERTIFICATES001
functions
.WithHttpsDeveloperCertificate(functionsCertPassword)
.WithHttpsCertificateConfiguration(context =>
{
context.Arguments.Add("--cert");
context.Arguments.Add(context.PfxPath);
context.Arguments.Add("--password");
context.Arguments.Add(context.Password!);
return Task.CompletedTask;
});
#pragma warning restore ASPIRECERTIFICATES001
}

builder.AddProject<Projects.ImageGallery_FrontEnd>("frontend")
.WithReference(queues)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"profiles": {
"ImageGalleryFunctions": {
"commandName": "Project",
"commandLineArgs": "--port 7221",
"commandLineArgs": "--port 7221 --useHttps",
"launchBrowser": false
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="10.0.9" />
<PackageReference Include="Microsoft.OpenApi" Version="2.7.5" />
<PackageReference Include="Scalar.AspNetCore" Version="2.16.11" />
</ItemGroup>

Expand Down
8 changes: 4 additions & 4 deletions samples/aspire-with-python/apphost.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#:sdk Aspire.AppHost.Sdk@13.4.0
#:package Aspire.Hosting.JavaScript@13.4.0
#:package Aspire.Hosting.Python@13.4.0
#:package Aspire.Hosting.Redis@13.4.0
#:sdk Aspire.AppHost.Sdk@13.4.6
#:package Aspire.Hosting.JavaScript@13.4.6
#:package Aspire.Hosting.Python@13.4.6
#:package Aspire.Hosting.Redis@13.4.6

var builder = DistributedApplication.CreateBuilder(args);

Expand Down
2 changes: 1 addition & 1 deletion samples/container-build/apphost.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#:sdk Aspire.AppHost.Sdk@13.4.0
#:sdk Aspire.AppHost.Sdk@13.4.6

using Microsoft.Extensions.Hosting;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
<PackageReference Include="Aspire.MySqlConnector" Version="13.4.6" />
<PackageReference Include="Dapper" Version="2.1.79" />
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="10.0.9" />
<PackageReference Include="Microsoft.OpenApi" Version="2.7.5" />
<PackageReference Include="Scalar.AspNetCore" Version="2.16.11" />
</ItemGroup>

Expand Down
1 change: 1 addition & 0 deletions samples/image-gallery/api/api.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
<PackageReference Include="Aspire.Azure.Storage.Queues" Version="13.4.0" />
<PackageReference Include="Scalar.AspNetCore" Version="2.14.11" />
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="10.0.8" />
<PackageReference Include="Microsoft.OpenApi" Version="2.7.5" />
<PackageReference Include="SkiaSharp" Version="3.119.1" />
<PackageReference Include="SkiaSharp.NativeAssets.Linux.NoDependencies" Version="3.119.1" />
</ItemGroup>
Expand Down
11 changes: 5 additions & 6 deletions samples/image-gallery/apphost.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#pragma warning disable ASPIRECSHARPAPPS001
#pragma warning disable ASPIREAZURE002

#:sdk Aspire.AppHost.Sdk@13.4.0
#:package Aspire.Hosting.Azure.Storage@13.4.0
#:package Aspire.Hosting.Azure.Sql@13.4.0
#:package Aspire.Hosting.JavaScript@13.4.0
#:package Aspire.Hosting.Azure.AppContainers@13.4.0
#:sdk Aspire.AppHost.Sdk@13.4.6
#:package Aspire.Hosting.Azure.Storage@13.4.6
#:package Aspire.Hosting.Azure.Sql@13.4.6
#:package Aspire.Hosting.JavaScript@13.4.6
#:package Aspire.Hosting.Azure.AppContainers@13.4.6

using Aspire.Hosting.Azure;
using Azure.Provisioning.AppContainers;
Expand Down Expand Up @@ -108,4 +108,3 @@
api.PublishWithContainerFiles(frontend, "wwwroot");

builder.Build().Run();

1 change: 1 addition & 0 deletions samples/vite-csharp-postgres/api/Api.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
<PackageReference Include="Aspire.Npgsql.EntityFrameworkCore.PostgreSQL" Version="13.4.0" />
<PackageReference Include="Scalar.AspNetCore" Version="2.14.11" />
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="10.0.8" />
<PackageReference Include="Microsoft.OpenApi" Version="2.7.5" />
</ItemGroup>

<ItemGroup>
Expand Down
Loading