Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Environment Variable in Class Library

$
0
0

Hi!

I'm trying to create a class library in my solution, and I want it to access the Environment Variable, so I can choose the correct db connection string.  Does anybody know how to do that?  Since my main project is dependent on the class library, I can't make the class library dependent on the main project to access that variable.

Thanks!


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>