-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathProgram.cs
29 lines (24 loc) · 961 Bytes
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
using System;
using System.Linq;
using System.Reflection;
using System.Runtime.InteropServices;
using SkiaSharp;
namespace docker
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine($"Starting the app...");
var os = RuntimeInformation.OSDescription;
Console.WriteLine($"Your operating system is {os}.");
var assembly = typeof(SKImageInfo).Assembly;
var attributes = assembly.GetCustomAttributes(typeof(AssemblyInformationalVersionAttribute));
var versionAttr = (AssemblyInformationalVersionAttribute)attributes.FirstOrDefault();
Console.WriteLine($"You are using SkiaSharp version {versionAttr?.InformationalVersion}.");
var colorType = SKImageInfo.PlatformColorType;
Console.WriteLine($"The color type for your platform is {colorType}.");
Console.WriteLine($"All done.");
}
}
}