Compiler Error CS0811
The fully qualified name for 'name' is too long for debug information. Compile without '/debug' option.
There are size constraints on variable and type names in debug information.
- If modifying the name is not possible, the only alternative is to compile without the DebugType option.
The following code generates CS0811:
// cs0811.cs
//Compile with: /debug
using System;
using System.Collections.Generic;
namespace TestNamespace
{
using Long = List<List<List<List<List<List<List<List<List<List<List<List<List
<List<List<List<List<List<List<List<List<List<List<List<List<List<List<List<int>>>>>>>>>>>>>>>>>>>>>>>>>>>>; // CS0811
class Test
{
static int Main()
{
return 1;
}
}
}
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
.NET feedback
.NET is an open source project. Select a link to provide feedback: