<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>xin9le</author_name>
  <author_url>https://blog.hatena.ne.jp/xin9le/</author_url>
  <blog_title>xin9le.net</blog_title>
  <blog_url>https://xin9le.hatenablog.jp/</blog_url>
  <categories>
    <anon>ASP.NET Core</anon>
    <anon>Tips</anon>
    <anon>Swagger</anon>
    <anon>Open API</anon>
  </categories>
  <description>最近社内で「CI で swagger.json を生成したいから対応してほしい」と言われてやってみました。そして思いっきりハマりました。ということで忘れないようにメモ。 ちなみに本内容は執筆時点での最新版である「.NET 7 + Swashbuckle.AspNetCore (v6.5.0)」で再現しているもので、バージョンが異なると挙動が変わる可能性があります。その点はご了承ください。 TL;DR SwaggerHostFactory.CreateHost を利用する 古き良き Startup クラスを使って IHost を生成する 発生した問題を再現してみる 最小プロジェクトを準備 細かい…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fxin9le.hatenablog.jp%2Fentry%2F2023%2F06%2F25%2F230203&quot; title=&quot;Swashbuckle.AspNetCore.Cli で FileLoadException が出る場合の対処 - xin9le.net&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.blog.st-hatena.com/images/theme/og-image-1500.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-06-25 23:02:03</published>
  <title>Swashbuckle.AspNetCore.Cli で FileLoadException が出る場合の対処</title>
  <type>rich</type>
  <url>https://xin9le.hatenablog.jp/entry/2023/06/25/230203</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
