This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.SYNOPSIS | |
Increment .NET *.csproj file version. | |
.DESCRIPTION | |
Script will increment either the minor or patch version for all projects under /src. | |
.PARAMETER mode | |
Specify 'minor' or 'patch' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$doc = [Environment]::GetFolderPath("MyDocuments") | |
New-Alias vs2019 $doc\PowerShell\vs2019.ps1 | |
# Set-Alias code "$env:LOCALAPPDATA\Programs\Microsoft VS Code Insiders\Code - Insiders.exe" #"$env:Programfiles\Microsoft VS Code Insiders\bin\code-insiders.cmd" | |
function code { | |
#$code_path="$env:LOCALAPPDATA\Programs\Microsoft VS Code Insiders\Code - Insiders.exe" | |
$code_path="C:\Program Files\Microsoft VS Code Insiders\Code - Insiders.exe" | |
if ($args.Count -eq 0) { | |
Start-Process -FilePath $code_path |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Attempt by method 'DynamicClass.lambda_method(System.Runtime.CompilerServices.Closure)' | |
to access type 'System.ComponentModel.Composition.Hosting.ComposablePartCatalogCollection' failed. | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using (FileStream rdr = new FileStream(contentInfo.FullName, FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) | |
{ { | |
index = 1; | |
while (true) | |
{ | |
long offset = (index - 1) * chunkSize; | |
long remaining = contentInfo.Length - offset; | |
if (remaining < 1) break; // Stop processing, at the end of the file | |
// stuff that doesn't ever touch the index variable |