예제 #1
0
        public static string GetEnvironmentExecutable(string environmentExecutable)
        {
            var environmentExecutablePath = EnvironmentInfo.EnsureVariable(environmentExecutable);

            ControlFlow.Assert(File.Exists(environmentExecutablePath),
                               $"Path '{environmentExecutablePath}' from environment variable '{environmentExecutable}' does not exist.");
            return(environmentExecutablePath);
        }