Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 10 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(2)
对于同一问题,我尝试了多种解决方案。 对于这个问题,没有一个很好的解决方案。 LibZ 是 ILMerge 的一个不错的替代品。 您可能会喜欢将程序集打包到程序的资源中,然后从内存中加载所使用的程序集。 如果您混淆可执行文件,至少这会增加另一个间接级别。
I have tried several solutions for the same problem. There isn't a great solution out there for you for this problem. LibZ is a decent alternative to ILMerge. You can probably get cute with just packing the assemblies into the resources of your program then load from memory in regards to the consumed assemblies. If you obfuscate the executable at least this would add yet another level of indirection.
我使用 {smartassemble} 将 SlimDX 和 DirectShow.Net 与我的 .net 程序合并在一起。 两者都是使用 C++/CLI 编写的。 他们在我这边融合得很好。 您从哪里得到它不支持混合程序集的指示?
编辑:我不是 100% 确定,因为我自己以前从未使用过 C++\CLI,但我以前编写过纯 C++ 应用程序。 这就是我收集到的,在 SlimDX 的 AssemblyInfo.cpp 文件中,有一行配置程序集,如下所示:
所以,我假设它包含非托管代码。 或者也许您可以告诉我应该寻找什么指示来表明它包含非托管代码。
顺便说一句,我使用的是 3.0.3063 版本的 {smartassemble}
I've use {smartassembly} to merge SlimDX and DirectShow.Net together with my .net program. Both of that is wrtten using C++/CLI. They merged fine on my side. Where did you get the indication that it doesn't support mixed assemblies?
EDIT: I'm not 100% sure, as I myself never use C++\CLI before, but I've written pure C++ apps before. This is what I gather, in the AssemblyInfo.cpp file of SlimDX, there's a line which configure the assembly like:
So, I assume it contain unmanaged code. Or maybe you could tell me what indication should I be looking for to show that it contain unmanaged code.
Btw, I'm using Version 3.0.3063 of {smartassembly}