ASP.NET Core Complete Tutorial (ShopNest)
Lesson 2 of 75 3% of course

Setting Up ASP.NET Core Development Environment

2 · 8 min · 5/24/2026

Learn Setting Up ASP.NET Core Development Environment in our free ASP.NET Core Complete Tutorial (ShopNest) series. Step-by-step explanations, examples, and interview tips on Toolliyo Academy.

Sign in to track progress and bookmarks.

ASP.NET Core development environment setup
Article 2 of 75 · Module 1: Foundations · Setup for ShopNest
Target keyword: asp.net core setup · Read time: ~25 min · .NET: 8 SDK (LTS) + optional 9 · Project: ShopNest workspace (setup only)

Introduction

Before you write a single line of ShopNest code, you need a reliable development environment. A messy setup is the #1 reason freshers abandon tutorials halfway — missing SDK workloads, wrong SQL connection strings, or Git not configured and then "my code works on my machine" becomes a team joke on day one at TCS or Infosys.

This guide walks you through installing the .NET 8 SDK, choosing between Visual Studio 2022 and VS Code, adding SQL Server Express and SSMS, and initializing Git — on Windows (primary), with notes for macOS and Linux. By the end you will run a verification app and be ready for Article 3 (project structure).

After this article you will

  • Install .NET 8 SDK and confirm dotnet --version
  • Configure Visual Studio 2022 Community or VS Code + C# Dev Kit
  • Install SQL Server 2022 Express and connect with SSMS
  • Initialize Git and make your first ShopNest commit
  • Fix the most common installation errors seen in Indian dev labs

Prerequisites

  • Hardware: 8 GB RAM minimum (16 GB recommended for Visual Studio + SQL Server)
  • OS: Windows 10/11 (64-bit), macOS 12+, or Ubuntu 22.04+
  • Previous lesson: What is ASP.NET Core? Complete Guide
  • Time: 45–90 minutes (downloads depend on broadband speed)

What you are installing (and why)

Level 1 — Analogy

Building ASP.NET Core apps is like opening a cloud kitchen. The .NET SDK is your cooking equipment. Visual Studio / VS Code is the workstation. SQL Server is the pantry where ShopNest stores products and orders. Git is the CCTV log — every recipe change is recorded.

Level 2 — Technical stack

ComponentRoleRequired?
.NET 8 SDKCompiler, CLI, runtime for build/runYes
ASP.NET Core workloadWeb templates, IIS Express (VS)Yes for web
SQL Server ExpressLocal relational databaseYes for ShopNest EF lessons
SSMSGUI to run SQL, inspect tablesStrongly recommended
GitVersion controlYes for portfolio + teams

Level 3 — How it fits ShopNest

[Developer Machine]
  ├── .NET SDK 8.x          → dotnet CLI
  ├── Visual Studio / VS Code → edit ShopNest.Web + ShopNest.API
  ├── SQL Server Express    → ShopNestDb (local)
  ├── SSMS                  → inspect migrations
  └── Git repo              → github.com/you/shopnest

Common misconceptions

❌ MYTH: You need a paid Visual Studio license to learn.
✅ TRUTH: Visual Studio Community is free for students, open-source, and individual developers.

❌ MYTH: Install only the runtime, not the SDK.
✅ TRUTH: The SDK includes the runtime and tools to build; runtime-only cannot compile projects.

❌ MYTH: SQL Server must be installed on day one for Hello World.
✅ TRUTH: Hello World runs without SQL — but install SQL now so Article 13+ EF Core lessons are friction-free.

Step-by-step installation

1 — Install .NET 8 SDK (all platforms)

Download from dotnet.microsoft.comSDK 8.0.x (not Runtime only).

Windows: Run the installer → accept defaults → restart terminal.

macOS: Download .pkg or use Homebrew: brew install dotnet@8

Linux (Ubuntu):

wget https://packages.microsoft.com/config/ubuntu/22.04/packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
sudo apt update
sudo apt install -y dotnet-sdk-8.0

Verify:

dotnet --version
# Expected: 8.0.xxx

dotnet --list-sdks
# Should show 8.0.x
  1. Download Visual Studio 2022 Community
  2. In the installer, select workload: ASP.NET and web development
  3. Optional: .NET desktop development if you will explore WPF/WinForms later
  4. Individual components: ensure .NET 8 SDK is checked
  5. Install (8–15 GB) — on slow college lab PCs, start download before lunch

Screenshot described: Visual Studio Installer → Workloads tab → "ASP.NET and web development" card with green checkmark → Install button bottom-right.

First launch: sign in with Microsoft account (optional) → choose General or Visual C# color theme.

3 — VS Code + C# Dev Kit (Windows / Mac / Linux alternative)

  1. Install VS Code
  2. Extensions (Ctrl+Shift+X): install C# Dev Kit (Microsoft) — includes C# extension and solution explorer
  3. Optional: REST Client, GitLens, Thunder Client for API testing
# Optional CLI install of extensions
code --install-extension ms-dotnettools.csdevkit
code --install-extension ms-dotnettools.csharp

VS Code is lighter (≈500 MB vs 10+ GB) — preferred on Mac/Linux and for developers who also work with Node/React on the same machine.

4 — SQL Server 2022 Express + SSMS (Windows)

  1. Download SQL Server 2022 Express from Microsoft — choose Basic install for simplest path
  2. Note your instance name: usually localhost\SQLEXPRESS or (localdb)\mssqllocaldb
  3. Install SQL Server Management Studio (SSMS) separately
  4. Open SSMS → Connect → Server name: localhost\SQLEXPRESS → Authentication: Windows Authentication

Connection string for later ShopNest appsettings.json:

{
  "ConnectionStrings": {
    "DefaultConnection": "Server=localhost\\SQLEXPRESS;Database=ShopNestDb;Trusted_Connection=True;TrustServerCertificate=True;"
  }
}

macOS/Linux: Use SQL Server in Docker for EF lessons:

docker run -e "ACCEPT_EULA=Y" -e "MSSQL_SA_PASSWORD=ShopNest@Dev123!" \
  -p 1433:1433 --name shopnest-sql -d mcr.microsoft.com/mssql/server:2022-latest

5 — Git setup and first commit

git --version
git config --global user.name "Your Name"
git config --global user.email "you@example.com"

mkdir ShopNest
cd ShopNest
dotnet new sln -n ShopNest
dotnet new webapp -n ShopNest.Web
dotnet sln add ShopNest.Web/ShopNest.Web.csproj

git init
echo "bin/" >> .gitignore
echo "obj/" >> .gitignore
echo ".vs/" >> .gitignore
echo "appsettings.Development.json" >> .gitignore

git add .
git commit -m "chore: initial ShopNest solution (Article 2)"

Push to GitHub: create empty repo → git remote add origin …git push -u origin main. Recruiters at Indian service companies often ask for GitHub links — start now.

6 — Verification checklist (run everything)

dotnet --version          # 8.0.x
dotnet new webapp -n EnvCheck -o EnvCheck
cd EnvCheck
dotnet run                # open https URL shown in console
dotnet test               # no tests yet — should pass with "no tests"
cd .. && rm -rf EnvCheck  # cleanup (Windows: rmdir /s EnvCheck)

In Visual Studio: File → New → Project → ASP.NET Core Web App (Razor Pages) → run with green ▶ button — browser should open.

Common installation errors & fixes

🔴 Error: 'dotnet' is not recognized
✅ Add C:\Program Files\dotnet\ to PATH; restart terminal; reinstall SDK.

🔴 Error: HTTP Error 500.30 - ANCM In-Process Start Failure
✅ Wrong .NET runtime installed; run dotnet --list-runtimes; install ASP.NET Core 8 hosting bundle on IIS machines.

🔴 Error: SQL — Cannot connect to localhost\SQLEXPRESS
✅ Start service "SQL Server (SQLEXPRESS)" in services.msc; enable TCP/IP in SQL Configuration Manager.

🔴 Error: Visual Studio — missing web template
✅ Re-run installer → Modify → check ASP.NET and web development workload.

🔴 Error: NU1100: Unable to resolve package
✅ Check internet/proxy; run dotnet nuget locals all --clear; restore again.

Best practices for your dev machine

  • 🟢 Pin SDK version in global.json when joining a team project
  • 🟢 Use User Secrets for local connection strings — never commit passwords
  • 🟡 Keep VS and SDK updated quarterly — .NET 8 is LTS until November 2026
  • 🟡 Allocate 20 GB free disk before installing VS + SQL together
  • 🔴 On corporate laptops (TCS/Infosys image), request admin rights or use VS Code + Docker SQL

Interview questions

Fresher

Q1: Difference between SDK and runtime?
A: SDK builds and runs apps; runtime only runs published apps.

Q2: What is SSMS used for?
A: GUI tool to connect to SQL Server, run queries, design tables, view data.

Q3: Why Git in a solo learning project?
A: Tracks history, enables portfolio on GitHub, mirrors team workflow in industry.

Q4: Can ASP.NET Core run on Linux?
A: Yes — Kestrel is cross-platform; many Azure Linux App Service apps use it.

Q5: What is LocalDB?
A: Lightweight SQL Server Express instance for development, started on demand.

Q6: Minimum install to run dotnet new webapp?
A: .NET SDK with ASP.NET Core templates (included in web workload or SDK).

Junior / mid

Q7: VS Code vs Visual Studio for ASP.NET Core?
A: VS = richer debugging, designers, profiling; VS Code = lighter, cross-platform, great with Dev Kit for APIs and microservices.

Q8: How do you manage secrets locally?
A: dotnet user-secrets in Development; Azure Key Vault or env vars in Production.

Senior

Q11: Standardizing dev environments across 50 developers?
A: Docker Compose for SQL/Redis, global.json, documented VS workloads, optional dev containers / GitHub Codespaces.

Coding round

Problem: Write a bash/PowerShell one-liner concept: verify SDK installed and print version (they may ask in ops-style screens).

dotnet --version || echo "Install .NET SDK from https://dotnet.microsoft.com"

Summary

  • Install .NET 8 SDK and verify with dotnet --version
  • Choose VS 2022 (Windows, full IDE) or VS Code + C# Dev Kit (all platforms)
  • Add SQL Server Express + SSMS (or Docker SQL on Mac/Linux)
  • Initialize Git and commit your ShopNest solution skeleton
  • Run the verification webapp before moving on

Previous: What is ASP.NET Core?
Next: ASP.NET Core Project Structure Explained

FAQ

Which .NET version should I install in 2025–26?

Install .NET 8 SDK (LTS). .NET 9 is optional for learning newest features; ShopNest tutorials target .NET 8 with .NET 9 notes where relevant.

Is 8 GB RAM enough for Visual Studio and SQL Server?

It works for learning but may feel slow. Close Chrome tabs, use VS Code instead of full VS, or run SQL in Docker with memory limits if needed.

Do I need Azure to learn ASP.NET Core?

No — everything through Article 64 can run locally. Azure deployment is covered later in the DevOps module.

Test your knowledge

Quizzes linked to this course—pass to earn certificates.

Browse all quizzes
ASP.NET Core Complete Tutorial (ShopNest)

On this page

Introduction After this article you will Prerequisites What you are installing (and why) Level 1 — Analogy Level 2 — Technical stack Level 3 — How it fits ShopNest Step-by-step installation 1 — Install .NET 8 SDK (all platforms) 2 — Visual Studio 2022 Community (Windows — recommended for beginners) 3 — VS Code + C# Dev Kit (Windows / Mac / Linux alternative) 4 — SQL Server 2022 Express + SSMS (Windows) 5 — Git setup and first commit 6 — Verification checklist (run everything) Common installation errors & fixes Best practices for your dev machine Interview questions Fresher Junior / mid Senior Coding round Summary FAQ Which .NET version should I install in 2025–26? Is 8 GB RAM enough for Visual Studio and SQL Server? Do I need Azure to learn ASP.NET Core?
Module 1: Foundations
What is ASP.NET Core? Complete Guide Setting Up ASP.NET Core Development Environment ASP.NET Core Project Structure Explained MVC Architecture in ASP.NET Core — Complete Guide Controllers and Actions in ASP.NET Core Routing in ASP.NET Core — Conventional and Attribute Routing Views and Razor Syntax in ASP.NET Core Layouts, Partial Views and View Components Models and ViewModels in ASP.NET Core Forms, Model Binding and Validation in ASP.NET Core Tag Helpers in ASP.NET Core — Complete Guide Static Files, Bundling and Minification in ASP.NET Core
Module 2: Entity Framework Core
Entity Framework Core — Introduction and Setup EF Core Code First — Models, Migrations, Database EF Core CRUD Operations — Create, Read, Update, Delete EF Core LINQ Queries — Beginner to Advanced EF Core Relationships — One-to-One, One-to-Many, Many-to-Many EF Core Fluent API — Advanced Configuration EF Core Repository Pattern and Unit of Work EF Core Performance Optimization Database First Approach with EF Core (Scaffold) EF Core with SQL Server — Advanced Features
Module 3: Dependency Injection & Middleware
Dependency Injection in ASP.NET Core — Complete Guide Middleware in ASP.NET Core — Complete Guide Configuration in ASP.NET Core — appsettings, Environment Variables, Secrets Filters in ASP.NET Core — Action, Authorization, Exception, Resource, Result Logging in ASP.NET Core — ILogger, Serilog, NLog Error Handling and Exception Management in ASP.NET Core
Module 4: Authentication & Security
ASP.NET Core Identity — Complete Setup Guide Authentication in ASP.NET Core — Cookie and JWT Authorization in ASP.NET Core — Roles, Policies, Claims JWT Authentication with Refresh Tokens — Complete Implementation OAuth2 and External Login (Google, Facebook, Microsoft) Data Protection and Encryption in ASP.NET Core HTTPS, SSL Certificates and Security Best Practices
Module 5: Web API
Building REST APIs with ASP.NET Core — Complete Guide API Versioning in ASP.NET Core Swagger / OpenAPI Documentation in ASP.NET Core Input Validation in Web APIs — FluentValidation and Data Annotations Pagination, Filtering and Sorting in ASP.NET Core APIs HTTP Client and Consuming External APIs in ASP.NET Core Minimal APIs in ASP.NET Core .NET 8 SignalR — Real-Time Web Applications
Module 6: Advanced Architecture
Clean Architecture in ASP.NET Core CQRS Pattern with MediatR in ASP.NET Core Repository Pattern — Deep Dive with Generic Repository Background Services and Hosted Services in ASP.NET Core Caching in ASP.NET Core — In-Memory, Distributed, Redis Health Checks in ASP.NET Core AutoMapper in ASP.NET Core Microservices with ASP.NET Core — Introduction Message Queues with RabbitMQ / Azure Service Bus in ASP.NET Core gRPC with ASP.NET Core
Module 7: Testing
Unit Testing ASP.NET Core with xUnit and Moq Integration Testing in ASP.NET Core Testing EF Core — In-Memory vs SQLite Performance Testing and Load Testing ASP.NET Core APIs Test-Driven Development (TDD) in ASP.NET Core
Module 8: Deployment & DevOps
Deploying ASP.NET Core to IIS on Windows Server Docker and Containerization for ASP.NET Core Deploying ASP.NET Core to Azure App Service CI/CD with GitHub Actions for ASP.NET Core Azure SQL Database with ASP.NET Core Environment Configuration and Secrets Management
Module 9: Real-World Projects
Build a Complete Blog Website with ASP.NET Core MVC Build an E-Commerce Product Catalog API (ASP.NET Core Web API) Build a Student Management System (Complete CRUD App) Build a Job Portal (Full Stack ASP.NET Core) Build a REST API with Clean Architecture — Complete Guide Build a Real-Time Chat App with SignalR and ASP.NET Core
Module 10: Advanced Topics
Blazor WebAssembly and Blazor Server — Complete Guide gRPC, GraphQL and Alternative API Styles in ASP.NET Core Rate Limiting and API Throttling in ASP.NET Core .NET 8 Output Caching in ASP.NET Core .NET 8 ASP.NET Core .NET 9 New Features — Complete Guide