Skip to content

Instantly share code, notes, and snippets.

View OsirisTerje's full-sized avatar
💭
Working on the NUnit3TestAdapter

Terje Sandstrom OsirisTerje

💭
Working on the NUnit3TestAdapter
View GitHub Profile
@OsirisTerje
OsirisTerje / BaseConfigTests.cs
Last active November 30, 2022 17:32
Base class for loading appsettingsconfigurations
using NUnit.Framework;
namespace Fhi.BaseConfigTests;
using System.IO;
using Microsoft.Extensions.Configuration;
public abstract class BaseConfigTests
{
mode: Mainline
branches:
master:
regex: ^master$|^main$|^develop$
ignore:
sha: []
merge-message-formats: {}
root = true
# All files
[*]
indent_style = space
# Xml files
[*.xml]
indent_size = 2
@OsirisTerje
OsirisTerje / History\-115c9aed\entries.json
Created September 8, 2022 18:31
Visual Studio Code Settings Sync Gist
{"version":1,"resource":"file:///d%3A/repos/fhi.itfelles/Fhi.ITDokumentasjon.wiki/Oversikt/Virksomhetsarkitektur.md","entries":[{"id":"pPDo.md","timestamp":1654602975260},{"id":"CjO0.md","timestamp":1654602992511},{"id":"B2n5.md","timestamp":1654603122349},{"id":"8RKf.md","timestamp":1654603134158},{"id":"DjT1.md","source":"moved.source","timestamp":1654603151824}]}
@OsirisTerje
OsirisTerje / killvstest.cmd
Created September 5, 2021 12:17
Cmd script for killing VS Test process including MSBuild - because sometimes these just hang
taskkill /T /F /FI "IMAGENAME eq vstest.*"
taskkill /T /F /FI "IMAGENAME eq TE.Processhost.*"
taskkill /T /F /FI "IMAGENAME eq testhost.*"
taskkill /T /F /FI "IMAGENAME eq MSBuild.*"
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<clear />
<add key="Nuget" value="https://api.nuget.org/v3/index.json" />
<add key="Local" value="c:\nuget" />
</packageSources>
</configuration>
@OsirisTerje
OsirisTerje / NetFrameWork.Legacy.CI.yml
Created November 14, 2019 19:08
Actions yml starter workflow for a .NetFramework build using the legacy project format
name: NetFrameWork.Legacy.CI
on: [push]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
[alias]
a = !git config --get-regexp alias
b = !git switch -c
br = !git switch -c origin/
s = !git status
sw = !git switch
swc = !git switch -c
swd = !git switch --detach
m = !git switch main
p = !git push
[user]
name = myname
email = mymail
[push]
default = simple
[core]
autocrlf = true
editor = 'C:/Program Files (x86)/Notepad++/notepad++.exe'
whitespace = true
[diff]
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Fusion]
"ForceLog"=dword:00000000
"LogFailures"=dword:00000000
"EnableLog"=dword:00000000
"LogResourceBinds"=dword:00000000