Git and .NET Local Setup
Published: November 1, 2025
When I set up a new Windows machine for development, especially for .NET development, I always install Visual Studio and VS Code; however, my preference is to set up Git and the .NET SDK outside of the Visual Studio installer. This pattern stems from using a Surface Pro X (which has an ARM processor) for many of my personal projects. Because of its ARM processor, I didn’t like installing Visual Studio on that device - it ran, but I preferred using VS Code instead. I enjoyed coding in .NET using VS Code, and it helped me appreciate what it’s like to write .NET applications outside Visual Studio.
In this article, I outline the commands that I use to set up my local development environments:
Install Git:
winget install --id Git.Git -e --source winget
Install the GitHub CLI:
winget install --id GitHub.cli
Restart the terminal to ensure up-to-date PATH variables.
Authenticate the GitHub CLI:
gh auth login
Set your global Git info:
git config --global user.name "John Doe"
git config --global user.email johndoe@example.com
Install the .NET SDK:
winget install Microsoft.DotNet.SDK.9
Go get ‘em!