Visual Studio / WPF > アプリケーションのフォルダを取得する > System.AppDomain.CurrentDomain.BaseDirectory
1786 ワード
動作環境
Windows 7 Pro (32bit)
Microsoft Visual Studio 2017 Community
実行ファイル(.exe)のフォルダを取得したい。
MainWindow.xaml.cs
private void B_read_Click(object sender, RoutedEventArgs e)
{
string appPath = System.AppDomain.CurrentDomain.BaseDirectory;
MessageBox.Show(appPath);
}
Author And Source
この問題について(Visual Studio / WPF > アプリケーションのフォルダを取得する > System.AppDomain.CurrentDomain.BaseDirectory), 我々は、より多くの情報をここで見つけました https://qiita.com/7of9/items/e694489beb4c54adaba5著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .