모노를 사용하여 C #을 컴파일하려고하는데 모노가 다음 오류를 반환합니다.
CS0246: the type or namespace name 'Font' could not be found ...
CS0246: the type or namespace name 'Color' could not be found ...
CS0246: the type or namespace name 'Color' could not be found ...
내 수입 명세서는 다음과 같습니다.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Drawing;
using System.Drawing.Font;
using System.Drawing.Imaging;
using System.IO;
어떤 아이디어? 글꼴 클래스와 색상 구조가 모노에서도 지원됩니까? 공식적으로 지원되는 문서와 그렇지 않은 문서를 찾을 수없는 것 같습니다.
일반적으로 명령 줄에서 모노를 사용할 때 다음과 같이합니다.
$ mcs program.cs
그러나 파일 맨 위에 참조 된 어셈블리 ( program.cs
예 : System.Drawing)는 포함해야 합니다. 이렇게하려면 reference
스위치 를 사용해야합니다 .
$ mcs /reference:System.Drawing.dll program.cs
... 프로그램이 컴파일 될 때까지.
도움이 되었기를 바랍니다.
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다