So, I have a .net project with an App.config file that's supposed to be filled, amongst other things, with an API key.
As an example:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="ApiToken" value="YOUR_API_TOKEN_HERE" />
</appSettings>
</configuration>
This is what is committed into the VCS for reference and to automatically build MyApp.dll.config
.
However, when I'd developing and debugging, it would be useful for me to have a local version of the file with the secrets filled in.
How can I achieve this?
Note: I would prefer this file-based approach to environment variables.