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

MainClass in a ReferencedAssembly

$
0
0

Dear all,

I have one assembly (a.dll) that process data (text files) in separate resource assemblies (r1.dll, r2.dll, r3.dll, etc...). Each resource assembly is processed, separately, by the "a.dll".

Therefore, I generate an executable assembly (for example: ar1.exe) where the EmbeddedResource is one resource assembly (for example: r1.dll) and the ReferencedAssembly is "a.dll".  Another executable assembly (for example: ar2.exe) where the EmbeddedResource is another resource assembly (for example: r2.dll) and the ReferencedAssembly is the same "a.dll".

The problem is specifying the MainClass to point to a class in the ReferencedAssembly. What is the syntax of specifying the MainClass that is in a ReferencedAssembly ?

Thank you

I can simplify the previous design by eliminating one step. Instead of having "a.dll" and "r1.dll" and then generate "ar1.exe" out of the two, I can generate "r1.exe" instead of "r1.dll" so that it contains the resources and reference "a.dll".
However, I still need to reference the MainClass that is contained in "a.dll" when generating "r1.exe".

Your help is much appreciated... thank you


Viewing all articles
Browse latest Browse all 1710

Trending Articles



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