Getting Started With the LisRT Framework
Create a new WPF-Application.
Install the Loehnert.Lisrt package.
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>
Delete the MainWindow.xaml file.
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
Move the NLog.config to /Lisrt/Workspace/Configuration
Add the AssemblySourceAttribute to the AssemblyInfo.cs (required for MEF support).
[assembly: Gemini.AssemblySource]
Press F5 to start your LisRT application.