mirror of
https://github.com/wiz0u/WTelegramClient.git
synced 2025-12-06 06:52:01 +01:00
Log precise version of lib
This commit is contained in:
parent
ec6fb6c0c0
commit
4418f562cb
7
.github/release.yml
vendored
7
.github/release.yml
vendored
|
|
@ -14,6 +14,13 @@ stages:
|
|||
jobs:
|
||||
- job: publish
|
||||
steps:
|
||||
- task: UseDotNet@2
|
||||
displayName: 'Use .NET Core sdk'
|
||||
inputs:
|
||||
packageType: 'sdk'
|
||||
version: '6.0.x'
|
||||
includePreviewVersions: true
|
||||
|
||||
- task: DotNetCoreCLI@2
|
||||
inputs:
|
||||
command: 'pack'
|
||||
|
|
|
|||
|
|
@ -74,7 +74,8 @@ namespace WTelegram
|
|||
if (_session.MainDC != 0) _session.DCSessions.TryGetValue(_session.MainDC, out _dcSession);
|
||||
_dcSession ??= new() { Id = Helpers.RandomLong() };
|
||||
_dcSession.Client = this;
|
||||
Helpers.Log(1, $"WTelegramClient {Assembly.GetExecutingAssembly().GetName().Version} running under {System.Runtime.InteropServices.RuntimeInformation.FrameworkDescription}");
|
||||
var version = Assembly.GetExecutingAssembly().GetCustomAttribute<AssemblyInformationalVersionAttribute>().InformationalVersion;
|
||||
Helpers.Log(1, $"WTelegramClient {version[..version.IndexOf('+')]} running under {System.Runtime.InteropServices.RuntimeInformation.FrameworkDescription}");
|
||||
}
|
||||
|
||||
private Client(Client cloneOf, Session.DCSession dcSession)
|
||||
|
|
|
|||
Loading…
Reference in a new issue