How to Get the Local Directory of an Executing Assembly in C#
I used this code in C# to get the local directory of an executing assembly or application. var uri = new Uri(Assembly.GetAssembly(typeof(M...
https://www.czetsuyatech.com/2011/05/c-get-local-directory-of-executing-assembly.html
I used this code in C# to get the local directory of an executing assembly or application.
var uri = new Uri(Assembly.GetAssembly(typeof(MyClass)).CodeBase); var path = Path.GetDirectoryName(uri.LocalPath); var outputPath = Path.Combine(path, "MyFolder")
Post a Comment