Closed testsys-murali closed 3 days ago
There's an open issue regarding this, please see https://github.com/ravibpatel/ILRepack.Lib.MSBuild.Task/issues/26. The simplest solution would be to create and reference the ILRepack.targets
in the project directory with the following contents:
<Project>
<Target Name="ILRepacker" AfterTargets="Build" Condition="$(Configuration.Contains('Release'))">
<ItemGroup>
<InputAssemblies Include="$(OutputPath)$(TargetName)$(TargetExt)"/>
<InputAssemblies Include="@(ReferencePathWithRefAssemblies)" Condition="'%(filename)' == 'Newtonsoft.Json'" />
<InputAssemblies Include="@(ReferencePathWithRefAssemblies)" Condition="'%(filename)' == 'Hangfire.Core'" />
<InputAssemblies Include="@(ReferencePathWithRefAssemblies)" Condition="'%(filename)' == 'Owin'" />
</ItemGroup>
<ILRepack
Parallel="true"
DebugInfo="true"
AllowDuplicateResources="false"
InputAssemblies="@(InputAssemblies)"
TargetKind="SameAsPrimaryAssembly"
KeyFile="$(KeyFile)"
OutputFile="$(OutputPath)$(TargetName)$(TargetExt)"
/>
</Target>
</Project>
Hi there -- I am encountering the following error when trying to use the
Hangfire.Core
andILRepack.Lib.MSBuild.Task
NuGet libraries. Can someone please assist me with this issue? Thanks.Error:
Steps to Reproduce: