<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/vLDFW0kZC" -->

---
title: The era of the .csproj is over: How Microsoft Just...
description: .NET 10 introduces file-based apps, letting developers run a single C# file directly with `dotnet run app.cs` or `dotnet app.cs` without creating a .csproj,...
canonical: https://daily.dev/posts/the-era-of-the-csproj-is-over-how-microsoft-just-simplified-c-forever--vldfw0kzc
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: The era of the .csproj is over: How Microsoft Just Simplified C# Forever. | daily.dev
og:description: .NET 10 introduces file-based apps, letting developers run a single C# file directly with `dotnet run app.cs` or `dotnet app.cs` without creating a .csproj,...
og:url: https://daily.dev/posts/the-era-of-the-csproj-is-over-how-microsoft-just-simplified-c-forever--vldfw0kzc
og:image: https://api.daily.dev/og/posts/vLDFW0kZC.png
og:image:alt: The era of the .csproj is over: How Microsoft Just Simplified C# Forever.
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# The era of the .csproj is over: How Microsoft Just Simplified C# Forever.

**[C\# Corner](https://daily.dev/sources/csharpcorner)** · 3 min read · 56 upvotes · 5 comments

## Summary

.NET 10 introduces file-based apps, letting developers run a single C# file directly with `dotnet run app.cs` or `dotnet app.cs` without creating a .csproj, bin, or obj folder structure. The code is still fully compiled and JIT-optimized, not interpreted scripting like the older .csx format. When a script grows beyond quick experimentation, the `dotnet project convert app.cs` command scaffolds a full project automatically, turning file-level directives into a proper .csproj. This removes the traditional scaffolding ceremony for small scripts and prototypes while preserving a smooth path to a full project when needed.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.c-sharpcorner.com/article/the-era-of-the-csproj-is-over-how-microsoft-just-simplified-c-sharp-forever>

## Questions this post answers

### How do I run a single C# file without creating a .csproj project in .NET 10?

In .NET 10, you can run a C# file directly from the terminal using `dotnet run app.cs` or `dotnet app.cs`, with no project file, bin, or obj directory required. The code is still fully JIT-compiled, not interpreted, so it runs with native .NET performance rather than acting as a lightweight scripting layer like the older .csx format.

_Developers tracking new .NET runtime capabilities can follow releases like this one on daily.dev._

### How do I convert a file-based C# script into a full .NET project?

Run `dotnet project convert app.cs` to scaffold a complete project structure around an existing script. The command automatically turns file-level directives into a proper .csproj file, so a quick script that grew too large can graduate into a formally structured project without manual copy-pasting or folder setup.

_daily.dev helps C# developers stay current on tooling changes like project conversion workflows._

## Community discussion

Top comments from developers on daily.dev.

**@spamcatcher** · 7 upvotes

> Finally, now that nobody writes code anymore... the agents are really getting it all aren't they

**@ristotoldsep** · 4 upvotes

> .csproj will survive this. configuration files are famously immortal.

**@gojoglacier** · 1 upvotes

> Nice :) I love the idea of writing C# scripts like I write Python or Go scripts

**@luukoosterhuis** · 1 upvotes

> You know this title is highly misleading. Do you really believe only simple scripts are written in .Net? You've clearly not seen an enterprise application

**@swarnasharmin** · 0 upvotes

> Misleading title. Single-file execution is for small scripts, not enterprise apps.

## Similar posts on daily.dev

- [Exploring C\# File-based Apps in .NET 10](https://daily.dev/posts/exploring-c-file-based-apps-in-net-10-yepr485nu) · Milan Jovanović · 12 upvotes · 1 comments
- [C\# Finally Has First-Class CLI Scripts in .NET 10](https://daily.dev/posts/c-finally-has-first-class-cli-scripts-in-net-10-r3hjflu70) · Atomic Spin · 31 upvotes · 2 comments
- [The best new features of C\# 14](https://daily.dev/posts/the-best-new-features-of-c-14-6gsbbjwv4) · InfoWorld · 46 upvotes · 4 comments

---

Tags: [#.net](https://daily.dev/tags/.net), [#c#](https://daily.dev/tags/c#)

[View this post on daily.dev](https://daily.dev/posts/the-era-of-the-csproj-is-over-how-microsoft-just-simplified-c-forever--vldfw0kzc)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"The era of the .csproj is over: How Microsoft Just Simplified C# Forever.","url":"https://daily.dev/posts/the-era-of-the-csproj-is-over-how-microsoft-just-simplified-c-forever--vldfw0kzc","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/the-era-of-the-csproj-is-over-how-microsoft-just-simplified-c-forever--vldfw0kzc"},"datePublished":"2026-10-13T12:47:03.686Z","dateModified":"2026-10-13T12:47:26.619Z","description":".NET 10 introduces file-based apps, letting developers run a single C# file directly with `dotnet run app.cs` or `dotnet app.cs` without creating a .csproj,...","image":"https://media.daily.dev/image/upload/s--foaA6JGU--/f_auto/v1722860399/public/Placeholder%2004","thumbnailUrl":"https://media.daily.dev/image/upload/s--foaA6JGU--/f_auto/v1722860399/public/Placeholder%2004","isAccessibleForFree":true,"articleSection":"C# Corner","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"C# Corner","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/ada2d584df6241748fc4e71878dc70a3","url":"https://daily.dev/sources/csharpcorner"},"commentCount":5,"discussionUrl":"https://daily.dev/posts/the-era-of-the-csproj-is-over-how-microsoft-just-simplified-c-forever--vldfw0kzc","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":56},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":5}],"keywords":".net,c#","timeRequired":"PT3M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"C# Corner","item":"https://daily.dev/sources/csharpcorner"},{"@type":"ListItem","position":3,"name":"The era of the .csproj is over: How Microsoft Just Simplified C# Forever."}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/the-era-of-the-csproj-is-over-how-microsoft-just-simplified-c-forever--vldfw0kzc","comment":[{"@type":"Comment","text":"Finally, now that nobody writes code anymore… the agents are really getting it all aren’t they","datePublished":"2026-10-14T09:56:35.459Z","url":"https://daily.dev/posts/vLDFW0kZC#c-jj7Sy6iYJ","author":{"@type":"Person","name":"Spam Catcher","url":"https://daily.dev/spamcatcher","image":"https://media.daily.dev/image/upload/s--4C0NYj4f--/f_auto/v1775221074/avatars/avatar_GkdzrXXZUWj7ZNJJbc5oL?_a=BAMAMiWQ0"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":7}},{"@type":"Comment","text":".csproj will survive this. configuration files are famously immortal.","datePublished":"2026-10-14T10:13:31.227Z","url":"https://daily.dev/posts/vLDFW0kZC#c-udIls6ws9","author":{"@type":"Person","name":"Risto Tõldsep","url":"https://daily.dev/ristotoldsep","image":"https://lh3.googleusercontent.com/a/ACg8ocLDWc6mZn0JwNmXXw6WY0L_HJ6pegzRttooC5VgtXESHSj3MNYx=s96-c"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":4}},{"@type":"Comment","text":"Nice :) I love the idea of writing C# scripts like I write Python or Go scripts","datePublished":"2026-10-15T07:06:25.441Z","dateModified":"2026-10-15T07:06:34.708Z","url":"https://daily.dev/posts/vLDFW0kZC#c-jR8qtUqz1","author":{"@type":"Person","name":"Gojo Won","url":"https://daily.dev/gojoglacier","image":"https://media.daily.dev/image/upload/s--MUqXyx_D--/f_auto/v1791620532/avatars/avatar_RqSXoxTsTayGUnuM7PksG?_a=BAMAMicg0"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}},{"@type":"Comment","text":"You know this title is highly misleading. Do you really believe only simple scripts are written in .Net? You’ve clearly not seen an enterprise application","datePublished":"2026-10-15T06:59:22.741Z","url":"https://daily.dev/posts/vLDFW0kZC#c-jQldk564s","author":{"@type":"Person","name":"Luuk Oosterhuis","url":"https://daily.dev/luukoosterhuis","image":"https://avatars.githubusercontent.com/u/304927767?v=4"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}},{"@type":"Comment","text":"Misleading title. Single-file execution is for small scripts, not enterprise apps.","datePublished":"2026-10-17T07:59:06.511Z","url":"https://daily.dev/posts/vLDFW0kZC#c-nX9RLUcpD","author":{"@type":"Person","name":"Swarna Sharmin","url":"https://daily.dev/swarnasharmin","image":"https://media.daily.dev/image/upload/s--joHEq_jD--/f_auto/v1791022797/avatars/avatar_ZL6bebyCVkszL2cr0g8ab?_a=BAMAMicg0"}}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/the-era-of-the-csproj-is-over-how-microsoft-just-simplified-c-forever--vldfw0kzc#faq","mainEntity":[{"@type":"Question","name":"How do I run a single C# file without creating a .csproj project in .NET 10?","acceptedAnswer":{"@type":"Answer","text":"In .NET 10, you can run a C# file directly from the terminal using `dotnet run app.cs` or `dotnet app.cs`, with no project file, bin, or obj directory required. The code is still fully JIT-compiled, not interpreted, so it runs with native .NET performance rather than acting as a lightweight scripting layer like the older .csx format. Developers tracking new .NET runtime capabilities can follow releases like this one on daily.dev."}},{"@type":"Question","name":"How do I convert a file-based C# script into a full .NET project?","acceptedAnswer":{"@type":"Answer","text":"Run `dotnet project convert app.cs` to scaffold a complete project structure around an existing script. The command automatically turns file-level directives into a proper .csproj file, so a quick script that grew too large can graduate into a formally structured project without manual copy-pasting or folder setup. daily.dev helps C# developers stay current on tooling changes like project conversion workflows."}}]}
```

