{"description":"\u2160. \u306f\u3058\u3081\u306b \u30bf\u30a4\u30c8\u30eb\u306e\u901a\u308a\u300cNative AOT\u30d3\u30eb\u30c9\u3057\u305fDLL\u306bDllMain\u3092\u5b9f\u88c5\u3059\u308b\u65b9\u6cd5\u300d\u3067\u3059\u3002 \u2161. \u624b\u9806 1. \u5fc5\u8981\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b dotnet add package NativeDllMain --version 1.0.0 2. \u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u66f8\u304f Program.cs using System.Runtime.InteropServices; // dotnet add package Microsoft.Windows.CsWin32 --version 0.3.252 using Windows.Win32; using Windows.Win3\u2026","blog_title":"\u5099\u5fd8\u9332","author_name":"kagasu","provider_name":"Hatena Blog","version":"1.0","url":"https://kagasu.hatenablog.com/entry/2025/11/21/133121","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/k/kagasu/20251121/20251121133015.png","author_url":"https://blog.hatena.ne.jp/kagasu/","title":"AOT\u30d3\u30eb\u30c9\u3057\u305fDLL\u306bDllMain\u3092\u5b9f\u88c5\u3059\u308b\u65b9\u6cd5","type":"rich","width":"100%","categories":[".NET","C#"],"height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkagasu.hatenablog.com%2Fentry%2F2025%2F11%2F21%2F133121\" title=\"AOT\u30d3\u30eb\u30c9\u3057\u305fDLL\u306bDllMain\u3092\u5b9f\u88c5\u3059\u308b\u65b9\u6cd5 - \u5099\u5fd8\u9332\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_url":"https://kagasu.hatenablog.com/","provider_url":"https://hatena.blog","published":"2025-11-21 13:31:21"}