Introduction

This page will show basic introduction of using ZeroFramework.

Getting started

There are few steps required to set up correct solution and project structure. To start, first choose name of your application.
  1. Download and install NuGet Visual Studio extension : http://www.nuget.org/
  2. Create new blank solution.
  3. Create new Class Library project and name it <application name>.Common
    • Remove the Class1.cs file
  4. Create new WCF Service Application project named <application name>.Backend
    • Remove IService1.cs and Service1.svc files
    • In Web.config file, remove whole <behaviors> tree.
    • To this project add refference to Common project library
    • In Web.config file change connection string to the database you want to use. If no such database exists, it will be created.
  5. Create new WPF Application project and name it <application name>.Frontend
    • Remove App.xaml and MainWindow.xaml files
    • Again add reference to Common project library
    • Set this project as default startup
  6. Open NuGet Package Manager Console.
  7. Select Common project as default project!
    1. Run command: Install-Package ZeroFramework.Common
  8. Select Backend project as default project!
    1. Run command: Install-Package ZeroFramework.Backend
  9. Select Frontend project as default project!
    1. Run command Install-Package Caliburn.Micro
    2. Remove files AppBootstrapper.cs, IShell.cs, ShellViewMode.cs and ShellView.xaml
    3. Run command Install-Package ZeroFramework.Frontend
    4. In properties of file App.xaml set BuildAction property to ApplicationDefinition
  10. In settings of Backend project, on Web tab, select your prefered debug hosting case.
    • In App.Config in Frontend project, change address of endpoint named 'ZeroServiceEndpoint' to selected address and port.

Configuring MEF

ZeroFramework uses MEF to resolve dependencies. To add assemblies to this resolution process edit method SelectAssemblies in class AppBootstrapper. There either load assembly by name or use typeof(<type in assebly>).Assembly declaration to load referenced assembly using strong-name of type in this assembly.

Scaffolding

There is option available to scaffold (code-generation) basic use-case classes throught ZeroScaffolding library.

Last edited May 18, 2011 at 5:42 AM by Falhar, version 7

Comments

No comments yet.