Skip to content
Discussion options

You must be logged in to vote

I think the SDK switch is the cause, not GitHub. azd decides whether a project is an Aspire AppHost by running dotnet msbuild <AppHost.csproj> --getProperty:IsAspireHost (cli/azd/pkg/tools/dotnet/dotnet.go).

With Sdk="Aspire.AppHost.Sdk": the SDK itself set that property, so it was there even on a fresh checkout.
With Microsoft.NET.Sdk plus the Aspire.Hosting.AppHost package: IsAspireHost comes from the package's build props, which MSBuild only imports after a restore.
On your dev machine the AppHost is already restored, so azd detects it and generates the Bicep in memory. On a clean runner nothing is restored yet, the property comes back empty, and azd treats it as a normal project and l…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Lindsay-Mathieson
Comment options

Answer selected by Lindsay-Mathieson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants