컴파일러 오류 CS0430
업데이트: 2007년 11월
오류 메시지
/reference 옵션에 extern 별칭 'alias'을(를) 지정하지 않았습니다.
The extern alias 'alias' was not specified in a /reference option
이 오류는 extern 별칭을 사용하고 있지만 명령줄에서 별칭을 참조로 지정하지 않은 경우에 발생합니다. CS0430을 해결하려면 /reference로 컴파일하십시오.
예제
// CS0430_a.cs
// compile with: /target:library
public class MyClass {}
/reference:MyType=cs0430_a.dll로 컴파일하여 이전 샘플에서 만든 DLL을 참조하면 이 오류가 해결됩니다. 다음 샘플에서는 CS0430 오류가 발생하는 경우를 보여 줍니다.
// CS0430_b.cs
extern alias MyType; // CS0430
public class Test
{
public static void Main() {}
}