Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. ILMerge is not working

ILMerge is not working

Scheduled Pinned Locked Moved C#
csharptools
6 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Ashfaque Hussain
    wrote on last edited by
    #1

    Hi I am giving target type as exe and output file name also has extension exe but erro i am getting: C:\Program Files\Microsoft\ILMerge>ilmerge /target:exe /out:myoutput.exe Utility.exe FeCom.dll /ndebug /xmldocs /targetplatform:v4 ,"%ProgramFiles%\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0" An exception occurred during merging: ILMerge.Merge: /target specified as an executable, but output file, 'C:\Program' , does not have a .exe extension. at ILMerging.ILMerge.Merge() at ILMerging.ILMerge.Main(String[] args)

    L D 2 Replies Last reply
    0
    • A Ashfaque Hussain

      Hi I am giving target type as exe and output file name also has extension exe but erro i am getting: C:\Program Files\Microsoft\ILMerge>ilmerge /target:exe /out:myoutput.exe Utility.exe FeCom.dll /ndebug /xmldocs /targetplatform:v4 ,"%ProgramFiles%\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0" An exception occurred during merging: ILMerge.Merge: /target specified as an executable, but output file, 'C:\Program' , does not have a .exe extension. at ILMerging.ILMerge.Merge() at ILMerging.ILMerge.Main(String[] args)

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      It looks like it is mis-reading the "C:\Program Files" path as two separate paths, even though you have it in double quotes. You could try using a relative path to that directory to avoid the two-word path name, something like:

      ilmerge /target:exe /out:myoutput.exe Utility.exe FeCom.dll /ndebug /xmldocs /targetplatform:v4 ,..\..\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0

      Note: I'm not sure about that comma in front of the last path.

      A 1 Reply Last reply
      0
      • L Lost User

        It looks like it is mis-reading the "C:\Program Files" path as two separate paths, even though you have it in double quotes. You could try using a relative path to that directory to avoid the two-word path name, something like:

        ilmerge /target:exe /out:myoutput.exe Utility.exe FeCom.dll /ndebug /xmldocs /targetplatform:v4 ,..\..\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0

        Note: I'm not sure about that comma in front of the last path.

        A Offline
        A Offline
        Ashfaque Hussain
        wrote on last edited by
        #3

        Thanks Richard MacCutchan, still I am getting the same errors.

        L 1 Reply Last reply
        0
        • A Ashfaque Hussain

          Thanks Richard MacCutchan, still I am getting the same errors.

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          There is a contact email on http://research.microsoft.com/en-us/people/mbarnett/ilmerge.aspx[^] which may be worth trying.

          A 1 Reply Last reply
          0
          • L Lost User

            There is a contact email on http://research.microsoft.com/en-us/people/mbarnett/ilmerge.aspx[^] which may be worth trying.

            A Offline
            A Offline
            Ashfaque Hussain
            wrote on last edited by
            #5

            Thanks Richard..:)

            1 Reply Last reply
            0
            • A Ashfaque Hussain

              Hi I am giving target type as exe and output file name also has extension exe but erro i am getting: C:\Program Files\Microsoft\ILMerge>ilmerge /target:exe /out:myoutput.exe Utility.exe FeCom.dll /ndebug /xmldocs /targetplatform:v4 ,"%ProgramFiles%\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0" An exception occurred during merging: ILMerge.Merge: /target specified as an executable, but output file, 'C:\Program' , does not have a .exe extension. at ILMerging.ILMerge.Merge() at ILMerging.ILMerge.Main(String[] args)

              D Offline
              D Offline
              Dan Colasanti
              wrote on last edited by
              #6

              Perhaps the comma before "%ProgramFiles%... is causing an issue?

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups