Products
Features
YouTube Video Summarizer
Summarize YouTube videos
Web & PDF Highlighter
Highlight web pages & PDFs
Chat with PDF
Ask any PDF questions with AI
Ask AI Clone
Chat with your highlights & memories
Audio Transcriber
Transcribe audio files to text
Glasp Reader
Read and highlight articles
Kindle Highlight Export
Export your Kindle highlights
Idea Hatch
Hatch ideas from your highlights
Integrations
Obsidian Plugin
Notion Integration
Pocket Integration
Instapaper Integration
Medium Integration
Readwise Integration
Snipd Integration
Hypothesis Integration
Apps & Extensions
Chrome Extension
Safari Extension
Edge Add-ons
Firefox Add-ons
iOS App
Android App
Discover
Discover
Ideas
Discover new ideas and insights
Articles
Curated articles and insights
Books
Book recommendations by great minds
Posts
Essays and notes from readers
Quotes
Inspiring quotes collection
Videos
Curated videos and summaries
Explore Glasp
Glasp Newsletter
Weekly insights and updates
Glasp Talk
Interview series with great minds
Glasp Blog
Latest news and articles
Glasp Use Cases
Learn how others use Glasp
Build & Support
Glasp API
Access Glasp's API for developers
MCP Connector
Connect Glasp to Claude & ChatGPT
Community
Glasp Reddit Community
Students
Student discount and benefits
FAQs
Frequently Asked Questions
AboutPricing
DashboardLog inSign up

Where Did Startup.cs Go in ASP.NET Core 6?

19.8K views
•
January 30, 2022
by
Tony Spencer
YouTube video player
Where Did Startup.cs Go in ASP.NET Core 6?

TL;DR

ASP.NET Core 6 has removed the Startup.cs file, shifting to a simplified project structure. This change allows developers to register services and configure middleware directly between the builder statement and the application build process, enhancing organizational clarity.

Transcript

hello everybody and welcome to this video dot net 6 is out asp.net core is shipped and there's been quite a few changes that have left a lot of people confused like who moved my cheese where's startup.cs this video i hope we'll take a dive into that and see where it went things haven't fundamentally changed in the middleware for asp.net core but so... Read More

Key Insights

  • 💱 ASP.NET Core and .NET 6 introduce changes to simplify the development process and improve productivity.
  • 📁 File scope namespaces eliminate the need for multiple namespaces in a single file, making the code more concise.
  • 👨‍💻 Top-level programs remove unnecessary code and provide a more streamlined structure for console and ASP.NET Core applications.
  • 📽️ The project structure in ASP.NET Core and .NET 6 has changed, and the video demonstrates the steps to upgrade a project and adapt to the new structure.
  • ❓ Dependency injection registration and middleware pipeline configuration can be done between the builder statement and the app.builder.build statement.
  • 😒 The use of startup.cs file in the new minimal api structure can help organize the code and separate the service registration and middleware configuration.

Install to Summarize YouTube Videos and Get Transcripts

Explore YouTube Video Summarizer or Get YouTube Transcript Extractor

Questions & Answers

Q: What are some of the changes introduced in ASP.NET Core and .NET 6?

Some of the changes include file scope namespaces, top-level programs, and a new project structure. These changes aim to simplify the development process and provide a more streamlined experience.

Q: How do file scope namespaces work?

File scope namespaces allow developers to use a single namespace in each file, eliminating the need for multiple namespaces. This makes the code more concise and easier to read.

Q: What is the purpose of top-level programs?

Top-level programs remove unnecessary code and provide a more concise structure for console and ASP.NET Core applications. This improves productivity and makes the code easier to maintain.

Q: Has the project structure changed in ASP.NET Core and .NET 6?

Yes, the project structure has undergone changes in ASP.NET Core and .NET 6. The video demonstrates how to upgrade a project from .NET Core 3.1 to .NET 6, highlighting the differences in the project files.

Summary & Key Takeaways

  • The video explores the changes in ASP.NET Core and .NET 6, focusing on the project structure and the location of key files like startup.cs.

  • File scope namespaces have been introduced, eliminating the need for multiple namespaces in a single file.

  • Top-level programs remove unnecessary code and provide a more concise structure for console and ASP.NET Core applications.


Read in Other Languages (beta)

English

Share This Summary 📚

Summarize YouTube Videos and Get Video Transcripts with 1-Click

Download browser extensions on:

Try YouTube Summary with ChatGPT & Claude or YouTube Transcript Generator

Apps & Extensions

  • Chrome Extension
  • Safari Extension
  • Edge Add-ons
  • Firefox Add-ons
  • iOS App
  • Android App

Key Features

  • YouTube Video Summarizer
  • Web & PDF Summarizer
  • Web & PDF Highlighter
  • Chat with PDF
  • Ask AI Clone
  • Audio Transcriber
  • Glasp Reader
  • Kindle Highlight Export
  • Idea Hatch

Integrations

  • Obsidian Plugin
  • Notion Integration
  • Pocket Integration
  • Instapaper Integration
  • Medium Integration
  • Readwise Integration
  • Snipd Integration
  • Hypothesis Integration

More Features

  • APIs
  • MCP Connector
  • Blog & Post
  • Embed Links
  • Image Highlight
  • Personality Test
  • Quote Shots

Company

  • About us
  • Blog
  • Community
  • FAQs
  • Job Board
  • Newsletter
  • Pricing
Terms

•

Privacy

•

Guidelines

© 2026 Glasp Inc. All rights reserved.