I m试图与SL 4级图书馆(无Xaml)合作,使ILMerge开业。
我的任务是:
<Target Name="AfterBuild">
<CreateItem Condition=" %(Extension) == .dll " Include="@(ReferenceCopyLocalPaths)">
<Output TaskParameter="Include" ItemName="IlmergeAssemblies" />
</CreateItem>
<Exec Command=""$......ReferencesIlmerge.exe" /ndebug /targetplatform:v4,"C:Program Files (x86)Microsoft Silverlight4.0.50917.0" /internalize:"$....ILMergeInclude.txt" /keyfile:"$......ReferencesStrongName.pfx" /out:"@(MainAssembly)" "@(IntermediateAssembly)" @(IlmergeAssemblies-> "%(FullPath)" , )" />
<Delete Files="@(ReferenceCopyLocalPaths-> $(OutDir)%(DestinationSubDirectory)%(Filename)%(Extension) )" />
</Target>
首先,我对未解决的议会参照制度产生错误。 核心,但我读到的是必须添加<代码>/targetPlatform。 这消除了这一错误,但我现在要承担上述任务:
An exception occurred during merging:
Unable to load DLL mscorsn.dll : The specified module could not be found. (Exception from HRESULT: 0x8007007E)
没有人会这样做?
感谢。