Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / November 2006

Tip: Looking for answers? Try searching our database.

Compiling .res into a .NET application within IDE

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
wizofaus@hotmail.com - 05 Nov 2006 05:04 GMT
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.
Mattias Sjögren - 05 Nov 2006 13:57 GMT
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

Signature

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

wizofaus@hotmail.com - 05 Nov 2006 20:22 GMT
> 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.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.