コンテンツにスキップ
メインメニュー
メインメニュー
サイドバーに移動
非表示
案内
メインページ
最近の更新
未作成ページ
おまかせ表示
ヘルプ
MonoBook
検索
検索
ログイン
個人用ツール
ログイン
ログアウトした編集者のページ
もっと詳しく
投稿記録
トーク
「
.NET 8 for Macの特殊ディレクトリのパス
」を編集中
ページ
議論
日本語
閲覧
編集
ソースを編集
履歴表示
ツール
ツール
サイドバーに移動
非表示
操作
閲覧
編集
ソースを編集
履歴表示
全般
リンク元
関連ページの更新状況
特別ページ
ページ情報
2024年9月20日 (金) 04:57時点における
Administrator
(
トーク
|
投稿記録
)
による版
(
差分
)
← 古い版
|
最新版
(
差分
) |
新しい版 →
(
差分
)
警告: このページの古い版を編集しています。
公開すると、この版以降になされた変更がすべて失われます。
警告:
ログインしていません。編集を行うと、あなたの IP アドレスが公開されます。
ログイン
または
アカウントを作成
すれば、あなたの編集はその利用者名とともに表示されるほか、その他の利点もあります。
スパム攻撃防止用のチェックです。 けっして、ここには、値の入力は
しない
でください!
.NET 8 for MacではXamarin.Macの頃から微妙に戻り値が変わっています。 {|class="wikitable sortable" style="overflow: auto;white-space: nowrap" |+ ! SpecialFolder !! .NET !Xamarin |- | Desktop || /Users/{ユーザー名}/Desktop |同じ |- | Programs || | |- | MyDocuments || /Users/{ユーザー名}/Documents |/Users/{ユーザー} |- | MyDocuments || /Users/{ユーザー名}/Documents |/Users/{ユーザー} |- | Favorites || /Users/{ユーザー名}/Library/Favorites |同じ |- | Startup || | |- | Recent || | |- | SendTo || | |- | StartMenu || | |- | MyMusic || /Users/{ユーザー名}/Music |同じ |- | MyVideos || /Users/{ユーザー名}/Movies |/Users/{ユーザー}/Videos |- | DesktopDirectory || /Users/{ユーザー名}/Desktop |同じ |- | MyComputer || | |- | NetworkShortcuts || | |- | Fonts || /Users/{ユーザー名}/Library/Fonts |同じ |- | Templates || |/Users/{ユーザー}/Templates |- | CommonStartMenu || | |- | CommonPrograms || | |- | CommonStartup || | |- | CommonDesktopDirectory || | |- | ApplicationData || /Users/{ユーザー名}/Library/Application Support |/Users/{ユーザー}/.config |- | PrinterShortcuts || | |- | LocalApplicationData || /Users/{ユーザー名}/Library/Application Support |/Users/{ユーザー}/.local/share |- | InternetCache || /Users/{ユーザー名}/Library/Caches |同じ |- | Cookies || | |- | History || | |- | CommonApplicationData || /usr/share |同じ |- | Windows || | |- | System || /System | |- | ProgramFiles || /Applications |同じ |- | MyPictures || /Users/{ユーザー名}/Pictures |同じ |- | UserProfile || /Users/{ユーザー名} |同じ |- | SystemX86 || | |- | ProgramFilesX86 || | |- | CommonProgramFiles || | |- |nProgramFilesX86 || | |- | CommonTemplates || |/usr/share/templates |- | CommonDocuments || | |- | CommonAdminTools || | |- | AdminTools || | |- | CommonMusic || | |- | CommonPictures || | |- | CommonVideos || | |- | Resources || | |- | LocalizedResources || | |- | CommonOemLinks || | |- | CDBurning || | |} MyDocumentsが「ホームディレクトリ直下」から「Documentsディレクトリ」に変更になっています。 ホームディレクトリはUserProfileで取得するようになりました。 MyVideoはVideosディレクトリからMoviesディレクトリになっています。 ApplicationDataと LocalApplicationDataは独自の隠しディレクトリからmacOSのルールに則った「~/Library/Application Support」になっています。 <source lang=csharp> foreach (var folder in Enum.GetValues(typeof(Environment.SpecialFolder))) { var path = Environment.GetFolderPath((Environment.SpecialFolder)folder); Console.WriteLine($"{folder} => {path}"); } </source> [[category: .NET]]
編集内容の要約:
MonoBookへの投稿はすべて、他の投稿者によって編集、変更、除去される場合があります。 自分が書いたものが他の人に容赦なく編集されるのを望まない場合は、ここに投稿しないでください。
また、投稿するのは、自分で書いたものか、パブリック ドメインまたはそれに類するフリーな資料からの複製であることを約束してください(詳細は
MonoBook:著作権
を参照)。
著作権保護されている作品は、許諾なしに投稿しないでください!
このページを編集するには、下記の確認用の質問に回答してください (
詳細
):
1たす1は?(全角で入力してください)
キャンセル
編集の仕方
(新しいウィンドウで開きます)
本文の横幅制限を有効化/無効化