--- lang: ja-jp breaks: true --- # C# アプリケーションのディレクトリを取得 2021-07-26 ## 環境 * .Net Core 5.0 ## エントリーアセンブリからアプリケーションのパスを取得 ```csharp= Assembly assembly = Assembly.GetEntryAssembly(); string assemblyPath = assembly.Location; FileInfo fileAssembly = new FileInfo(assemblyPath); Console.WriteLine(fileAssembly); ``` ###### tags: `C#` `.NET Core` `ディレクトリ` `Assembly` `カレント` `エントリ`
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up