【发布时间】:2012-11-02 18:16:24
【问题描述】:
我有一个名为 JIMS.Printing.dll 的 dll,它位于主应用程序 JIMS.exe 的 Reporting 文件夹中。
但是在运行 JIMS.exe 的 Reporting 中调用 JIMS.Printing.dll 代码中的 Templates 文件夹中的某些文件时出现错误
JIMS.exe
--------->Reporting
------------------->JIMS.Printing.dll
------------------->Templates
-----------------------------> Files
代码:
string _templatePath = Path.Combine(Path.GetDirectoryName(System.Reflection.Assembly.GetAssembly(typeof(JIMS.Printing.PrintInvoice)).Location), "Templates");
来自 JIMS.Printing.dll 的代码
JIMS.exe 在 JIMS.exe Path\Templates\file 中寻找文件, 但实际上该文件位于 JIMS.Printing.dll Path\Templates\files
【问题讨论】:
-
错误是什么?你有什么问题?