Leer en inglés

Compartir a través de


Error del compilador CS0811

El nombre completo de 'nombre' es demasiado largo para la información de depuración. Realice la compilación sin la opción '/debug'.

Existen restricciones de tamaño para los nombres de variable y tipo en la información de depuración.

Para corregir este error

  1. Si no es posible modificar el nombre, la única alternativa consiste en compilar sin la opción DebugType.

Ejemplo

El código siguiente genera el error 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;  
        }  
    }  
}