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

Setting and using Environment Variables in Visual Studio 2017

$
0
0

I've been doing a bit of searching for a guide on environment variables and how to use them but I'm only finding old documentation and most of this documentation only goes into how to set the environment variable anyways.  I'm writing an app which uses MailKit to send transaction emails to users who register an account but in order to do this I have to authenticate the credentials of the account I'm sending the emails from and this happens in my code.  My friend had suggested using environment variables as to hide these credentials from anyone who looks at the code.  I'm a fairly new developer and any help or guidance would be appreciated.  Environment variables may not even be my answer but I know that I want to hide these details.  Thanks in advance!


Viewing all articles
Browse latest Browse all 9386

Trending Articles



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