Bad IL format.

Thursday, April 25, 2024 7:26:48 PM
  • Posted: Sunday, December 6, 2020 6:52 PM
  • 10
after creating a custom plugin and build it this error appears and the reason is 3 Dlls that created each time I build the custom plugin.
after deleting the 3 Dlls the app worked fine
the Dlls are:
libzstd.dll
snappy32.dll
snappy64.dll
any idea how to fix this issue
I'm using v 4.80
0
  • Posted: Monday, December 7, 2020 11:53 AM
  • 10
Rihab wrote:
after creating a custom plugin and build it this error appears and the reason is 3 Dlls that created each time I build the custom plugin.
after deleting the 3 Dlls the app worked fine
the Dlls are:
libzstd.dll
snappy32.dll
snappy64.dll
any idea how to fix this issue
I'm using v 4.80


Any Help.
0
  • Posted: Monday, December 7, 2020 12:15 PM
  • 953
Well, there can be many reasons for this. We are unable to support your custom plugins. We don't know what you've tried to do, what you've done, and so on :)
Best regards,
Patryk

GrandNode Team
0
  • Posted: Monday, December 7, 2020 12:20 PM
  • 10
Patryk wrote:
Well, there can be many reasons for this. We are unable to support your custom plugins. We don't know what you've tried to do, what you've done, and so on :)


I did not do anything special just followed the documentation :)
0
  • Posted: Wednesday, July 14, 2021 4:34 PM
  • 17
Rihab wrote:
after creating a custom plugin and build it this error appears and the reason is 3 Dlls that created each time I build the custom plugin.
after deleting the 3 Dlls the app worked fine
the Dlls are:
libzstd.dll
snappy32.dll
snappy64.dll
any idea how to fix this issue
I'm using v 4.80



Just add these codes to [YourPluginName].csproj :

  <Target Name="PostBuild" AfterTargets="PostBuildEvent">
    <RemoveDir Directories="..\..\Web\Grand.Web\Plugins\[YourPluginOutput]\refs" />
    <RemoveDir Directories="..\..\Web\Grand.Web\Plugins\[YourPluginOutput]\ref" />

    <Delete Files="..\..\Web\Grand.Web\Plugins\[YourPluginOutput]\libzstd.dll" />
    <Delete Files="..\..\Web\Grand.Web\Plugins\[YourPluginOutput]\snappy32.dll" />
    <Delete Files="..\..\Web\Grand.Web\Plugins\[YourPluginOutput]\snappy64.dll" />
  </Target>
0
back to top
Filters