Quantcast
Channel: MSBuild Extension Pack
Viewing all articles
Browse latest Browse all 1211

New Post: The "MSBuild.ExtensionPack.Framework.ILMerge" task failed unexpectedly.

$
0
0

Hello Mike,

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:

  <Target Name="AfterBuild">

    <ItemGroup>
      <Input Include="$(ProjectDir)\Bin\*.*" />
    </ItemGroup>

    <MSBuild.ExtensionPack.Framework.ILMerge InputAssemblies="@(Input)" TargetPlatformVersion="v4" TargetPlatformdirectory="c:\Windows\Microsoft.NET\Framework\v4.0.30319" OutputFile="$(OutputPath)\Merged.Site.dll" />
   
  </Target>

     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.

Thank you,

Miguel


Viewing all articles
Browse latest Browse all 1211

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>