.NET CS0103/CS0246: why can't C# resolve this name?
Summary As of October 2026, run dotnet build on the affected project first: fix CS0103 spelling or lexical scope, then distinguish CS0246 namespace imports from missing project or assembly references; editor-only errors need a separate diagnostic path (checked 2026-10-28).