I have several projects some of which are web applications and some are windows applications.
I wanted to globalize my settings, something like Connection Strings because all the projects use the same connection string.
So I followed this example How to share custom application configuration settings across projects in .NETmy XML file is in the class library and that is referenced in each project. The windows project are working fine with the file path which is something like this in the client project: \[code\]<configuration> <appSettings file="F:\Classes\ConnectionStringFile.xml"> </appSettings> </configuration>\[/code\]I also want to be able to use this xml file from a web project. however, the web project would not accept the path to this file as shown earlier. What is the best approach or say, best solution to have this connection string file shared amongst web projects as well as windows projects. What do i pass in something like \[code\]<appSettings file ="~/classLibrary/ConnectionStringFile.xml"\[/code\] ???`
I wanted to globalize my settings, something like Connection Strings because all the projects use the same connection string.
So I followed this example How to share custom application configuration settings across projects in .NETmy XML file is in the class library and that is referenced in each project. The windows project are working fine with the file path which is something like this in the client project: \[code\]<configuration> <appSettings file="F:\Classes\ConnectionStringFile.xml"> </appSettings> </configuration>\[/code\]I also want to be able to use this xml file from a web project. however, the web project would not accept the path to this file as shown earlier. What is the best approach or say, best solution to have this connection string file shared amongst web projects as well as windows projects. What do i pass in something like \[code\]<appSettings file ="~/classLibrary/ConnectionStringFile.xml"\[/code\] ???`