Skip to content

Instantly share code, notes, and snippets.

@KirillOsenkov
Created June 8, 2022 17:52
Show Gist options
  • Save KirillOsenkov/6ad4758ed62a0f7680e86c453f7249c4 to your computer and use it in GitHub Desktop.
Save KirillOsenkov/6ad4758ed62a0f7680e86c453f7249c4 to your computer and use it in GitHub Desktop.
using System;
public partial class Program
{
static void Main(string[] args)
{
Console.WriteLine();
_ = ThisAssembly.Info.InformationalVersion;
}
}
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<DebugType>embedded</DebugType>
<LangVersion>latest</LangVersion>
<Prefer32Bit>true</Prefer32Bit>
<OutputType>Exe</OutputType>
<Version>1.0.0</Version>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="ThisAssembly.AssemblyInfo" Version="1.0.8" />
</ItemGroup>
</Project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment