Skip to content

Instantly share code, notes, and snippets.

@KirillOsenkov
Created October 20, 2021 04:27
Show Gist options
  • Save KirillOsenkov/1d9baa3aacb1ed4c924b1e6436e001e0 to your computer and use it in GitHub Desktop.
Save KirillOsenkov/1d9baa3aacb1ed4c924b1e6436e001e0 to your computer and use it in GitHub Desktop.
{
"sdk": {
"allowPrerelease": true
}
}
using System;
public partial class Program
{
private readonly string _foo;
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>
</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