runliuv

runliuv@cnblogs

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

 PB通过OLE方式调用C#.NET DLL时,

DLL获取自身根目录

System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().ManifestModule.FullyQualifiedName);

 

如果使用方是.NET WEB ,DLL获取使用:AppDomain.CurrentDomain.BaseDirectory;

posted on 2021-11-23 11:05  runliuv  阅读(123)  评论(0编辑  收藏  举报