나는 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"를 내 경로로 복사하십시오. 내가 이미 가지고있을 때 그것을 언급하는 이유가 무엇인지 모르겠습니다.
에
/r:System.DLL
를 추가 할 필요가 왜 이것에 대한 비주얼 스튜디오 익스프레스를 사용할 수 있습니까? – Oded네, 다운로드하십시오. 커맨드 라인 작업은 악몽입니다. – zgnilec
@Veech - jonnyGold가 맞습니다 : "/r:System.dll"이 도움이됩니다. Oded와 zgnilec는 심지어 * MORE * 수정되었습니다 - 당신은 절대적으로, 완전히, MSVS의 복사본을 얻을 필요가 있습니다. 예를 들어 [여기] (http://www.microsoft.com/visualstudio/en-us/products/2010-editions/express)의 무료 Visual Studio Express. – paulsm4