REGRESSION INFO: Worked in NET11 Preview 1 and NET 10/9/8
INSTALL STEPS
- Clean machine: Windows 25h2 x64
- Install SDK 11 Preview 2
- Add feed
REPRO STEPS
- Open CMD, create a Web API using following commands:
md WebAPI
cd WebAPI
dotnet new webapi -controllers
- Run the app with
dotnet watch.
Note
- It does not repro when run with
dotnet run.
- It repros when using NET 10/9/8 framework while .NET 11.0 Preview 2 is installed.
- When tested on the .NET 11 Preview 1 where it does not repro, it has the same files as with the Preview 2 while also having an empty staticwebassets folder.
ACTUAL

Error Log
❌ Failed to read 'C:\Users\v-ctamayo\WebAPI\obj\Debug\net11.0\staticwebassets.development.json': Could not find file 'C:\Users\v-ctamayo\WebAPI\obj\Debug\net11.0\staticwebassets.development.json'.
Expected
No error will occur.