non-generic type 'Caliburn.Micro.Bootstrapper' cannot be used with type arguments

Topics: Bootstrappers & IoC, Bugs, Getting Started
Dec 18, 2011 at 11:55 AM

Can't seem to get Caliburn.Micro setup for WP7.1.

 

Error    1    The non-generic type 'Caliburn.Micro.Bootstrapper' cannot be used with type arguments    C:\Users\345232FGHFH7\documents\visual studio 2010\Projects\WPCaliburnTest\WPCaliburnTest\AppBootstrapper.cs    12    33    WPCaliburnTest

 

Error    2    Unable to load the metadata for assembly 'WPCaliburnTest'. This assembly may have been downloaded from the web.  See http://go.microsoft.com/fwlink/?LinkId=179545.  The following error was encountered during load: Could not load file or assembly 'WPCaliburnTest' or one of its dependencies. The system cannot find the file specified.    C:\Users\345232FGHFH7\documents\visual studio 2010\Projects\WPCaliburnTest\WPCaliburnTest\App.xaml    1    1    WPCaliburnTest

	public class AppBootstrapper : Bootstrapper<IShell>
	{
		CompositionContainer container;

***App,xaml***

<Application 
    x:Class="WPCaliburnTest.App"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"       
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:WPCaliburnTest">

    <!--Application Resources-->
    <Application.Resources>
        <local:AppBootstrapper x:Key="bootstrapper" />
    </Application.Resources>

</Application>

Dec 18, 2011 at 12:40 PM

Have read the link that is provided?

http://go.microsoft.com/fwlink/?LinkId=179545

When you downloaded the source you need to unblock the zip before unzipping..

Br Christoffer

Coordinator
Dec 18, 2011 at 5:05 PM

Also, the Bootstrapper works a little differently on the phone due to restrictions in the phone platform. You should be sure to read the phone specific docs here: http://caliburnmicro.codeplex.com/wikipage?title=Working%20with%20Windows%20Phone%207%20v1.1&referringTitle=Documentation

Dec 18, 2011 at 8:59 PM

Syggen, I used Nuget.

Dec 18, 2011 at 9:27 PM

EE, I am confused.

 

I am trying to follow this documentation: http://caliburnmicro.codeplex.com/wikipage?title=Nuget&referringTitle=Documentation

 

It doesn't seem to follow or suggest any changes to bootstrapper and by step three I get the errors I mentioned in the OP.

 

Either I misstepped, or the documentation on how to instal using NuGet no longer works (at least for 7.1).

 

Attempting to use the bootstrapper doesn't get one a working startup project as NuGet doesn't seem to have installed

            container.PerRequest<MainPageViewModel>();
            container.PerRequest<PivotPageViewModel>();
            container.PerRequest<TabViewModel>();

from you link here: http://caliburnmicro.codeplex.com/wikipage?title=Working%20with%20Windows%20Phone%207%20v1.1&referringTitle=Documentation

Could you take a moment and try the NuGet installation and directions for WP7.1 and see if I just messed it up, or if the instructions are no longer up to date due to some changes? Link here: http://caliburnmicro.codeplex.com/wikipage?title=Nuget&referringTitle=Documentation

Coordinator
Dec 19, 2011 at 2:10 AM

Actually, I think the current Nuget package is broken for WP7.1 because of platform changes and Nuget changes. You should get the latest from the repository until the next release.

Dec 19, 2011 at 4:02 AM

Thanks EE, if the NuGet Package is Fubar I'll try the repository. Perhaps, a cautionary note in the NuGet?

 

And Syggen I'll be sure to unblock the download.

 

Thank you both for the assistance.