WebApplication.CreateBuilder grumble `System.IO.DirectoryNotFoundException` for `wwwroot` when debugging
- Dominant language
- C#
- Stars
- 38.4k
- Forks
- 10.9k
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 281
Description
### Is there an existing issue for this?
- [x] I have searched the existing issues
### Describe the bug
My project is web api, why need wwwroot? .net9.0 is ok, .net10 sucks.
### Expected Behavior
_No response_
### Steps To Reproduce
_No response_
### Exceptions (if any)
_No response_
### .NET Version
_No response_
### Anything else?
_No response_
Contributor guide
Research direction
Start by reproducing the reported failure around WebApplication.CreateBuilder while debugging the .NET 10 web API project, comparing it with .NET 9. Investigate why wwwroot is accessed and capture the missing reproduction details, exception, and project configuration. Done means the behavior is understood and the web API no longer fails because wwwroot is absent.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- backend, web-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100