You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would it be possible to change this to a variable that just has this by default as "ILMergeConfig.json" but it could potentially be set in the main csproj to be a different file? The reason is because we have a few different build configurations and are cross targeting so need a different ILMergeConfig.json per build configuration. Happy to help if this is possible
The text was updated successfully, but these errors were encountered:
i am having the same error, although the task was successfully initially before giving me the same error.
Any solution for this, I am using vs2015 with .net 4.5.2 and
Severity Code Description Project File Line Source Suppression State
Error The "MergeTask" task failed unexpectedly.
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at ILMerge.MsBuild.Task.MergeTask.MergeAssemblies(String mergerPath, MergerSettings settings) in D:\Dev\Github\ILMerge-MSBuild-Task\ILMerge.MSBuild.Task\ILMerge.MSBuild.Task\MergeTask.cs:line 328
at ILMerge.MsBuild.Task.MergeTask.Execute() in D:\Dev\Github\ILMerge-MSBuild-Task\ILMerge.MSBuild.Task\ILMerge.MSBuild.Task\MergeTask.cs:line 167
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.d__26.MoveNext() App Build
I can see that the ILMergeConfig.json is hard coded as a configuration file here:
https://github.com/emerbrito/ILMerge-MSBuild-Task/blob/master/ILMerge.MSBuild.Task/ILMerge.MSBuild.Task/build/ILMerge.MSBuild.Task.targets#L28
Would it be possible to change this to a variable that just has this by default as "ILMergeConfig.json" but it could potentially be set in the main csproj to be a different file? The reason is because we have a few different build configurations and are cross targeting so need a different ILMergeConfig.json per build configuration. Happy to help if this is possible
The text was updated successfully, but these errors were encountered: