Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

Compiler Error CS0739

Visual Studio 2008

'type name' duplicate TypeForwardedToAttribute.

An assembly can have no more than one TypeForwardedToAttribute to an external type.

To correct this error

The following code generates CS0739:

// CS0739.cs
// CS0739
// Assume that a class Test is declared in a separate dll
// with a namespace that is named cs739dll.
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(cs739dll.Test))]
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(cs739dll.Test))]
namespace cs0739
{
    class Program
    {
        static void Main(string[] args)
        {
        }
    }
}

Community Additions

ADD
Show:
© 2015 Microsoft