Code Monkey home page Code Monkey logo

Comments (16)

Ahmed-Elrayes avatar Ahmed-Elrayes commented on July 28, 2024 7

well i got this issue for the latest Version of ILMerge check the pic in number 2 , when u download it from NuGet the ILMerge.exe is in a wrong folder it inside packages\ILMerge.3.0.21\tools\net452
but it should be like Number 1
packages\ILMerge.3.0.21\tools
when i copied it and pasted inside the correct destination it worked
image 2

from ilmerge-msbuild-task.

gabbyrozow avatar gabbyrozow commented on July 28, 2024 2

This issue still seems to be a problem. It works when the ILMerge nuget used is version 2.14.1203, but breaks with this error in more current versions for some reason

from ilmerge-msbuild-task.

emerbrito avatar emerbrito commented on July 28, 2024 2

Moving forward we will use $(ILMergeConsolePath) as suggested by @ltrzesniewski since it can always provide the exact location of the executable.
Please refer to issue "#23 - Improve the way ilmerge executable is located" for more details.

There you will also find screenshots, logs and examples where the build task was able to successfully find the executable under different scenarios including the ones mentioned here.

This will be available on v1.0.5.

from ilmerge-msbuild-task.

emerbrito avatar emerbrito commented on July 28, 2024 1

If both packages: "ILMerge-MSBuild-Task" and "ILMerge" are under the same "packages" folder, the build task should be able to resolve it, for example:

image

In above scenario it doesn't matter where "packages" is located, as long as your Visual Studio solution is aware of it and "ILMerge-MSBuild-Task" is running from there.

If you are still experiencing issues, please send your build log, it may help me narrow it down.

from ilmerge-msbuild-task.

TheGoctor avatar TheGoctor commented on July 28, 2024 1

I'm also seeing this. Build output shows:

Task lib location: C:\Users\%USERNAME%\.nuget\packages\ilmerge.msbuild.task\1.0.3\tools
Package location: C:\Users\%USERNAME%\.nuget\pacakges\ilmerge.msbuild.task
No folder starting with 'ILMerge' were found under C:\Users\%USERNAME%\.nuget\packages\ilmerge.msbuild.task.
...

By looking at ExeLocationHelper.cs, I can see it's only going up two levels from the Task lib location on line 134.

Sorry, I don't have time to open a PR myself, but hopefully that gives someone else a head start.

from ilmerge-msbuild-task.

M-Pixel avatar M-Pixel commented on July 28, 2024

Nuget changed its package layout since @emerbrito posted that screenshot - now instead of packages\assembly.version\tools\..., we have packages\assembly\version\tools\.... It's now necessary to go 3 levels up instead of 2, for that reason.

from ilmerge-msbuild-task.

emerbrito avatar emerbrito commented on July 28, 2024

My apologies. My delay is due to email notifications issues that I hope I fixed for good this time.
Are you still experiencing this? I just tested it with the latest ILMerge package (3.0.21) and the latest extension version and it worked just fine.

If it is still an issue could you please provide me more details on how I can reproduce it so I can work on it ASAP? Please include versions of vs, .net framework and packages you are using.

from ilmerge-msbuild-task.

gabbyrozow avatar gabbyrozow commented on July 28, 2024

from ilmerge-msbuild-task.

Ahmed-Elrayes avatar Ahmed-Elrayes commented on July 28, 2024

it's ok am glad that i can help

from ilmerge-msbuild-task.

xuxuedong avatar xuxuedong commented on July 28, 2024

@emerbrito when i use vs2017 + ilmerge 3.0.21 + msbuild.ilmerge.task 1.0.5, it has following error
"system.io.filenotfoundexception: cannot find ilmerge executable."

from ilmerge-msbuild-task.

Ahmed-Elrayes avatar Ahmed-Elrayes commented on July 28, 2024

@emerbrito when i use vs2017 + ilmerge 3.0.21 + msbuild.ilmerge.task 1.0.5, it has following error
"system.io.filenotfoundexception: cannot find ilmerge executable."

i guess this might fix your issue
#13 (comment)

from ilmerge-msbuild-task.

cnrat avatar cnrat commented on July 28, 2024

well i got this issue for the latest Version of ILMerge check the pic in number 2 , when u download it from NuGet the ILMerge.exe is in a wrong folder it inside packages\ILMerge.3.0.21\tools\net452
but it should be like Number 1
packages\ILMerge.3.0.21\tools
when i copied it and pasted inside the correct destination it worked
image 2

This issue still not be fixed. Thanks to this walk around.

from ilmerge-msbuild-task.

ltrzesniewski avatar ltrzesniewski commented on July 28, 2024

The ILMerge NuGet package sets a $(ILMergeConsolePath) property which ILMerge.MsBuild.Task could use to locate the tool.

from ilmerge-msbuild-task.

emerbrito avatar emerbrito commented on July 28, 2024

I tried several times but I still cannot reproduce what was described here (comment). Every time I install the package it goes to the expected folders.

I will try to improve the way it locates the executable in order to avoid this.

from ilmerge-msbuild-task.

emerbrito avatar emerbrito commented on July 28, 2024

The ILMerge NuGet package sets a $(ILMergeConsolePath) property which ILMerge.MsBuild.Task could use to locate the tool.

I will look into this.
Meanwhile to anyone experiencing issues, there is an property in the configuration file where you can also manually specify the path of your ilmerge executable (as a last resort): "AlternativeILMergePath":

https://github.com/emerbrito/ILMerge-MSBuild-Task/wiki/Config-File

from ilmerge-msbuild-task.

emerbrito avatar emerbrito commented on July 28, 2024

Shipped with v1.0.5.

from ilmerge-msbuild-task.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.