Skip to content

Instantly share code, notes, and snippets.

# Script that Scaffolds .NET Projects
param([string] $Name, [string] $ProjectFolder)
$originalLocation = Get-Location
if ([string]::IsNullOrWhiteSpace($ProjectFolder) -ne $true)
{
New-Item -Path $ProjectFolder -ItemType Directory
Set-Location $ProjectFolder
@rena0157
rena0157 / .editorconfig-dotnet
Created August 24, 2020 13:25
The .editorconfig that I use in my dotnet projects
# Remove the line below if you want to inherit .editorconfig settings from higher directories
root = true
# C# files
[*.cs]
#### Core EditorConfig Options ####
# Indentation and spacing
indent_size = 4
@rena0157
rena0157 / HttpPostBodyReader.cs
Created December 12, 2018 21:58
ASP.NET Core API HttpContext Body Reader.
/*
HttpPostBodyReader.cs
By: Adam Renaud
Created: 2018-12-12
For use in ASP.NET Core applications
A piece of code that I always forget and sometimes
need when building a web API. Thought I would create
A GIST out of it.
@rena0157
rena0157 / CadNetBoilerPlate.cs
Created November 9, 2018 19:02
AutoCAD .NET Boiler Plate Command
// Note that additional assemblies are also required
using System.Collections.Generic;
using System.Linq;
using Autodesk.AutoCAD.ApplicationServices.Core;
using Autodesk.AutoCAD.DatabaseServices;
using Autodesk.AutoCAD.EditorInput;
using Autodesk.AutoCAD.Runtime;
namespace AutoListAC