Microsoft.NET.Sdk.StaticWebAssets.targets(684,5): error : System.ArgumentException: Illegal characte

After installing VS 2026 and updating to .NET 10, some web projects build fine, yet others show this error. Also, in solution explorer, I see this:
image.png
Was this page helpful?