Click here to Skip to main content
15,924,452 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: using vb and c# in one solution simoltaneously Pin
lili.zd25-Feb-09 3:16
lili.zd25-Feb-09 3:16 
GeneralRe: using vb and c# in one solution simoltaneously Pin
Luc Pattyn25-Feb-09 3:38
sitebuilderLuc Pattyn25-Feb-09 3:38 
GeneralRe: using vb and c# in one solution simoltaneously Pin
lili.zd25-Feb-09 4:20
lili.zd25-Feb-09 4:20 
QuestionHow to change coordinates of a node/ change node shape to an image in GLEE or GraphViz/ save layout in GLEE/ GraphViz Pin
ekuloglu24-Feb-09 5:19
ekuloglu24-Feb-09 5:19 
QuestionGeneric Data Access Object Pin
snouto24-Feb-09 3:05
snouto24-Feb-09 3:05 
AnswerRe: Generic Data Access Object Pin
Jon Rista24-Feb-09 6:14
Jon Rista24-Feb-09 6:14 
GeneralRe: Generic Data Access Object Pin
snouto24-Feb-09 23:19
snouto24-Feb-09 23:19 
QuestionProblem with merging assemblies using ILmerge Pin
Abhishek Kulkarni23-Feb-09 21:20
Abhishek Kulkarni23-Feb-09 21:20 
Actually problem is, the application using the merged dll is not able to find the resources inside merged DLLs.

Let me explain the problem with the help of a demo project.

Here is what I have done in demo project

Inside one solution, I have 4 projects.

Project 1: DLL with name A.B.C.Resources1.dll and namespace A.B.C
Project 2: DLL with name A.B.C.Resources2.dll and namespace A.B.C
Project 3: DLL with name A.B.D.Resources3.dll and namespace A.B.D
Project 4: EXE with name X.Y.Z.ResourcesTest.exe and namespace X.Y.Z .
This project has the above three projects added as references.

Each of the first three projects contains :
A. Image resource (The resources are added the way you told).
B. One form and one button added to it.

I am simply setting the image for the button inside constructor of each project, as :

Button_Name.Image = Properties.Resources.Image_Name;

The fourth project has three buttons, each for one DLL and I am calling appropriate constructor on button click event.

Now, if i use three DLLs separately : everything works fine.

If I merge three dlls with command :

ILMerge /log:A.B.C.Resources.log /t:library /copyattrs /allowdup /out:A.B.C.Resources.dll A.B.C.Resources1.dll A.B.C.Resources2.dll A.B.D.Resources3.dll

and

use the merged DLL in the 4th project : The image for button of the 2nd DLL is not visible (Resources not found).

Observations and Findings :

1. After merging, the Resource class is getting renamed by the ILMerge for the 2nd DLL. This happens because the namespace of
the first and second DLL is the same.

Ex : I saw the merged DLL inside Reflector, It shows, inside namespace A.B.C.Properties,
Class Resources for the A.B.C.Resources1.dll DLL is as it is : Resources
Class Resources for the A.B.C.Resources2.dll DLL is renamed to A.B.C.Resources23043.Resources

2. For the 3rd DLL everything works fine, as it has different namespace.

3. If I change the namespace for the 3rd DLL to A.B.C and merge the DLLs, the image for buttons of the 2nd as well as 3rd DLLs are missing.

4. If I use the different namespace for each DLL and merge them and use, everything works fine.

5. So, basically I think this is due to renaming of the Resource class in the A.B.C.Properties namespace.

Is there any way to solve this, without changing the namespaces?? Because I want all the dlls to have the same namespace.

Is there any way to stop renaming by ILMerge?

Regards
Abhishek
AnswerRe: Problem with merging assemblies using ILmerge Pin
ABitSmart24-Feb-09 1:22
ABitSmart24-Feb-09 1:22 
QuestionHow to block the option to see my .net code with reflection.exe ? Pin
Yanshof23-Feb-09 6:29
Yanshof23-Feb-09 6:29 
AnswerRe: How to block the option to see my .net code with reflection.exe ? Pin
EliottA23-Feb-09 7:48
EliottA23-Feb-09 7:48 
AnswerRe: How to block the option to see my .net code with reflection.exe ? Pin
Mark Churchill23-Feb-09 12:34
Mark Churchill23-Feb-09 12:34 
GeneralRe: How to block the option to see my .net code with reflection.exe ? Pin
Rob Philpott23-Feb-09 23:47
Rob Philpott23-Feb-09 23:47 
GeneralRe: How to block the option to see my .net code with reflection.exe ? Pin
Mark Churchill24-Feb-09 0:17
Mark Churchill24-Feb-09 0:17 
GeneralRe: How to block the option to see my .net code with reflection.exe ? Pin
PIEBALDconsult24-Feb-09 17:42
mvePIEBALDconsult24-Feb-09 17:42 
QuestionMultihreaded .NET app with single threaded ActiveX control? Pin
David Knechtges23-Feb-09 4:03
David Knechtges23-Feb-09 4:03 
GeneralRe: Multihreaded .NET app with single threaded ActiveX control? Pin
Luc Pattyn23-Feb-09 4:55
sitebuilderLuc Pattyn23-Feb-09 4:55 
GeneralRe: Multihreaded .NET app with single threaded ActiveX control? Pin
David Knechtges23-Feb-09 9:55
David Knechtges23-Feb-09 9:55 
QuestionCLR Stored Procedure Exception Pin
snouto23-Feb-09 1:42
snouto23-Feb-09 1:42 
AnswerRe: CLR Stored Procedure Exception Pin
Dave Kreskowiak23-Feb-09 4:35
mveDave Kreskowiak23-Feb-09 4:35 
GeneralRe: CLR Stored Procedure Exception Pin
alx.n25-Feb-09 1:49
alx.n25-Feb-09 1:49 
GeneralRe: CLR Stored Procedure Exception Pin
Dave Kreskowiak25-Feb-09 1:55
mveDave Kreskowiak25-Feb-09 1:55 
Questionnet framework 2 Pin
6Mikael922-Feb-09 23:28
6Mikael922-Feb-09 23:28 
AnswerRe: net framework 2 Pin
Dave Kreskowiak23-Feb-09 4:33
mveDave Kreskowiak23-Feb-09 4:33 
Questionremote access to sql server 2000 by c# Pin
H.R22-Feb-09 22:47
H.R22-Feb-09 22:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.