Hi again,
I solved this issue at the end.
As you mentioned previous post, calling to csc.exe is broking my codes and serialization. So then, I follow the other approach:
If I compile the project without generating XMLSerialization dlls and then merge BugTest.exe and MyLibrary.dll as a new BugTest.exe and then generate BugTest.XmlSerialization.dll from this new BugTest.exe (using sgen) and protect only new BugTest.exe with enigma then my application works perfectly. Also this means, I don't need to change my software architecture.
You can see why csc.exe running when merging and protecting the exe from this link: http://blog.bits-in-motion.com/2009/11/ ... 0solution.
Not Protect API
Re: Not Protect API
Yes, of course, this is what I told to you.
Now, just to hide BugTest.XmlSerialization.dll, you may add it into Virtual Box feature, and finally you will have just alone exe file
Now, just to hide BugTest.XmlSerialization.dll, you may add it into Virtual Box feature, and finally you will have just alone exe file