<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mamorums</author_name>
  <author_url>https://blog.hatena.ne.jp/mamorums/</author_url>
  <blog_title>C#, Python, Web開発</blog_title>
  <blog_url>https://web-dev.hatenablog.com/</blog_url>
  <categories>
    <anon>C#</anon>
  </categories>
  <description>C#のコンソールアプリで、単一ファイルの自己完結型EXEを作成していきます。 今回は、Windows 64bitを想定しています。 1. プロジェクトファイル編集 以下のように、PublishSingleFile, SelfContained を true で追加します。 &lt;Project Sdk=&quot;Microsoft.NET.Sdk&quot;&gt; &lt;PropertyGroup&gt; &lt;OutputType&gt;Exe&lt;/OutputType&gt; &lt;TargetFramework&gt;net10.0&lt;/TargetFramework&gt; &lt;ImplicitUsings&gt;enable&lt;/ImplicitUsings&gt; &lt;…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fweb-dev.hatenablog.com%2Fentry%2Fcsharp%2Fpublish%2Fsingle-selfcontain&quot; title=&quot;C# 単一ファイルのEXEを作成（自己完結型アプリ） - C#, Python, Web開発&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2026-09-22 00:00:00</published>
  <title>C# 単一ファイルのEXEを作成（自己完結型アプリ）</title>
  <type>rich</type>
  <url>https://web-dev.hatenablog.com/entry/csharp/publish/single-selfcontain</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
