dotnet / dotnet/aspnetcore

WebApplication.CreateBuilder grumble `System.IO.DirectoryNotFoundException` for `wwwroot` when debugging

Open
#66,472 1 comment 0 reactions 0 assignees View on GitHub
area-hosting bug
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.

Image

### Expected Behavior

_No response_

### Steps To Reproduce

_No response_

### Exceptions (if any)

_No response_

### .NET Version

_No response_

### Anything else?

_No response_

Contributor guide

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.