Click here to Skip to main content
15,885,216 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi all,

I am adding the smart assembly tag to my project file to obfuscate my exe and dll files using the following smart assembly command.

XML
<UsingTask TaskName="SmartAssembly.MSBuild.Tasks.Build" AssemblyName="SmartAssembly.MSBuild.Tasks, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7f465a1c156d4d57" />
  <Target Name="AfterBuild" Condition="'$(Configuration)' == 'Debug'">
    <SmartAssembly.MSBuild.Tasks.Build OverwriteAssembly="True" ProjectFile="E:\Rahul SVN\CA\smart\Smart Project\CM.saproj" input="$(OutDir)Client Management.exe" output="$(OutDir)Client Management.exe" />
  </Target>



When I try to build the solution it throws the following error :

SmartAssembly build failed:

The module was expected to contain an assembly manifest. (Exception from HRESULT: 0x80131018).


Kindly assist on this

Thanks,
Posted
Comments
Richard Deeming 22-Oct-15 10:29am    
SmartAssembly is a commercial product. If you have a problem using it, contact their support team[^].
Sergey Alexandrovich Kryukov 22-Oct-15 14:42pm    
...but the problem is pretty obvious. By some reason, inquirer points to some executable module which is not a valid main module of a .NET/CLR assembly, which CLR system could recognize by CLR assembly manifest, which is missing in this case.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900