2012-06-15 3 views
3

나는 C#으로 GUI를 코딩하고있다. 시작하려면 간단한 튜토리얼 this을 따르고 있습니다. 컴파일하려면, 내가가 system.windows.forms.dll는 System.Drawing.dll를 참조 할 필요가, 그래서 나는C# 사용 및 컴파일 Windows.Form

csc /r:System.Windows.Forms.DLL /r:System.Drawing.DLL FirstForm.cs 

그러나, 나는이 같은 오류를 얻을 입력 :

FirstForm.cs(6,14): error CS0012: The type 'System.ComponentModel.Component' is 
    defined in an assembly that is not referenced. You must add a reference 
    to assembly 'System, Version=4.0.0.0, Culture=neutral, 
    PublicKeyToken=b77a5c561934e089'. 
c:\Windows\Microsoft.NET\Framework\v4.0.30319\System.Windows.Forms.dll: 
    (Location of symbol related to previous error) 

이미 추가 한 "c : \ Windows \ Microsoft.NET \ Framework \ v4.0.30319"를 내 경로로 복사하십시오. 내가 이미 가지고있을 때 그것을 언급하는 이유가 무엇인지 모르겠습니다.

+1

/r:System.DLL를 추가 할 필요가 왜 이것에 대한 비주얼 스튜디오 익스프레스를 사용할 수 있습니까? – Oded

+1

네, 다운로드하십시오. 커맨드 라인 작업은 악몽입니다. – zgnilec

+1

@Veech - jonnyGold가 맞습니다 : "/r:System.dll"이 도움이됩니다. Oded와 zgnilec는 심지어 * MORE * 수정되었습니다 - 당신은 절대적으로, 완전히, MSVS의 복사본을 얻을 필요가 있습니다. 예를 들어 [여기] (http://www.microsoft.com/visualstudio/en-us/products/2010-editions/express)의 무료 Visual Studio Express. – paulsm4

답변

8

당신은 당신의 명령 줄 인수

+1

이것은 Monodevelop에 대한 정답입니다. – kodmanyagha