Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I have found <em>one solution</em>! It's not perfect but it does what I want! As I used very long Scandinavian nights to find the solution, I feel that I have to share it here.</p> <p>Here's what I did:</p> <p>1) Wrote a dumb console C# app.</p> <pre><code>class ResTest { static void Main() { System.Console.WriteLine("Hello World!"); } } </code></pre> <p>2) Did a simple <code>csc restest.cs</code> to test that my code worked.</p> <p>3) Opened Notepad and wrote the following in a file I dubbed <code>App.rc</code>.</p> <pre><code>101 ICON "Application.ico" 102 ICON "Document.ico" 103 ICON "Help.ico" </code></pre> <p>4) Ran <code>rc /v App.rc</code>, the <a href="http://msdn.microsoft.com/en-us/library/aa381055(VS.85).aspx" rel="nofollow noreferrer">Resource Compiler</a>. A new file, <code>App.res</code> had appeared.</p> <p>5) Reran <code>csc</code> but this time:</p> <pre><code>csc /win32res:App.res restest.cs </code></pre> <p>6) <code>restest.exe</code> had now the icon with the ID of 101 and I could find the two other icons in Axialis IconWorkshop.</p> <hr> <p>Now, I noticed that my assembly information (version, product name, blah blah <strong>blah</strong>) had disappeared. I googled <code>VS_VERSION_INFO</code> and came about MSDN's article about the VERSIONINFO structure which in RC files defines the attributes I need.</p> <p>I would have preferred a more 'automated' method, but I must do what I can using the C# Express and the Windows Vista SDK.</p> <p>-- Hope that you can use this...</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload