Updating example projects to .NET 6 and latest framework.

This commit is contained in:
FlorianDahn
2022-03-19 04:22:07 +01:00
parent d7a5c149b1
commit e2ac7975a5
9 changed files with 55 additions and 22 deletions
+4 -1
View File
@@ -1,4 +1,5 @@
using System;
using TelegramBotBase.Builder;
namespace SystemCommandsBot
{
@@ -19,7 +20,9 @@ namespace SystemCommandsBot
return;
}
var bot = new TelegramBotBase.BotBase<forms.StartForm>(BotConfig.ApiKey);
var bot = BotBaseBuilder.Create()
.QuickStart<forms.StartForm>(BotConfig.ApiKey)
.Build();
bot.Start();
@@ -2,12 +2,12 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
<PackageReference Include="TelegramBotBase" Version="3.1.1" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
<PackageReference Include="TelegramBotBase" Version="5.0.0" />
</ItemGroup>
</Project>