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

New Post: Designtime support when there is no App.xaml

$
0
0

It seems that in Caliburn Micro 1.4 I have to override SelecteAssemblies in my DesignTimeBootstrapper

 

using System.Collections.Generic;
using System.Reflection;
using Caliburn.Micro;
using Common;
internalclass DesignTimeBootstrapper : Bootstrapper<IShell>
{
    protectedoverridevoid Configure()
    {
        Conventions.ConfigureAll();
    }

    // this method had to be overriddenprotectedoverride IEnumerable<Assembly> SelectAssemblies()
    {
        yieldreturntypeof (DesignTimeBootstrapper).Assembly;
    }
}

Now I will donate another 20€ to this project if someone can plausibly explain, why I have to do this now.Looking at the checkin hisory of this project, I can't find the root cause of this breaking change by myself. Why didn't I have to overrideSelectAssemblies in 1.3 (it could resolve the Views correctly at designtime) but now in 1.4 I have to.


Viewing all articles
Browse latest Browse all 1760

Trending Articles



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