Quantcast
Channel: Caliburn.Micro: Xaml Made Easy
Viewing all articles
Browse latest Browse all 1760

Commented Issue: "'System.Func' is defined in multiple assemblies" with Microsoft.Bcl.Async package [254]

$
0
0
When using CM in a WP7.1 project and also using the new Microsoft.Bcl.Async package (https://nuget.org/packages/Microsoft.Bcl.Async) with the following compilation error results:

Error 1 The predefined type 'System.Func' is defined in multiple assemblies in the global alias; using definition from 'c:\dev\Gardiner.PublicToilets-hg\packages\Caliburn.Micro.1.0.0\lib\SL40-wp\Caliburn.Micro.dll' C:\dev\Gardiner.PublicToilets-hg\Gardiner.PublicToilets\error CS1685 Gardiner.PublicToilets

This seem to be due to the inclusion of the System.Func delegate in Caliburn Micro
Comments: A similar warning comes up when using CM with WP8: The predefined type 'System.Func' is defined in multiple assemblies in the global alias; using definition from 'c:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.0\mscorlib.dll' The predefined type 'System.Action' is defined in multiple assemblies in the global alias; using definition from 'c:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.0\mscorlib.dll' I suppose this is what mvermef was refering to in his comment.

Viewing all articles
Browse latest Browse all 1760

Trending Articles



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