Options

Obfuscating with SmartAssembly on AppCenter

brian.webbbrian.webb Posts: 8 Bronze 1
edited June 20, 2023 7:58AM in SmartAssembly
Hi

We are using SmartAssembly 8 to obfuscate our desktop application, which we have built into the project file using the <SmartAssembly....> tags so it is done at build time (when in release). However, we also want to do this when our mobile app is built in AppCenter. However we get the following error when the build runs:

error MSB4061: The "SmartAssembly" task could not be instantiated from "/Users/runner/.nuget/packages/redgate.smartassembly.msbuild/8.1.2.4975/build/../tools/net472/SmartAssembly.MSBuild.Tasks.dll". [/Users/runner/work/1/s/Project.csproj] 
error MSB4061: System.TypeInitializationException: The type initializer for 'SmartAssembly.MSBuild.Tasks.Build' threw an exception. ---> System.InvalidProgramException: Invalid IL code in SmartAssembly.MSBuild.Tasks.Build:.cctor (): IL_0011: call 0x06000024 [/Users/runner/work/1/s/Project.csproj].

Presumably this is a difference between the platform AppCenter builds run under and that which the SmartAssembly tools are built against. Should this be possible somehow, or is it not supported? We use the Redgate.SmartAssembly.MSBuild nuget package added to the projects we wish to obfuscate.

Thanks


Sign In or Register to comment.