[mono-android] Can not build WCF proxy generated by slsvcutil.exe 'ChannelBase' could not be found

Felix Collins felix at intranel.com
Wed Jan 25 21:53:57 UTC 2012


I finally figured out what I was doing wrong.  I have projects in the same solution that target .net and mono android/touch. Not surprisingly the proxy as generated from slsvcutil.exe won't compile when targeting .net but does build for mono.  The solution was to enclose the CreateChannel override  and the private Channel class in a #if MONOTOUCH block and define MONOTOUCH for those projects. This means the static proxy is only compiled for monotouch where it is actually needed.

Sorry for the noise on the list....
Felix


More information about the Monodroid mailing list