Description
REGRESSION INFO
Worked in Aspire 9.1.0
INSTALL STEPS
- Clean machine: Win11 x64 24h2 ENU
- Install VS 17.13 (latest released version)
- Install Aspire.ProjectTemplates 9.1.0
- Install Aspire.ProjectTemplates 9.2.0
MINIMAL REPRO
REPRO STEPS
- New Function App > enable Aspire > choose Aspire 9.2 > FunctionApp10
- Check FunctionApp10.AppHost.csproj to use Aspire 9.2
<PackageReference Include="Aspire.Hosting.AppHost" Version="9.2.0" />
<PackageReference Include="Aspire.Hosting.Azure.Functions" Version="9.2.0-preview.1.25206.1" />
- Open FunctionApp10.AppHost\Program.cs and Ctrl + F5 (run without debugging)
ACTUAL
Port number in console logs is 7071 but the one shown in the dashboard is 7045
EXPECTED
Port number in console logs should match with the one in the dashboard -- both should be 7045
DETAILED REPRO (if you want to compare behavior with Aspire 9.1)
REPRO STEPS
With Aspire 9.1
- New Function App > enable Aspire > choose Aspire 9.1 > FunctionApp9
- Make sure that FunctionApp9.AppHost.csproj points to Aspire 9.1
<PackageReference Include="Aspire.Hosting.AppHost" Version="9.1.0" />
<PackageReference Include="Aspire.Hosting.Azure.Functions" Version="9.1.0-preview.*" />
- The launchSettings.json of FunctionApp9 is configured to use port 7086
- Open FunctionApp9.AppHost\Program.cs and Ctrl + F5 (run without debugging)
- Works fine - Aspire dashboard, console logs shows the localhost:7086 and the page loads successfully
With Aspire 9.2
- Update FunctionApp9.AppHost.csproj to use Aspire 9.2
<PackageReference Include="Aspire.Hosting.AppHost" Version="9.2.0" />
<PackageReference Include="Aspire.Hosting.Azure.Functions" Version="9.2.0-preview.*" />
- Open FunctionApp9.AppHost\Program.cs and Ctrl + F5 (run without debugging)
ACTUAL
The URL (port number) shown in the Aspire dashboard does not match the port number used in the console logs
EXPECTED
The same port number should show up in the console logs as the dashboard URL. The page should load successfully as we saw with the Aspire 9.1 case above.