Class Library with App.Config files to store Connection string

  • Thread starter Thread starter labjac
  • Start date Start date
L

labjac

Guest
Hallo All

We are developing a project that consist of two parts. One is the configuration side for SQL connections and to setup the Shelves and machines in SQL.. (This is for a automation company, the machines is pick walls and robots, but all got different settings that stored in SQL).

The we have service application that is installed that constantly get data from the machines on the shop floor. The applications can work independently, meaning the user doesn't need to install the "Front End" and the "Service" together.

Picture attached:

1602369.jpg

The WCS_Core will keep all the common classes and connection string that can be used by either the FrontEnd or the Service projects, which can be deployed individually.

We create the WCS_Core as a class library and want to use the App.config to store the connection string classes and some configuration settings for project.

But for some reason we cannot access the AppConfiguration.App.config assume we require a reference which also cannot be added, can we use the app.config as per attached or is there a better option for configuration settings for both projects sharing the same files?

1602370.jpg

Best Regards,

labjac




labjac

Continue reading...
 
Back
Top