Skip to main content

Attaching resource file with DLL using ILGEN

  • May 12, 2016
  • 2 replies
  • 0 views

Hi,

I am trying to create a managed dll from command line using -ILGEN directive.  While creating the dll I am also trying to consume the .res (Resource script) file but I am unable to do the same.

can anyone please help me with a way to consume the .res or .rc file in managed dll from command line.

Thanks

Anand

2 replies

Chris Glazier
Forum|alt.badge.img+2

Hi,

I am trying to create a managed dll from command line using -ILGEN directive.  While creating the dll I am also trying to consume the .res (Resource script) file but I am unable to do the same.

can anyone please help me with a way to consume the .res or .rc file in managed dll from command line.

Thanks

Anand

You can use the directive ILNATIVERESOURCE to add a resource file to your compile.

See here:


Hi,

I am trying to create a managed dll from command line using -ILGEN directive.  While creating the dll I am also trying to consume the .res (Resource script) file but I am unable to do the same.

can anyone please help me with a way to consume the .res or .rc file in managed dll from command line.

Thanks

Anand

Thanks