これは私の .csproj AfterBuild がどのように見えるかです:
<Target Name="AfterBuild" Condition=" '$(Configuration)' == 'Release'">
<Exec Command=""..\Tools\ILMerge\ILMerge.exe" /internalize /ndebug /out:@(MainAssembly) /targetplatform:v4,C:\Windows\Microsoft.NET\Framework\v4.0.30319 "@(IntermediateAssembly)" @(ReferenceCopyLocalPaths->'"%(FullPath)"', ' ')" Condition=" '$(TargetFrameworkVersion)' == 'v4.0'" />
</Target>
私は64ビットのWindowsを実行しています。.NET Framework を から...\Microsoft.NET\Framework\...
に変更しようとしまし...\Microsoft.NET\Framework64\...
たが、役に立ちませんでした。
また、ILMerge ディレクトリに ILMerge.exe.config を作成しました。
<?xml version ="1.0"?>
<configuration>
<startup useLegacyV2RuntimeActivationPolicy="true">
<requiredRuntime safemode="true" imageVersion="v4.0.30319" version="v4.0.30319"/>
</startup>
</configuration>
ILMerge が 4.0.30319 アセンブリを生成しないのはなぜですか?