Okay, so I finished a .net program and I want it to be able to be distributed to those who don't have the .net framework / latest edition and to make it portable. I'm using the ILMerge Gui (http://ilmergegui.codeplex.com) but every time I add all the required .net DLLs and attempt to merge them it comes up with an error message saying:

"There was a problem trying to merge. The output assembly might not work as expected. ILMerge.Merge: The assembly 'mscorlib' was not merged in correctly. It is still listed as an external reference in the target assembly."

I have "Copy Attributes" and "Union Duplicates" checked and .net 4.0 set as the framework.

What is going wrong?

有帮助吗?

解决方案

I want it to be able to be distributed to those who don't have the .net framework

If you want to distribute any application to those, who don't have the .NET framework, just don't use .NET framework to make your application.

IL Merge is not for making .NET application free from .NET runtime. Event if you could merge all what you want into single assembly, this assembly won't execute without runtime.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top