From 16e599bed8e94d4e5baa705e677866d6ff1b4fff Mon Sep 17 00:00:00 2001 From: Rikitav Date: Tue, 29 Jul 2025 05:14:57 +0400 Subject: [PATCH] * Added helper analyzer packing to main package --- Telegrator.Analyzers/Telegrator.Analyzers.csproj | 1 - Telegrator.Hosting.Web/TelegramBotWebOptions.cs | 2 ++ Telegrator.sln | 2 ++ Telegrator/Telegrator.csproj | 7 +++++-- 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/Telegrator.Analyzers/Telegrator.Analyzers.csproj b/Telegrator.Analyzers/Telegrator.Analyzers.csproj index df29263..4192c34 100644 --- a/Telegrator.Analyzers/Telegrator.Analyzers.csproj +++ b/Telegrator.Analyzers/Telegrator.Analyzers.csproj @@ -7,7 +7,6 @@ enable true Debug;Release;AnalyzersDebug - True diff --git a/Telegrator.Hosting.Web/TelegramBotWebOptions.cs b/Telegrator.Hosting.Web/TelegramBotWebOptions.cs index de18089..3682259 100644 --- a/Telegrator.Hosting.Web/TelegramBotWebOptions.cs +++ b/Telegrator.Hosting.Web/TelegramBotWebOptions.cs @@ -1,4 +1,5 @@ using Microsoft.AspNetCore.Builder; +using System.Diagnostics.CodeAnalysis; namespace Telegrator.Hosting.Web { @@ -11,6 +12,7 @@ namespace Telegrator.Hosting.Web /// /// Gets or sets HTTPS URL to send updates to. Use an empty string to remove webhook integration /// + [StringSyntax(StringSyntaxAttribute.Uri)] public required string WebhookUri { get; set; } /// diff --git a/Telegrator.sln b/Telegrator.sln index 1aa8128..f9bed94 100644 --- a/Telegrator.sln +++ b/Telegrator.sln @@ -18,6 +18,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Telegrator.Analyzers", "Telegrator.Analyzers\Telegrator.Analyzers.csproj", "{8B6A32EA-ECF7-4CAB-A1E5-2392063C986D}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Telegrator.Hosting.Web", "Telegrator.Hosting.Web\Telegrator.Hosting.Web.csproj", "{98AB490F-6A36-CCFF-F6E6-B029D1665965}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution AnalyzersDebug|Any CPU = AnalyzersDebug|Any CPU diff --git a/Telegrator/Telegrator.csproj b/Telegrator/Telegrator.csproj index cd0d8fa..907f6fc 100644 --- a/Telegrator/Telegrator.csproj +++ b/Telegrator/Telegrator.csproj @@ -39,9 +39,12 @@ - + + + + + -