Skip to content

Instantly share code, notes, and snippets.

View ap0llo's full-sized avatar
💭
🚀

Andreas Grünwald ap0llo

💭
🚀
View GitHub Profile
# https://gist.github.com/ap0llo/89f968508ccf1d9993393ffa0ce37f88
function Open-GitHub([string]$Path) {
if (($null -eq $Path) -or ($Path -eq "")) {
$Path = (Get-Location).Path
}
$Path = (Resolve-Path $Path -ErrorAction Stop).Path
# https://gist.github.com/ap0llo/9d7cab3a4d05bb3b43720d2997c03d9f
function Set-LocationToRepository([Parameter(Mandatory = $false)][string]$Name) {
if (-not $RepositoriesDirectory) {
$RepositoriesDirectory = Join-Path $env:USERPROFILE "source\repos"
}
if (-not (Test-Path -Path $RepositoriesDirectory -PathType Container)) {
throw "Repositories directory '$RepositoriesDirectory' does not exist."
@ap0llo
ap0llo / Project-with-manual-Import.csproj
Last active August 12, 2019 17:05
Repro - OpenCover Issue #910
<Project>
<Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk" />
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<RootNamespace>Project_with_manual_Import</RootNamespace>
</PropertyGroup>
<ItemGroup>