--getProperty:GeneratedContainerConfiguration
no longer returns a value in SDK 9.0.102 when running dotnet publish
#46176
Labels
Describe the bug
when running
dotnet publish /t:PublishContainer --getProperty:GeneratedContainerConfiguration
in SDK version 9.0.102 we no longer get the Generated Container Confioguration.To Reproduce
This is a project that I created via Visual Studio, first by creating a new ".NET Aspire Empty App", then by adding a new "ASP.NET Core Web API"
They were created with the defaults.
The main branch on this Repo has the issue, the branch than pins the SDK to 9.0.100 works:
https://github.com/sgtwilko/AspirePublishFail
Navigate to the API folder then run
dotnet publish /t:PublishContainer --getProperty:GeneratedContainerConfiguration
.The expected result is that this should create the container and output the GeneratedContainerConfiguration JSON.
This will cause
azd up
,azd deploy
to fail.If you use SDK 9.0.100 (see the sdk9.0.100 branch) this works and returns the JSON that is expected from
GeneratedContainerConfiguration
.I haven't tried 9.0.101, so not sure it was introduced in 101, or 102.
Exceptions (if any)
Further technical details
dotnet --info
Visual Studio 17.12.4
The text was updated successfully, but these errors were encountered: