Quantcast
Channel: Common Language Runtime Internals and Architecture forum
Viewing all articles
Browse latest Browse all 1710

Multiple controls in a DLL using Visual Studio

$
0
0

I have a series of custom user controls (ASCX files) which have been tested and are confirmed to be in working order. Using the method provided by Microsoft (https://msdn.microsoft.com/en-us/library/aa479318.aspx) I have successfully managed to create a DLL for each control and reuse them in several different applications.

What I would like to do now is to combine the controls into a single DLL, as importing 5 or so DLL's into each application can be a bit of a hassle, but this is where things tend to get interesting. When I combine the controls by using ILMerge I get results included but not limited to the following:

  • Controls failing to render entirely
  • Controls corrupting their Javascript so it shows as raw HTML
  • String resource errors

I suspect this is due to selecting my primary assembly incorrectly but I receive an error no matter which DLL I select as the primary assembly. Therefore my question is whether it is indeed possible to combine several custom controls into a solitary DLL and if so how? All of my controls are in a single solution and use a single Javascript and CSS file.

Any advice is appreciated!


Viewing all articles
Browse latest Browse all 1710

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>