Open v-sherryfan opened 2 months ago
The workaround mentioned in another similar issue https://github.com/dotnet/aspire-samples/issues/441#issuecomment-2320664148 can also solve this problem.
The workaround mentioned in another similar issue dotnet/aspire-samples#441 (comment) can also solve this problem.
the suggested workaround did not work for me ...
INSTALL STEPS
REPRO STEPS
main
branch [Aspire 8.1.0]azd init
, select 'Use code in the current directory' > Confirm and continue initializing my app, type a new environment name, press enter.azd up
to deploy to AzureACTUAL: Deploying services (azd deploy)
(x) Failed: Deploying service basket-api
ERROR: error executing step command 'deploy --all': failed deploying service 'basket-api': publishing container: dotnet publish on project 'C:\Users\V-SHER~1\eShop\src\Basket.API\Basket.API.csproj' failed: exit code: 1, stdout: , stderr: MSBUILD : error MSB4166: Child node "2" exited prematurely. Shutting down. Diagnostic information may be found in files in "C:\Users\v-sherryfan\AppData\Local\Temp\MSBuildTemp\" and will be named MSBuild_*.failure.txt. This location can be changed by setting the MSBUILDDEBUGPATH environment variable to a different directory. MSBUILD : error MSB4166: C:\Users\v-sherryfan\AppData\Local\Temp\MSBuildTemp\MSBuild_pid-11844_071c8d00615f4e6ea440c7344c35ef68.failure.txt: MSBUILD : error MSB4166: UNHANDLED EXCEPTIONS FROM PROCESS 11844: MSBUILD : error MSB4166: ===================== MSBUILD : error MSB4166: 8/28/2024 9:48:50 AM MSBUILD : error MSB4166: System.ArgumentNullException: Value cannot be null. (Parameter 'value') MSBUILD : error MSB4166: at System.ArgumentNullException.Throw(String paramName) MSBUILD : error MSB4166: at System.IO.BinaryWriter.Write(String value) MSBUILD : error MSB4166: at Microsoft.Build.Framework.TelemetryEventArgs.WriteToStream(BinaryWriter writer) MSBUILD : error MSB4166: at Microsoft.Build.Shared.LogMessagePacketBase.WriteToStream(ITranslator translator) MSBUILD : error MSB4166: at Microsoft.Build.Shared.LogMessagePacketBase.Translate(ITranslator translator) MSBUILD : error MSB4166: at Microsoft.Build.BackEnd.NodeEndpointOutOfProcBase.RunReadLoop(Stream localReadPipe, Stream localWritePipe, ConcurrentQueue`1 localPacketQueue, AutoResetEvent localPacketAvailable, AutoResetEvent localTerminatePacketPump) MSBUILD : error MSB4166: =================== MSBUILD : error MSB4166: MSBUILD : error MSB4166: Build failed. Properties, Items, and Target results cannot be obtained. See details in stderr above.
Note
EXPECTED
Can be published successfully.