Hello Tanuj,

> tangupta-mbp:Project tangupta$ mcs -recurse:'./rest-api-sdk/src/*.cs'
> -out:Test.dll -target:library -r:bin/Debug/RestSharp.dll
> -r:bin/Debug/Newtonsoft.Json.dll
>
> It gives the following error in which basic data types are not found which
> are defined in System.dll.
>  error CS0246: The type or namespace name `DataMember' could not be found.
> Are you missing an assembly reference?

Are you sure that DataMember is part of System.dll? A quick search on
the internet tells me it most probably is in
System.Runtime.Serialization.dll
see also 
http://stackoverflow.com/questions/12687315/datamember-could-not-be-found
So try adding -r:System.Runtime.Serialization.dll at the end of your command.

> If I give the single dll, It's not able to find the second assembly.
>
> tangupta-mbp:Project tangupta$ mcs -recurse:'./rest-api-sdk/src/*.cs'
> -out:Test.dll -target:library -r:bin/Debug/RestSharp.dll
>
> error CS0246: The type or namespace name `Newtonsoft' could not be found.
> Are you missing an assembly reference?
>
That would make sense. You are not specifying the Newtonsoft.Json.dll,
so it is complaining.

hope this helps,
Timotheus
_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.dot.net/mailman/listinfo/mono-list

Reply via email to