Repository navigation
Upgrading to Aspire 17 broke my github azd provision workflow #22531
|
Previously working workflow stopped running after upgrading to Aspire 17, failing on Reverting to Aspire 13.6.4 resolves the issue.Manual deployment with Aspire 17 from dev machine (windows 11) runs successfully.Environment
I realise given it provisions fine maually from my dev pc, this could well be a github issue, but the issue only arises with Aspire 17, Aspire 13 is fine, so hoping for some guidance on how to resolve it. |
Replies: 1 comment 1 reply
|
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. Add a restore step before azd:
|
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…