1 path
2 code
1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Reflection; 5 using System.Text; 6 using System.Threading.Tasks; 7 8 namespace ConsoleApplication13 9 { 10 class Program 11 { 12 static void Main(string[] args) 13 { 14 string path = @"D:\用户目录\我的文档\visual studio 2015\Projects\ConsoleApplication13\ClassLibrary1\bin\Debug\ClassLibrary1.dll"; 15 Assembly dllFile = Assembly.LoadFile(path); 16 Console.WriteLine("OK"); 17 Console.ReadKey(); 18 } 19 } 20 }
3 show
时间: 2024-10-26 03:51:43