I'm working on a Visual Studio C# project (.net 4.7.2) where I need to store some private API keys as constants. The project gets uploaded to a public github repo, but I don't want the API keys to be shared.
What is the best practice for achieving this?
It seems if I create a Constants class file with a static class containing the constant values, then omit file via .gitignore, the project won't build for other users who download it because the file will be missing. If I upload the skeleton of the file first, then omit it via .gitignore, it won't be updated if I change or add new constants later.
I'm looking for best practices to achieve this.