Errore del compilatore CS0811

Aggiornamento: novembre 2007

Messaggio di errore

Il nome completo di 'nome' è troppo lungo per le informazioni di debug. Compilare senza l'opzione '/debug'.
The fully qualified name for 'name' is too long for debug information. Compile without '/debug' option.

I nomi di variabili e tipi nelle informazioni di debug sono soggetti a vincoli di dimensioni.

Per correggere l'errore

  • Se non è possibile modificare il nome, l'unica alternativa è compilare senza l'opzione /debug.

Esempio

Nel codice seguente viene generato l'errore 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;
        }
    }
}