Ambiguous reference Coding4Fun and Microsoft Toolkit RootFrame class after 2.0.4 update

Mar 29, 2013 at 9:38 AM
HI, my WP app uses both Microsoft Toolkit and Coding4Fun Toolkit. And after updating Coding4Fun Toolkit - Controls package to 2.0.4 I've got an error:

The type 'Microsoft.Phone.Controls.TransitionFrame' exists in both '...packages\Coding4Fun.Toolkit.Controls.2.0.4\lib\wp71\Coding4Fun.Toolkit.Controls.dll' and '...packages\WPtoolkit.4.2012.10.30\lib\sl4-windowsphone71\Microsoft.Phone.Controls.Toolkit.dll'

It was solved by 3 simple steps:
  1. adding Microsoft.Phone.Controls.Toolkit reference new alias "mstoolkit" (go for "Solution-> References-> Microsoft.Phone.Controls.Toolkit-> properties-> Aliases" and set value to "global, mstoolkit");
  2. in App.xaml.cs before usings section add string "extern alias mstoolkit;"
  3. and in InitializePhoneApplication() metod init RootFrame like this: RootFrame = new mstoolkit::Microsoft.Phone.Controls.TransitionFrame();
Maybe this will help someone with same problem.
Mar 29, 2013 at 4:44 PM
Looking into this and will push a hot fix as soon as it is resolved.
Mar 29, 2013 at 5:23 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.
Mar 29, 2013 at 5:54 PM
Hot fix pushed out on codeplex and nuget