Echelon LNS Plug-in User Manual

Page 20

Advertising
background image

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.

Advertising