Skip to content

Instantly share code, notes, and snippets.

View NatMarchand's full-sized avatar

Nathanael Marchand NatMarchand

View GitHub Profile
@NatMarchand
NatMarchand / Program.cs
Created March 27, 2024 13:51
GlobalPackageReference
var path = @"";
var allVersions = new Dictionary<string, HashSet<string>>();
foreach (var file in Directory.EnumerateFiles(path, "*.*proj", SearchOption.AllDirectories))
{
var doc = XDocument.Load(file);
bool hasChanges = false;
foreach (var reference in doc.XPathSelectElements("//PackageReference"))
{
hasChanges = true;
var package = reference.Attribute("Include").Value;
var path = @"";
var allVersions = new Dictionary<string, HashSet<string>>();
foreach (var file in Directory.EnumerateFiles(path, "*.*proj", SearchOption.AllDirectories))
{
var doc = XDocument.Load(file);
bool hasChanges = false;
foreach (var reference in doc.XPathSelectElements("//PackageReference"))
{
hasChanges = true;
var package = reference.Attribute("Include").Value;
@NatMarchand
NatMarchand / resharper.yaml
Last active August 30, 2023 09:50
Resharper settings schema
AddReferencesSettings:
RecentPaths: Dictionary<String,Boolean>
SolutionWatchdogSettingsKey:
IsEnabled: Boolean
EnableOverride: SolutionWatchdogEnableOverride
RunConfigsSettings:
Active: GuidIndex
SkipBuildByPrimary: Boolean
AutoAttach: Boolean
EnvironmentSettings:
@NatMarchand
NatMarchand / configure-vms.ps1
Last active July 19, 2019 14:17
MountDataDisks
param($StorageAccount, $StorageKey)
Start-Sleep -Milliseconds 1
function Mount-DataDisks {
$disks = Get-Disk | Where-Object partitionstyle -eq 'raw' | Sort-Object number
$letters = 73..89 | ForEach-Object { [char]$_ }
$count = 0