ILMerge to protect dll


https://www.nevron.com/Forum/Topic3146.aspx
Print Topic | Close Window

By JSW W. - 14 Years Ago
Are there some solution to protect your dll by some merge operation?
Would there be potential problem?
By Nevron Support - 14 Years Ago

We don’t think there will be any problems if you want to use ILMerge though we haven’t tested with this utility.

By JSW W. - 13 Years Ago
Nevron.Presentation.dll
Nevron.System.dll

I am using version 2010 and have license for chart and ui. These are the two that will not merge with ilmerge. what could be the problem.

Do i need the presentation.dll at all according to my license?
By JSW W. - 13 Years Ago
I also further test with Nevron.UI.WinForm.Skins.dll.
The dll will merge but skin will not find it resources, images etc.

Thanks,
By Nevron Support - 13 Years Ago
Hello JSW W.,

I've tried to create a new assembly which contains Nevron.Presentation.dll, Nevron.System.dll and Nevron.UI.WinForm.Skins.dll assemblies using ILMerge.
Then I referenced this new assembly and I was able to compile and ran my test project successfully.

To be able to apply skin you should change the value of NSkinResource.AssemblyName property to the name of the assembly that contain Nevron.UI.WinForm.Skins assembly.
Also, if you using Visual Studio 2010 you should change the value of Target Framework property in your project properties to .NET Framework 4.

I hope it helps.
By JSW W. - 13 Years Ago
how did you reference your new dll?

Dim t_panel As NDockingPanel
t_panel = New NDockingPanel

I try this and i won't find the Nevron.presentation...
By Nevron Support - 13 Years Ago
Hello JSW W.,

NDockingPanel is in Nevron.UI.WinForm.Docking assembly.
You should include this assembly too.
By JSW W. - 13 Years Ago
I have tried another combine... and i received this error.

Unresolved Assembly reference not allow : Nevron.GraphicGL ... this only happen in xp not in windows 7.

Also if you combine more dlls that your example you will not be able to combine the presentation. and system dlls with other nevron.dlls.

If you can tell which dll is Nevron.GraphicGL conflict, I can exclude it from combine list.

Thanks,
By Nevron Support - 13 Years Ago
Hello JSW W.,

Please, check whether all Nevron assemblies have the same assembly version.
If you are going to use only UI controls you will need only Nevron.System, Nevron.Presentation, Nevron.UI.WinForm.Docking and Nevron.UI.WinForm.Skins assemblies.