diff --git a/src/Console/Console.csproj b/src/Console/Console.csproj index 4aca06f..e8a5148 100644 --- a/src/Console/Console.csproj +++ b/src/Console/Console.csproj @@ -24,21 +24,21 @@ - - - - - - - + + + + + + + - - - - - + + + + + diff --git a/src/SampleApp/.aspire/settings.json b/src/SampleApp/.aspire/settings.json new file mode 100644 index 0000000..836e1f9 --- /dev/null +++ b/src/SampleApp/.aspire/settings.json @@ -0,0 +1,3 @@ +{ + "appHostPath": "../Dashboard/Dashboard.csproj" +} \ No newline at end of file diff --git a/src/SampleApp/Dashboard/.azurite/AzuriteConfig b/src/SampleApp/Dashboard/.azurite/AzuriteConfig new file mode 100644 index 0000000..20a1ec5 --- /dev/null +++ b/src/SampleApp/Dashboard/.azurite/AzuriteConfig @@ -0,0 +1 @@ +{"instaceID":"b62898a4-2bc8-4602-b1fe-b604ea6cd23c"} \ No newline at end of file diff --git a/src/SampleApp/Dashboard/Dashboard.csproj b/src/SampleApp/Dashboard/Dashboard.csproj index f1246e3..46de016 100644 --- a/src/SampleApp/Dashboard/Dashboard.csproj +++ b/src/SampleApp/Dashboard/Dashboard.csproj @@ -1,6 +1,4 @@ - - - + Exe @@ -9,8 +7,8 @@ - - + + diff --git a/src/SampleApp/Dashboard/Program.cs b/src/SampleApp/Dashboard/Program.cs index 63b51c3..3d9b159 100644 --- a/src/SampleApp/Dashboard/Program.cs +++ b/src/SampleApp/Dashboard/Program.cs @@ -1,12 +1,10 @@ var builder = DistributedApplication.CreateBuilder(args); +// Run Azurite via npx instead of container +var storage = builder.AddExecutable("azurite", "npx", ".", "azurite", "--silent", "--location", ".azurite", "--debug", ".azurite/debug.log"); + builder.AddAzureFunctionsProject("api") - // Functions App will launch with default port, not the launchSettings.json port - // So we request a proxy to forward 4242 to the default function app port instead. - // This will only work if you have a single Function App. - // See https://github.com/dotnet/aspire/issues/8589 - //.WithArgs("--port", "4242") - .WithHttpEndpoint(4242, 7071, "apiproxy") + .WaitFor(storage) .WithEnvironment("AzureWebJobsStorage", "UseDevelopmentStorage=true") // Disable Azure SDK telemetry since we're running locally .WithEnvironment("AZURE_SDK_TELEMETRY_ENABLED", "false") diff --git a/src/SampleApp/Sample/Sample.csproj b/src/SampleApp/Sample/Sample.csproj index 9f3c55a..f2b5c09 100644 --- a/src/SampleApp/Sample/Sample.csproj +++ b/src/SampleApp/Sample/Sample.csproj @@ -7,24 +7,24 @@ - + - - - - - - - - - - - - - - + + + + + + + + + + + + + + diff --git a/src/Tests/Tests.csproj b/src/Tests/Tests.csproj index f0fddf9..9a3237e 100644 --- a/src/Tests/Tests.csproj +++ b/src/Tests/Tests.csproj @@ -12,7 +12,7 @@ - + @@ -22,17 +22,17 @@ - + - + - + all runtime; build; native; contentfiles; analyzers; buildtransitive - - + + diff --git a/src/WhatsApp/WhatsApp.csproj b/src/WhatsApp/WhatsApp.csproj index ee8a1a0..b4cab56 100644 --- a/src/WhatsApp/WhatsApp.csproj +++ b/src/WhatsApp/WhatsApp.csproj @@ -31,16 +31,16 @@ - + - - + + - - + +