AzurePoolCrossDbGenerator/Configs.cs
/// <summary>
/// Save a single config file. No overwrites.
/// </summary>
Save a single config file. No overwrites.
Save a single config file . No overwrites .
public static void SaveConfigFile(string FileName, string configContents)
            {
                string currentDirectory = Directory.GetCurrentDirectory();
                string configPath = Path.Combine(currentDirectory, FileName);
                if (File.Exists(configPath))
                {
                    Program.WriteLine($"{FileName} already exists.", ConsoleColor.Yellow);
                }
                else
                {
                    File.WriteAllText(configPath, configContents, System.Text.Encoding.UTF8);
                    Program.WriteLine($"{FileName} written.");
                }
            }
public static void SaveConfigFile ( string FileName , string configContents ) { string currentDirectory = Directory . GetCurrentDirectory ( ) ; string configPath = Path . Combine ( currentDirectory , FileName ) ; if ( File . Exists ( configPath ) ) { Program . WriteLine ( $" { FileName }  already exists. " , ConsoleColor . Yellow ) ; } else { File . WriteAllText ( configPath , configContents , System . Text . Encoding . UTF8 ) ; Program . WriteLine ( $" { FileName }  written. " ) ; } }
Save a single config file.
Save a single config file .
FileName
string
configContents
string