Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PrimaryAssemblyFile only added on Release Builds #31

Open
SteffenSchwaiger opened this issue May 28, 2021 · 0 comments
Open

PrimaryAssemblyFile only added on Release Builds #31

SteffenSchwaiger opened this issue May 28, 2021 · 0 comments

Comments

@SteffenSchwaiger
Copy link

SteffenSchwaiger commented May 28, 2021

The PrimaryAssemblyFile seems to be added only on Release Builds via a relative path. ..\..\[...]\UIControls.dll

Debug Log

INFO: IL Repack - Version 2.0.18
VERBOSE: Runtime: ILRepack.Lib.MSBuild.Task, Version=2.0.18.2, Culture=neutral, PublicKeyToken=f7072046361f3979
INFO: ------------- IL Repack Arguments -------------
/out:D:\[...]\merged\UIControls.dll  D:\[...]UIControls.dll D:\[...]\de\UIControls.resources.dll
-----------------------------------------------
INFO: Adding assembly for merge: D:\[...]\UIControls.dll
INFO: Adding assembly for merge: D:\[...]\UIControls.resources.dll

Release Log

INFO: IL Repack - Version 2.0.18
VERBOSE: Runtime: ILRepack.Lib.MSBuild.Task, Version=2.0.18.2, Culture=neutral, PublicKeyToken=f7072046361f3979
INFO: ------------- IL Repack Arguments -------------
/out:D:\[...]\merged\UIControls.dll ..\..\[...]\UIControls.dll  D:\[...]UIControls.dll D:\[...]\de\UIControls.resources.dll
-----------------------------------------------
INFO: Adding assembly for merge: ..\..\[...]\UIControls.dll
INFO: Adding assembly for merge: D:\[...]\UIControls.dll
INFO: Adding assembly for merge: D:\[...]\de\UIControls.resources.dll
[...]
ERROR: Duplicate type UIControls.ControlA

The target is identical for both configurations. When I remove the first InputAssembly it's content is missing on Debug builds.

*csproj

<Target Name="ILRepacker" AfterTargets="Build">
    <ItemGroup>
		<InputAssemblies Include="$(TargetDir)$(AssemblyName).dll" />
		<InputAssemblies Include="$(TargetDir)de\$(AssemblyName).resources.dll" />
    </ItemGroup>
    <ILRepack Parallel="true" DebugInfo="true" InputAssemblies="@(InputAssemblies)" TargetKind="SameAsPrimaryAssembly" OutputFile="$(TargetDir)\merged\$(AssemblyName).dll" Verbose="true" LogFile="$(TargetDir)log.txt" />
  </Target>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant