[Mono-devel-list] MCS library referencing.

Todd Berman tberman at sevenl.net
Wed Jun 2 12:16:05 EDT 2004


Currently, mcs allows you to do two things that csc does not wrt library 
referencing on the commandline.

The first is:

mcs test.cs -r:System.Web

will compile successfully, where as the equivalent csc line gives you an 
CS0006: Metadata file 'System.Web' could not be found.

This same error is seen in other places as well, where the .dll is left 
off the commandline. MCS attempts to be smart (with good results) and 
appends a .dll for you if it needs to.

It seems like we need to remove those checks, and require .dll on the 
end. This is very much similar to the reason the /package stuff exists 
in mcs. When compiling, you are supposed to compile against a specific 
assembly file, not against something abstract.

Any thoughts?

--Todd



More information about the Mono-devel-list mailing list