Skip to content

Instantly share code, notes, and snippets.

@cschweers
cschweers / Enable_vt100_csharp.cs
Created December 19, 2022 10:11 — forked from tomzorz/Enable_vt100_csharp.cs
Enable VT100 for the current console window from .NET Core
using System;
using System.Runtime.InteropServices;
namespace Vt100Test
{
public class Program
{
// ReSharper disable InconsistentNaming
@cschweers
cschweers / PreBuild.targets.xml
Last active August 29, 2015 14:23 — forked from thoemmi/PreBuild.targets.xml
MSBuild script to incorporate 'git describe' information into a .NET assembly
<?xml version="1.0" encoding="utf-8" ?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!-- usage:
* comment out
- AssemblyVersion
- AssemblyFileVersion
in 'Properties\AssemblyInfo.cs' and add 'Properties\CommonAssemblyInfo.cs' to the project/solution
* apply at least one tag to the repository. Example: 'v0.1'
* access information via the following function: