Table of Contents

Getting Started With the LisRT Framework

  1. Create a new WPF-Application.

  2. Install the Loehnert.Lisrt package.

  3. Change your App.xaml file to:

     <Application xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
                  xmlns:Lisrt="clr-namespace:Loehnert.Lisrt;assembly=Loehnert.Lisrt">
         <Application.Resources>
             <ResourceDictionary>
                 <ResourceDictionary.MergedDictionaries>
                     <ResourceDictionary>
                         <Lisrt:AppBootstrapper x:Key="bootstrapper" />
                     </ResourceDictionary>
                 </ResourceDictionary.MergedDictionaries>
             </ResourceDictionary>
         </Application.Resources>
     </Application>
    
  4. Delete the MainWindow.xaml file.

  5. Use this folder structure:

    ├── lisrt/
    │   ├── bin/                          # Binary files, compiled program
    │   ├── src/                          # Source code
    │   │   ├── UserDocs/                 # User documentation
    │   │   │   ├── APackageName/         # User documentation, installed by Nuget packages
    │   │   │   │   ├── de/
    │   │   │   │   └── en/
    │   │   │   ├── locale/               # Common translations for AsciiDoctor 
    │   │   │   └── YourProjectName.adoc  # User documentation as asciidoc
    │   │   ├── YourProjectNameAsFolder/
    │   │   └── SolutionToYourProject.sln
    │   └── workspace/                
    │       ├── configuration
    │       │   ├── user/
    │       │   │   ├── user1/
    │       │   │   │   └── user.settings # User defined settings
    │       │   │   └── user2/
    │       │   │       └── user.settings
    │       │   ├── options.settings
    │       │   ├── modules.config        # pconfig, machine configuration
    │       │   └── NLog.config           # configuration for logger
    │       └── script                    # script files, libraries referenced from a script
    ├── Log
    └── Plc
    
  6. Move the NLog.config to /Lisrt/Workspace/Configuration

  7. Add the AssemblySourceAttribute to the AssemblyInfo.cs (required for MEF support).

    [assembly: Gemini.AssemblySource]
    
  8. Press F5 to start your LisRT application.