compiler question.

C

CSharper

I am using al.exe to build a exe from a .netmodule and adding a
resource. I was able to do it and al.exe ran fine. I was expecting
that the exe that get generated will have both my .netmodule and the
resource and it seems not. When I copy just the exe to another
directory and run it, I get filenotfound error on the .netmodule. Am I
missing something? here is the command line question

al /out:u1.exe /t:winexe /embed:b.resources u.netmodule /
main:NameSpace.Program.Main

When I run u1.exe with u.netmodule, it works fine, but if I delete
u.netmodule from the current directory, u.exe fails with .netmodule
not found. Can someone help me?
 
C

CSharper

I am using al.exe to build a exe from a .netmodule and adding a
resource. I was able to do it and al.exe ran fine. I was expecting
that the exe that get generated will have both my .netmodule and the
resource and it seems not. When I copy just the exe to another
directory and run it, I get filenotfound error on the .netmodule. Am I
missing something? here is the command line question

al /out:u1.exe /t:winexe /embed:b.resources u.netmodule /
main:NameSpace.Program.Main

When I run u1.exe with u.netmodule, it works fine, but if I delete
u.netmodule from the current directory, u.exe fails with .netmodule
not found. Can someone help me?

Ok, after some research I found out that, if you have al.exe to
combaine the resource and .netmodule, you still need to redistribute
the .netmodule and ILMerge noway will include the .netmodule in
the .exe
Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top