[Preview] .NET Aspire - Incorrect configuration when "Place project and solution in same folder" was used
- Dominant language
- C#
- Stars
- 6.3k
- Forks
- 991
- Avg merge
- 2d 15h
- Merged PRs (30d)
- 196
Description
### Is there an existing issue for this?
- [X] I have searched the existing issues
### Describe the bug
Visual Studio interprets the solution like this:

So the newly added files are both inside their new project, and the selected

### Expected Behavior
- Perhaps show an error message
- Or convert the project to a subfolder structure
### Steps To Reproduce
- Create new ASP.NET Core application
- Choose to put the project/solution in the same folder
- Add Aspire
### Exceptions (if any)

> CS0121
> The call is ambiguous between the following methods or properties:
> 'Microsoft.Extensions.Hosting.Extensions.AddServiceDefaults(Microsoft.Extensions.Hosting.IHostApplicationBuilder)' and
> 'Microsoft.Extensions.Hosting.Extensions.AddServiceDefaults(Microsoft.Extensions.Hosting.IHostApplicationBuilder)'
### .NET Version
8.0
### Anything else?
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.