Running aspire new and selecting the single-file apphost C# option produces an apphost.cs that you can't run with dotnet run apphost.cs because the apphost.run.json file was replaced with aspire.config.json. The apphost requires environment variables set by the launch profile and when using dotnet run apphost.cs those launch profiles exist in apphost.run.json.
Running
aspire newand selecting the single-file apphost C# option produces anapphost.csthat you can't run withdotnet run apphost.csbecause theapphost.run.jsonfile was replaced withaspire.config.json. The apphost requires environment variables set by the launch profile and when usingdotnet run apphost.csthose launch profiles exist inapphost.run.json.