I worte a customized Project Template which created an instance of Code Modules, and in the project property added the reference that will be used in the customized code module. I got an error when compile in K2 studio:
====================
Compile ProjectName...
Compile Error: Imports Line 0: Metadata file 'namespace.dll' could not be found
====================
I placed the assembly (the required reference) in the K2 bin directory before I compiled. Here is the code:
K2ProjectObj.References.Add("namespace.dll","",false);
But if I changed the statement to:
K2ProjectObj.References.Add(@"C:program filesk2in
amespace.dll","",false);
then it compiles successfully, but when I exported to the k2 server, got an error:
====================
Exporting to server...
The given path's format is not supported.
====================
It seems like the K2 server doesn't like to full path format, but if I don't specify the full path, then i get compile error, if I do, it won't get passed the K2 server.
Any suggestion, thanks a lot.
Patrick