mirror of
https://github.com/wiz0u/WTelegramClient.git
synced 2025-12-06 06:52:01 +01:00
Set nuget package metadata
This commit is contained in:
parent
95870c485d
commit
aec4dc0f97
|
|
@ -1,7 +1,7 @@
|
||||||
trigger:
|
trigger:
|
||||||
- master
|
- master
|
||||||
|
|
||||||
name: 0.7.$(Rev:r)
|
name: 0.7-alpha.$(Rev:r)
|
||||||
|
|
||||||
pool:
|
pool:
|
||||||
vmImage: ubuntu-latest
|
vmImage: ubuntu-latest
|
||||||
|
|
@ -31,7 +31,8 @@ steps:
|
||||||
- task: NuGetCommand@2
|
- task: NuGetCommand@2
|
||||||
inputs:
|
inputs:
|
||||||
command: 'push'
|
command: 'push'
|
||||||
packagesToPush: '$(Build.ArtifactStagingDirectory)/**/*.nupkg;!$(Build.ArtifactStagingDirectory)/**/*.symbols.nupkg'
|
packagesToPush: '$(Build.ArtifactStagingDirectory)/**/*.*upkg;!$(Build.ArtifactStagingDirectory)/**/*.symbols.*upkg'
|
||||||
|
publishPackageMetadata: true
|
||||||
nuGetFeedType: 'internal'
|
nuGetFeedType: 'internal'
|
||||||
publishVstsFeed: 'wiz0u'
|
publishVstsFeed: 'wiz0u'
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -490,12 +490,10 @@ namespace WTelegram
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//TODO: include XML comments in nuget?
|
|
||||||
|
|
||||||
/// <summary>Helper function to send a text or media message more easily</summary>
|
/// <summary>Helper function to send a text or media message more easily</summary>
|
||||||
/// <param name="peer">destination of message</param>
|
/// <param name="peer">destination of message</param>
|
||||||
/// <param name="caption">media caption</param>
|
/// <param name="caption">media caption</param>
|
||||||
/// <param name="mediaFile"><see langword="null"/> or a media file already uploaded to TG <i>(see <see cref="UploadFileAsync">UploadFileAsync</see>)</i></param>
|
/// <param name="mediaFile">media file already uploaded to TG <i>(see <see cref="UploadFileAsync"/>)</i></param>
|
||||||
/// <param name="mimeType"><see langword="null"/> for automatic detection, <c>"photo"</c> for an inline photo, or a MIME type to send as a document</param>
|
/// <param name="mimeType"><see langword="null"/> for automatic detection, <c>"photo"</c> for an inline photo, or a MIME type to send as a document</param>
|
||||||
public Task<UpdatesBase> SendMediaAsync(InputPeer peer, string caption, InputFileBase mediaFile, string mimeType = null, int reply_to_msg_id = 0, MessageEntity[] entities = null, DateTime schedule_date = default, bool disable_preview = false)
|
public Task<UpdatesBase> SendMediaAsync(InputPeer peer, string caption, InputFileBase mediaFile, string mimeType = null, int reply_to_msg_id = 0, MessageEntity[] entities = null, DateTime schedule_date = default, bool disable_preview = false)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -4,9 +4,23 @@
|
||||||
<OutputType>Library</OutputType>
|
<OutputType>Library</OutputType>
|
||||||
<TargetFramework>net5.0</TargetFramework>
|
<TargetFramework>net5.0</TargetFramework>
|
||||||
<RootNamespace>WTelegram</RootNamespace>
|
<RootNamespace>WTelegram</RootNamespace>
|
||||||
|
<Deterministic>true</Deterministic>
|
||||||
|
<GenerateDocumentationFile>True</GenerateDocumentationFile>
|
||||||
|
<IncludeSymbols>true</IncludeSymbols>
|
||||||
|
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
|
||||||
|
<PublishRepositoryUrl>true</PublishRepositoryUrl>
|
||||||
|
<PackageId>WTelegramClient</PackageId>
|
||||||
<Description>Telegram client library written 100% in C# and .NET Core</Description>
|
<Description>Telegram client library written 100% in C# and .NET Core</Description>
|
||||||
<Authors>Wizou</Authors>
|
<Authors>Wizou</Authors>
|
||||||
|
<Copyright>Copyright © Olivier Marcoux 2021</Copyright>
|
||||||
|
<PackageTags>Telegram;Client;Api;UserBot;MTProto</PackageTags>
|
||||||
<PackageProjectUrl>https://github.com/wiz0u/WTelegramClient</PackageProjectUrl>
|
<PackageProjectUrl>https://github.com/wiz0u/WTelegramClient</PackageProjectUrl>
|
||||||
|
<RepositoryUrl>https://github.com/wiz0u/WTelegramClient.git</RepositoryUrl>
|
||||||
|
<RepositoryType>git</RepositoryType>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
|
||||||
|
<NoWarn>1701;1702;1573;1591;0419</NoWarn>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|
@ -17,6 +31,7 @@
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Crc32.NET" Version="1.2.0" />
|
<PackageReference Include="Crc32.NET" Version="1.2.0" />
|
||||||
|
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue