DANSrv Reference
Visual Studio Solution
Send comments on this topic.
DANSrv OPC DA .Net Server Toolkit > Getting Started > Visual Studio Solution

Glossary Item Box

The DANSrv project wizard creates a Solution with one project.

Task Description

Application Project

This VB or C# project has the name of the project as defined in the project creation.
It contains all the customization source files and creates the customization assembly with the name NSPlugin.dll respectively NSPluginNet4.dll. Don't change this name since it is referenced from the generic server DANSrv.exe / DANSrvNet4.exe.
The generic server DANSrv.exe / DANSrvNet4.exe and the registration RegServer.exe utility are copied into the project directory.

Post Build Event

 

The Post Build Event copies:
- the generic server ( DANSrv.exe / DANSrvNet4.exe )
- the application configuration file ( DANSrv.exe.config / DANSrvNet4.exe.config )
- the server registration utility RegServer.exe

into the application output directory ( debug or release, depending on the current selection ) and registers the OPC server.

C# executes the Post Build event automatically after each successful compilation.
Visual Basic doesn't support this feature. The files listed above need to be copied manually. The wizard defines the Post Build Event for VB and it works as long as the VS solution is not closed. If the solution is closed and opened again then the Post Build Event is not defined anymore because Visual Studio does not save the Post Build Event in a Visual Basic project.



Item Configuration If the server's item configuration is defined in an external XML file then this file has to be copied to the output directory before the server is connected. The server throws an exception if the file is not found in the EXE directory.

© 2002-2017 Copyright Advosol Inc. All Rights Reserved.