Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Using extern alias in Xamarin Studio

$
0
0

I have a namespace and class name conflict between two external assemblies. In my Visual Studio solution I am able to solve this by giving one of the assemblies an alias in properties on the assembly reference.

I then can do the following when I need to use the aliased assembly:

extern alias MyAlias;
using MyAlias::Conflicted.NameSpace;

This works very nicely in Visual Studio but in Xamarin Studio there is no way I can find to set an alias for an assembly in my iOS project. I tried doing in manually in the project file, but this doesn't seem to get picked up when the project is built.

I get the following error:

The extern alias 'MyAlias' was not specified in -reference option

Is it possible to use extern aliases in Xamarin Studio?


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>