Is there an existing issue for this?
Describe the bug
When running aspire init in an empty folder I get an error that it would overwrite existing files (see output below). I believe this is because the initial language choice creates an aspire.config.json and then the scaffolding of the actual project tries to create the same file again, resulting in the error.
Expected Behavior
I would not expect getting an error.
Steps To Reproduce
mkdir repro
cd repro
aspire init
Choose C#
Get the error above
Exceptions (if any)
Select AppHost Language
Choose the programming language for your Aspire AppHost.
This selection will be saved for future use.
✔ Language preference saved to local configuration: C# (.NET)
ℹ No solution file found. Creating single-file apphost...
📦 Using project templates version: 13.2.1
❌ The new project cannot be created because it would overwrite existing files in the output folder. Please remove or move the conflicting files, or choose a different location.
❌ The app could not be created. See logs at /Users/jmezach/.aspire/logs/cli_20260401T073128_0199a680.log
.NET Version info
.NET SDK:
Version: 10.0.201
Commit: 4d3023de60
Workload version: 10.0.201
MSBuild version: 18.3.0-release-26153-122+4d3023de6
Runtime Environment:
OS Name: Mac OS X
OS Version: 26.3
OS Platform: Darwin
RID: osx-arm64
Base Path: /usr/local/share/dotnet/sdk/10.0.201/
.NET workloads installed:
There are no installed workloads to display.
Configured to use workload sets when installing new manifests.
Host:
Version: 10.0.5
Architecture: arm64
Commit: a612c2a105
.NET SDKs installed:
6.0.419 [/usr/local/share/dotnet/sdk]
8.0.414 [/usr/local/share/dotnet/sdk]
8.0.415 [/usr/local/share/dotnet/sdk]
9.0.312 [/usr/local/share/dotnet/sdk]
10.0.201 [/usr/local/share/dotnet/sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 6.0.27 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 8.0.21 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 9.0.14 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 10.0.5 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.27 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 8.0.21 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 9.0.14 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 10.0.5 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Other architectures found:
x64 [/usr/local/share/dotnet/x64]
registered at [/etc/dotnet/install_location_x64]
Environment variables:
Not set
global.json file:
Not found
Learn more:
https://aka.ms/dotnet/info
Download .NET:
https://aka.ms/dotnet/download
Anything else?
aspire -v: 13.2.1+14bf8c40443c690189a82ecb6565edb91dadf3b1
Is there an existing issue for this?
Describe the bug
When running aspire init in an empty folder I get an error that it would overwrite existing files (see output below). I believe this is because the initial language choice creates an
aspire.config.jsonand then the scaffolding of the actual project tries to create the same file again, resulting in the error.Expected Behavior
I would not expect getting an error.
Steps To Reproduce
mkdir repro
cd repro
aspire init
Exceptions (if any)
.NET Version info
.NET SDK:
Version: 10.0.201
Commit: 4d3023de60
Workload version: 10.0.201
MSBuild version: 18.3.0-release-26153-122+4d3023de6
Runtime Environment:
OS Name: Mac OS X
OS Version: 26.3
OS Platform: Darwin
RID: osx-arm64
Base Path: /usr/local/share/dotnet/sdk/10.0.201/
.NET workloads installed:
There are no installed workloads to display.
Configured to use workload sets when installing new manifests.
Host:
Version: 10.0.5
Architecture: arm64
Commit: a612c2a105
.NET SDKs installed:
6.0.419 [/usr/local/share/dotnet/sdk]
8.0.414 [/usr/local/share/dotnet/sdk]
8.0.415 [/usr/local/share/dotnet/sdk]
9.0.312 [/usr/local/share/dotnet/sdk]
10.0.201 [/usr/local/share/dotnet/sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 6.0.27 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 8.0.21 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 9.0.14 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 10.0.5 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.27 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 8.0.21 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 9.0.14 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 10.0.5 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Other architectures found:
x64 [/usr/local/share/dotnet/x64]
registered at [/etc/dotnet/install_location_x64]
Environment variables:
Not set
global.json file:
Not found
Learn more:
https://aka.ms/dotnet/info
Download .NET:
https://aka.ms/dotnet/download
Anything else?
aspire -v: 13.2.1+14bf8c40443c690189a82ecb6565edb91dadf3b1