Skip to content

Instantly share code, notes, and snippets.

@janv8000
janv8000 / DotNet4Console.csproj
Created August 5, 2024 12:59 — forked from commonsensesoftware/DotNet4Console.csproj
.NET 4.0 Console using VS2022
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net40</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies.net40" Version="1.0.2">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>

The pull request emoji code

  • 👍 I like this. Use this to motivate people. Don’t overuse it, but certainly point out if you like something.
  • ❓ I have a concrete question. There is nothing here to be changed yet.
  • ❌ Here is an actual problem. Please change this according to my suggestion. It might be a bug or a strict code style fix.
  • 🔧 Here is an idea/suggestion. I think it would improve things, but feel free to disagree :)
  • 🙃 This is a nitpick. Feel free to change of leave it.
  • 🤔 This might be wrong. Let’s talk about it, maybe we can come up with a better solution
  • 🤡 Here is a problem independent from your work. It would be nice if we would open up a ticket and discuss about that.
public class DatabaseDeleter
{
private readonly ISessionFactory _configuration;
private static readonly string[] _ignoredTables = new[] { "sysdiagrams", "usd_AppliedDatabaseScript" };
private static string[] _tablesToDelete;
private static string _deleteSql;
private static object _lockObj = new object();
private static bool _initialized;
public DatabaseDeleter(ISessionFactory sessionSource)
@janv8000
janv8000 / Get-FrameworkVersions.ps1
Last active May 24, 2018 14:25 — forked from drmohundro/Get-FrameworkVersions.ps1
PowerShell script to return all installed .NET Framework versions.
<#
.Synopsis
Returns the install .NET Framework versions.
.Description
The script looks through the registry using the notes from the below
MSDN links to determine which versions of .NET are installed.