Manual
Table Of Contents
- Table of Contents
- Preface
- 1 Introduction
- 2 Creating and Redistributing LNS Device Plug ins
- 3 How Plug ins Work with Directors
- How Plug ins Are Represented in the LNS Object Server
- How Plug ins are Installed and Made Visible to LNS
- How Plug ins Implement the Registration Command
- How Plug ins Respond to Commands from a Director Other than Registration
- How Directors Launch and Manipulate Plug ins
- What Plug ins Do When They Run in Standalone Mode
- Responding to Property Reads and Writes
- Uninstallation Issues
- Appendix A Standard Plug in Commands
- Appendix B Standard Plug in Properties
- Appendix C Standard Plug in Object Classes
- Appendix D Standard Plug in Exceptions

7. Copy the PostBuild.bat file from the
LonWorks\ObjectServer\Examples\PluginFramework\ExampleCSPlugin to your project folder.
8. In the Post-build event command line property, enter the following line:
Call "$(ProjectDir)PostBuild.bat" "$(TargetPath)"
The PostBuild.bat file will carry out the post-build actions necessary to register your plug-in
during the development process. Specifically, it generates a COM Type Library and registers the
assembly for use with COM using RegAsm /tlb, and it registers the plug-in with LNS directors by
calling the plug-in with a /RegPlugin argument.
9. In the Run the post-build event property, select the When the build updates the project output
option.
10. Click the Debug tab.
11. In the Command line arguments property, enter -Embedding. This enables debugging of the
server.
12. Click Project and then click Add Reference. The Add Reference dialog opens.