Compiling .res into a .NET application within IDE - CSharp

This is a discussion on Compiling .res into a .NET application within IDE - CSharp ; Hi, I understand that if you want multiple win32 icons in a .NET application (so that, e.g., Windows Explorer can see them), you have compile an .rc to an .res with rc.exe, then use the /win32res: option for either csc.exe ...

+ Reply to Thread
Results 1 to 3 of 3

Compiling .res into a .NET application within IDE

  1. Default Compiling .res into a .NET application within IDE

    Hi,

    I understand that if you want multiple win32 icons in a .NET
    application (so that, e.g., Windows Explorer can see them), you have
    compile an .rc to an .res with rc.exe, then use the /win32res: option
    for either csc.exe or al.exe to link the .res into the assembly.
    However I really can't believe there's no way to do this from within
    the IDE, even it means using al.exe in a post-build event to relink the
    assembly (effectively discarding the one that is created by default).
    The question is, is there a reasonable way to determine what the
    command line to al.exe should be based on the files in your .NET
    project? Is there even a way to get verbose compiler/linker output
    under VS.NET to see how they are being called?

    If not, what alternatives are there? I know there are freeware
    utilities that can rebind .res files into existing .exes, but I haven't
    tested whether they work with .NET assemblies. Presumably it wouldn't
    be hugely difficult to write one, but I'm not particularly keen on
    reinventing the wheel.


  2. Default Re: Compiling .res into a .NET application within IDE


    Are you using VS2005? If you are, I think you can just add a property
    to the csproj file to make it work (using a text editor, since the
    option isn't exposed in the IDE).


    Mattias

    --
    Mattias Sjögren [C# MVP] mattias @ mvps.org
    http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
    Please reply only to the newsgroup.

  3. Default Re: Compiling .res into a .NET application within IDE


    Mattias Sjögren wrote:
    > Are you using VS2005? If you are, I think you can just add a property
    > to the csproj file to make it work (using a text editor, since the
    > option isn't exposed in the IDE).
    >

    Still stuck with VS 2003 at this point, and there doesn't seem to be
    anywhere in the .csproj file to specify command line parameters for
    csc.exe or al.exe.


+ Reply to Thread

Similar Threads

  1. question about compiling application
    By Application Development in forum DOTNET
    Replies: 4
    Last Post: 08-10-2007, 05:52 PM
  2. about compiling
    By Application Development in forum xharbour
    Replies: 5
    Last Post: 08-06-2007, 03:11 AM
  3. compiling c application to prc (palm) tool
    By Application Development in forum C
    Replies: 0
    Last Post: 06-29-2007, 03:09 AM
  4. Compiling an application to 1.1 using VS2005
    By Application Development in forum CSharp
    Replies: 2
    Last Post: 01-10-2006, 01:32 PM