compiler question.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • CSharper

    compiler question.

    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.resourc es 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?
  • CSharper

    #2
    Re: compiler question.

    On Mar 31, 11:25 am, CSharper <cshar...@gmx.c omwrote:
    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.resourc es 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.

    Comment

    Working...