<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Console App on Junian Dev</title>
    <link>https://www.junian.dev/tags/console/</link>
    <description>Recent content in Console App on Junian Dev</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <managingEditor>author@junian.dev (Junian Triajianto)</managingEditor>
    <webMaster>author@junian.dev (Junian Triajianto)</webMaster>
    <copyright>Copyright &amp;copy; 2014 - 2026 Junian.dev</copyright>
    
	    <atom:link href="https://www.junian.dev/tags/console/index.xml" rel="self" type="application/rss+xml" />
    
    <item>
      <title>Run a .NET App from a Single C# File</title>
      <link>https://www.junian.dev/dev/dotnet-run-csharp-app/</link>
      <pubDate>Sat, 27 Sep 2025 05:44:27 +0700</pubDate>
      <author>author@junian.dev (Junian Triajianto)</author>
      <guid>https://www.junian.dev/dev/dotnet-run-csharp-app/</guid>
      <description>&lt;p&gt;With .NET 10, you can run a C# file directly, no project or solution file required!&lt;/p&gt;
&lt;p&gt;This is especially useful for automation scripts, DevOps tasks, or quick experimentation.&lt;/p&gt;
&lt;p&gt;In this tutorial, I&amp;rsquo;ll show you how it works on macOS (or any supported Unix-based system).&lt;/p&gt;
&lt;h2 id=&#34;getting-started-with-dotnet-app-runcs&#34;&gt;Getting Started with dotnet app run.cs&lt;/h2&gt;
&lt;p&gt;First, install the &lt;a href=&#34;https://dotnet.microsoft.com/en-us/download/dotnet/10.0&#34;&gt;.NET 10 SDK&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;On macOS, you can use Homebrew:&lt;/p&gt;

&lt;figure class=&#34;highlight&#34;&gt;
    &lt;button class=&#34;btn-clipboard chroma&#34; title=&#34;Copy to clipboard&#34;&gt;&lt;i class=&#34;fa icon-clipboard&#34;&gt;&lt;svg xmlns=&#34;http://www.w3.org/2000/svg&#34; viewBox=&#34;0 0 24 24&#34; class=&#34;feather feather-copy&#34;&gt;&lt;rect x=&#34;9&#34; y=&#34;9&#34; width=&#34;13&#34; height=&#34;13&#34; rx=&#34;2&#34; ry=&#34;2&#34;/&gt;&lt;path d=&#34;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&#34;/&gt;&lt;/svg&gt;&lt;/i&gt;&lt;span class=&#34;msg-clipboard&#34;&gt;&lt;/span&gt;&lt;/button&gt;
    &lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-shell&#34; data-lang=&#34;shell&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;brew install junian/dotnet/dotnet-sdk@10.0&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
    
&lt;/figure&gt;&lt;p&gt;Create a new file and make it executable:&lt;/p&gt;</description>
    </item>
    
  </channel>
</rss>
