Updated to .NET 9.0
This commit is contained in:
parent
b026bad176
commit
1c23ffbbe8
61 changed files with 344 additions and 753 deletions
SharpChat
|
@ -45,7 +45,7 @@ namespace SharpChat {
|
|||
if(!File.Exists(configFile) && configFile == CONFIG)
|
||||
ConvertConfiguration();
|
||||
|
||||
using IConfig config = new StreamConfig(configFile);
|
||||
using StreamConfig config = StreamConfig.FromPath(configFile);
|
||||
|
||||
if(hasCancelled) return;
|
||||
|
||||
|
@ -124,7 +124,7 @@ namespace SharpChat {
|
|||
|
||||
|
||||
const string mdb_config = @"mariadb.txt";
|
||||
string[] mdbCfg = File.Exists(mdb_config) ? File.ReadAllLines(mdb_config) : Array.Empty<string>();
|
||||
string[] mdbCfg = File.Exists(mdb_config) ? File.ReadAllLines(mdb_config) : [];
|
||||
|
||||
sw.WriteLine();
|
||||
sw.WriteLine("# MariaDB configuration");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue