Skip to content

Instantly share code, notes, and snippets.

View JonasNilson's full-sized avatar
🐛
Smashing bugs

Jonas Nilson JonasNilson

🐛
Smashing bugs
  • Sweden
  • 04:22 (UTC +01:00)
View GitHub Profile
@JonasNilson
JonasNilson / upgrade-assistant.ps1
Created December 23, 2022 21:09
Upgrade from .NET Framework 4.8.1 to .NET 6 (.NET Core 6)
# Get more information from the official sources:
# https://learn.microsoft.com/en-us/dotnet/desktop/winforms/migration/?view=netdesktop-6.0&preserve-view=true
# https://github.com/dotnet/upgrade-assistant#installation
PS> dotnet tool install -g --add-source https://api.nuget.org/v3/index.json --ignore-failed-sources upgrade-assistant
PS> upgrade-assistant upgrade <path/your-project.sln>
# Follow along the step-by-step process.
# Example output down below:
@JonasNilson
JonasNilson / DISKPART.cmd
Last active April 27, 2023 10:01
Remove multiple partitions and restore your USB with DISKPART
# RUN: CMD as Administrator
C:\WINDOWS\system32> diskpart
DISKPART> list disk
Disk ### Status Size Free Dyn Gpt
-------- ------------- ------- ------- --- ---
Disk 0 Online 465 GB 0 B *
Disk 1 Online 931 GB 0 B