Comments (16)
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
from ilmerge-msbuild-task.
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.
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.
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:
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.
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.
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.
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.
from ilmerge-msbuild-task.
it's ok am glad that i can help
from ilmerge-msbuild-task.
@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.
@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.
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
This issue still not be fixed. Thanks to this walk around.
from ilmerge-msbuild-task.
The ILMerge NuGet package sets a $(ILMergeConsolePath)
property which ILMerge.MsBuild.Task could use to locate the tool.
from ilmerge-msbuild-task.
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.
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.
Shipped with v1.0.5.
from ilmerge-msbuild-task.
Related Issues (20)
- Unresolved assembly reference not allowed
- Delete source input assemblies HOT 7
- The task hangs if it can not access the file HOT 4
- CreateDirectory error HOT 2
- ILMerge.MSBuild.Task.targets incompatible with VS2017 HOT 2
- wiki - Content string escape HOT 2
- Multiple Projects in Solution HOT 5
- ABout box auto override by content of other dll HOT 2
- Need for UserProfile variable with ILMergeConfig.json (for using PackageReference format) HOT 1
- Improve the way ilmerge executable is located. HOT 2
- The process cannot access the file 'bin\Debug\MyAssembly.pdb' because it is being used by another process. HOT 2
- ILMergeConfig.json is not applied HOT 2
- Key needs to be greater than 0 - possible error when running task multiple times HOT 3
- ILMergeAllowDuplicateType doesn't seem to be working HOT 1
- Support for Xamarin.Android HOT 1
- Debug info missing
- Exception of type 'System.OutOfMemoryException' was thrown. HOT 6
- illigael path with AssemblyFile HOT 3
- Specify a custom ILMergeConfig.json file for different build configurations? HOT 1
- `AllowDuplicateTypes` is not defined in the `AdvancedSettings.cs` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ilmerge-msbuild-task.