<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kagasu</author_name>
  <author_url>https://blog.hatena.ne.jp/kagasu/</author_url>
  <blog_title>備忘録</blog_title>
  <blog_url>https://kagasu.hatenablog.com/</blog_url>
  <categories>
    <anon>.NET</anon>
    <anon>C#</anon>
  </categories>
  <description>Ⅰ. はじめに タイトルの通り「Native AOTビルドしたDLLにDllMainを実装する方法」です。 Ⅱ. 手順 1. 必要なパッケージをインストールする dotnet add package NativeDllMain --version 1.0.0 2. サンプルプログラムを書く Program.cs using System.Runtime.InteropServices; // dotnet add package Microsoft.Windows.CsWin32 --version 0.3.252 using Windows.Win32; using Windows.Win3…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkagasu.hatenablog.com%2Fentry%2F2025%2F11%2F21%2F133121&quot; title=&quot;AOTビルドしたDLLにDllMainを実装する方法 - 備忘録&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>https://cdn-ak.f.st-hatena.com/images/fotolife/k/kagasu/20251121/20251121133015.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-11-21 13:31:21</published>
  <title>AOTビルドしたDLLにDllMainを実装する方法</title>
  <type>rich</type>
  <url>https://kagasu.hatenablog.com/entry/2025/11/21/133121</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
