Blog Viewer

Generate and Add the Constants .dll

  

Introduction

You code should never use any strings. Any values you need to enter in the code should be called from the constants dynamic link library. This keeps your code from failing to compile because of typos.

QUICK STEPS
1 In S3, build the rules assembly
2 In Visual Studio, open the NeoSpinBusinessObjects project
3 Add a Reference
4 Browse for NeoSpinConstants.dll
5 Add the reference
6 Rebuild NeoSpinBusinessObjects


Detailed Steps

Step 1. In S3, build the rules assembly. 

Select Build Rules Assembly - Release Mode from the Tools menu. This creates a dynamic link library with all the constants.





Step 2. In Visual Studio, open the NeoSpinBusinessObjects project. 

You're going to add the constants assembly to this project.




Step 3. Add a Reference. 

Right click references and click Add Reference.





Step 4. Browse to NeoSpinConstants.dll.

This is the dynamic link library S3 created when you built the rules. It will always be in your project's Bin folder in the Code folder.





Step 5. Add the reference. 

    Select NeoSpinConstants.dll and click Add. Select it in the Reference Manager and click OK.

     





    Step 6. Rebuild NeoSpinBusinessObjects. 

    Close the business tier if necessary and rebuild the project so it can access the assembly.


    This post is part of the Rules topic. Click here to open the Rules Overview.

    #Develop
    #Everyone
    #Text Help
    #Task Steps
    #Rules

    0 comments
    37 views

    Permalink