Dec 5, 2011 at 9:57 PM
Edited Dec 5, 2011 at 10:04 PM
I was able to solve it by adding TargetPlatformDirectory. Thank You.
1 - About selecting all DLL's I am not sure what you mean with Inline Task. Could you, please, give me an example?
What I have been trying is the following:
<Input Include="$(ProjectDir)\Bin\*.*" />
<MSBuild.ExtensionPack.Framework.ILMerge InputAssemblies="@(Input)" TargetPlatformVersion="v4" TargetPlatformdirectory="c:\Windows\Microsoft.NET\Framework\v4.0.30319" OutputFile="$(OutputPath)\Merged.Site.dll" />
Shouldn't this work?
After searching it seems this is how it is usually done.
2 - Thanks. I will check it out.
3 - After merging the resulting assembly gets the details (Name, Version, ...) of the first assembly in list.
Is it possible to do it another way?
4 - Is there an option to in ILMerge task to delete all Merged assemblies after merging.
I was reading it but couldn't find it. This would be a useful option, for example, when publishing the application to the server.