[Mono-dev] CS0016 error
robertj at gmx.net
Wed Jan 21 09:58:59 EST 2009
Mudit Vaidya wrote:
> I have built mono from source. I am trying to compile a file but I get
> the following error :
> C:\Users\MICROSOFT\Desktop\mono-2.0.1\mono-2.0.1\mcs\mcs>mono mcs.exe
> g:\hello.c s
> error CS0016: Could not write to file `g:\hello.exe', cause: Could not
> find a part of the path "g:\hello.exe".
> Compilation failed: 1 error(s), 0 warnings
> When I put the hello.cs in the same directory as mcs.exe, it works fine
> but when I move it to any other directory, I get the CS0016 error.
The compiler ([g]mcs.exe) must be copied to and started from
Otherwise the compiler can't find the core system assemblies,
because it assumes they are in the same directory like itself.
This is by design.
More information about the Mono-devel-list