Open FrankSzendzielarz opened 2 years ago
I've been getting the same issue.
A workaround that fixed the issue for me was from the duplicate #26, from this comment .
The workaround I came across for this same issue is below: I had this issue and I believe the fix was adding an inputassemblies reference in ILRepack.targets. Please note the expandable ReferencePathWithRefAssemblies inclusion. Just add the file name and exclude the .dll (file type). This fix was taken from https://www.meziantou.net/merging-assemblies-using-ilrepack.htm
<ItemGroup>
<InputAssemblies Include="$(TargetPath)"/>
<InputAssemblies Include="@(ReferencePathWithRefAssemblies)" Condition="'%(filename)' == 'Newtonsoft.Json'" />
<InputAssemblies Include="@(ReferencePathWithRefAssemblies)" Condition="'%(filename)' == 'Microsoft.Xrm.Sdk.Workflow'" />
<InputAssemblies Include="@(ReferencePathWithRefAssemblies)" Condition="'%(filename)' == 'Microsoft.Xrm.Sdk'" />
<InputAssemblies Include="@(ReferencePathWithRefAssemblies)" Condition="'%(filename)' == 'Microsoft.Crm.Sdk.Proxy'" />
<InputAssemblies Include="$(OutputPath)\MyAssembly.dll" />
</ItemGroup>
ILRepack task always fails with the above error. This is even if the target is in an external file, or in the csproj. Even if the assembly list to merge is just a single assembly, the above error occurs.
Cannot get this to work.