I have the scenario as there are four projects named as
1) Freedom.Composite.Core
2) Freedom.Composite.Styles(Catalogs,Commands,Converters,LoggerComponents,LoggersViewModelHelper)
3) Freedom.Core.XmlSerializers(Different Styles of the UI)
4) SyncDash(There are views into it.The )
When I execute these project it prompts me "A project with output type of class library could not be started directly.
In orderto debug these project,add an executable project to this solution which references the library project.Set the executable project as the startup project."
So for this I have made a hello world project referring the link http://msdn.microsoft.com/en-us/library/ff921141(v=pandp.40).aspx
So got it from the sample Application that it is the 'Bootstrapper that loads the projects'.
The source code for the Bootstrapper is as Given below.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using Microsoft.Practices.Prism.Modularity;
using Microsoft.Practices.Prism.UnityExtensions;
using Microsoft.Practices.Unity;
namespace HelloWorld.Desktop
{
class Bootstrapper : UnityBootstrapper
{
protected override DependencyObject CreateShell()
{
return new Shell();
}
protected override void InitializeShell()
{
base.InitializeShell();
Application.Current.MainWindow = (Window)this.Shell;
Application.Current.MainWindow.Show();
}
protected override void ConfigureModuleCatalog()
{
base.ConfigureModuleCatalog();
ModuleCatalog moduleCatalog = (ModuleCatalog)this.ModuleCatalog;
// moduleCatalog.AddModule(typeof(HelloWorldModule2.HelloWorldModule2));
//moduleCatalog.AddModule(typeof(SyncDash.Views.SyncDashMainView));
moduleCatalog.AddModule(typeof(SyncDash.Views.UCSyncSettings));
//moduleCatalog.AddModule(typeof(SyncDash.Views.UCServiceBusSettings));
}
}
}
So when I run the Solution It gives me an Activation Exception....I really need to run this solution on a high priority...Please help me .....Its on a high priority .Thanks in advance .