[Mono-list] Beta 1, mcs error under Windows

Gonzalo Paniagua Javier gonzalo@ximian.com
Fri, 07 May 2004 19:54:14 +0200

El vie, 07-05-2004 a las 02:23, Brian Jepson escribió:
> Hi,
> I tried running the beta under Windows, but mcs throws an exception and
> then hangs:
> C:\Documents and Settings\bjepson>mcs foo.cs
>   ** (C:\Program Files\Mono-Beta1\lib\mono\1.0\mcs.exe:1968): WARNING
>   **: Could not find assembly System, references from C:\Program
>   Files\Mono-Beta1\lib\mono\1.0\mcs.exe (assemblyref_index=1)
>      Major/Minor: 1,0
>      Build:       5000,0
>      Token:       b77a5c561934e089
>   Unhandled Exception: System.NullReferenceException: Object reference not
>   set to an instance of an object

Hi Brian,

I didn't use the windows installer, but CVS.

I only needed to set the PATH like:
C:\> set PATH=c:\cygwin\home\myuser\go-mono\install\bin;%PATH%

And then my mcs.bat file is just (in install\bin):
@cd c:\cygwin\home\myuser\go-mono\install\bin
@if x%1 == x goto :done
@mono ..\lib\mono\1.0\mcs.exe %MONOARGS%

No need to set any extra environment variable.