<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yotiky</author_name>
  <author_url>https://blog.hatena.ne.jp/yotiky/</author_url>
  <blog_title>yotiky Tech Blog</blog_title>
  <blog_url>https://yotiky.hatenablog.com/</blog_url>
  <categories>
    <anon>.NET</anon>
    <anon>.NET Core</anon>
  </categories>
  <description>TL;DR .NET 6 でDirectoryクラスにCreateSymbolikLinkメソッドが追加されたが、5以前では使えないため Win32API を使って操作する。 注意する点は実行に管理者権限が必要なため、Unity などから利用するのは難しいかもしれない。 .NET 6 以降は以下を参照。 yotiky.hatenablog.com 目次 TL;DR 目次 検証環境 シンボリックリンクの操作 作成する リンク先を取得する 削除する 指定したディレクトリ配下のシンボリックリンクを確認にする 検証に使用したコード全文(LINQPad) 検証環境 LINQPad .NET 3.1 .N…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyotiky.hatenablog.com%2Fentry%2Fcsharp_symboliclink-legacy&quot; title=&quot;C# - シンボリックリンクを操作する（.NET 5以前） - yotiky Tech Blog&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>2024-04-17 23:41:46</published>
  <title>C# - シンボリックリンクを操作する（.NET 5以前）</title>
  <type>rich</type>
  <url>https://yotiky.hatenablog.com/entry/csharp_symboliclink-legacy</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
