using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Reflection; using System.IO; namespace ConsoleApplication9 { class Program { static void Main(string[] args) { string padh = Assembly.GetExecutingAssembly().Location; padh = Path.GetDirectoryName(padh); Console.WriteLine(Assembly.GetExecutingAssembly().Location); Console.WriteLine(Directory.GetParent(padh)); Console.ReadKey(); } } }
时间: 2024-10-10 00:37:51