Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Compiler Error CS0430
Collapse the table of content
Expand the table of content

Compiler Error CS0430

The extern alias 'alias' was not specified in a /reference option

This error occurs when extern Alias is encountered but Alias was not specified as a reference on the command line. To resolve CS0430, compile with /reference.

// CS0430_a.cs
// compile with: /target:library 
public class MyClass {}

Compiling with /reference:MyType=cs0430_a.dll to refer to the DLL created in the previous sample resolves this error. The following sample generates CS0430.

// CS0430_b.cs
extern alias MyType;   // CS0430
public class Test 
   public static void Main() {}

Community Additions

© 2015 Microsoft