<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									C# merge all dlls into one exe file using ILRepack.Lib.MSBuild.Task - BugOverflow				            </title>
            <link>https://muszak.eu/community/bugoverflow/c-merge-all-dlls-into-one-exe-file-using-ilrepack-lib-msbuild-task/</link>
            <description>muszak.eu Forum dyskusyjne</description>
            <language>pl-PL</language>
            <lastBuildDate>Sun, 08 Mar 2026 13:50:39 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>Odpowiedź na: C# merge all dlls into one exe file using ILRepack.Lib.MSBuild.Task</title>
                        <link>https://muszak.eu/community/bugoverflow/c-merge-all-dlls-into-one-exe-file-using-ilrepack-lib-msbuild-task/#post-1053</link>
                        <pubDate>Thu, 23 Jun 2022 12:37:45 +0000</pubDate>
                        <description><![CDATA[inside NuGet console, type

  Install-Package ILRepack.Lib.MSBuild.Task



inside directory where is *.csproj create ILRepack.targets file

&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; ?&amp;...]]></description>
                        <content:encoded><![CDATA[<ol>
<li>inside NuGet console, type
<div class="snippet-clipboard-content notranslate position-relative overflow-auto">
<pre class="notranslate" contenteditable="false"><code>  Install-Package ILRepack.Lib.MSBuild.Task
</code></pre>
</div>
</li>
<li>inside directory where is *.csproj create <strong>ILRepack.targets</strong> file</li>
<li>
<pre contenteditable="false">&lt;?xml version="1.0" encoding="utf-8" ?&gt;
&lt;Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"&gt;
    &lt;Target Name="ILRepacker" AfterTargets="Build" Condition="'$(Configuration)' == 'Release'"&gt;

    &lt;ItemGroup&gt;
	&lt;InputAssemblies Include="$(OutputPath)$(TargetName)$(TargetExt)" /&gt;
        &lt;InputAssemblies Include="$(OutputPath)MyAnotherDll.dll" /&gt;
    &lt;/ItemGroup&gt;

    &lt;ILRepack
	  Parallel="true"
      DebugInfo="true"
      AllowDuplicateResources="false"
      InputAssemblies="@(InputAssemblies)"
      TargetKind="SameAsPrimaryAssembly"
      KeyFile="$(KeyFile)"
      OutputFile="$(OutputPath)merged\$(TargetName)$(TargetExt)"
    /&gt;

    &lt;/Target&gt;
&lt;/Project&gt;</pre>
</li>
<li>this configuration also repair's error
<pre contenteditable="false">The process cannot access the file 'bin\Debug\MyAssembly.pdb' because it is being used by another process.</pre>
</li>
<li>switch project to RELEASE, now <strong>run</strong> or <strong>compile</strong></li>
<li>merged file is inside _PROJECT_\bin\Release\merged</li>
</ol>]]></content:encoded>
						                            <category domain="https://muszak.eu/community/bugoverflow/">BugOverflow</category>                        <dc:creator>mrmucha</dc:creator>
                        <guid isPermaLink="true">https://muszak.eu/community/bugoverflow/c-merge-all-dlls-into-one-exe-file-using-ilrepack-lib-msbuild-task/#post-1053</guid>
                    </item>
				                    <item>
                        <title>C# merge all dlls into one exe file using ILRepack.Lib.MSBuild.Task</title>
                        <link>https://muszak.eu/community/bugoverflow/c-merge-all-dlls-into-one-exe-file-using-ilrepack-lib-msbuild-task/#post-1052</link>
                        <pubDate>Thu, 23 Jun 2022 12:31:05 +0000</pubDate>
                        <description><![CDATA[example]]></description>
                        <content:encoded><![CDATA[<p>example</p>]]></content:encoded>
						                            <category domain="https://muszak.eu/community/bugoverflow/">BugOverflow</category>                        <dc:creator>mrmucha</dc:creator>
                        <guid isPermaLink="true">https://muszak.eu/community/bugoverflow/c-merge-all-dlls-into-one-exe-file-using-ilrepack-lib-msbuild-task/#post-1052</guid>
                    </item>
							        </channel>
        </rss>
		