How can we help you today? How can we help you today?
timothyp

Activity overview

Latest activity by timothyp

Build fails because "Microsoft.Build.Utilities" could not be loaded
After a clean install on a new computer a project that built without issues beforefails to build on this new system. The error message is: Error The "SmartAssembly.MSBuild.Tasks.Build" task could ...
2 followers 4 comments 0 votes
So basically we have a class called `ExportedArchive` which has a few methods. After obfuscation all but one method works without issues. The one that fails is called `ImportAsync` and no matter what attributes we add or what we configure in SA, the code is always obfuscated to this: public static async Task ImportAsync(string inputFilename, string targetDirectory, DeviceClient deviceClient, //more ...) { ExportedArchive.<ImportAsync>d__10 variable = new ExportedArchive.<ImportAsync>d__10(); AsyncTaskMethodBuilder asyncTaskMethodBuilder = new AsyncTaskMethodBuilder(); Task task; try { variable.inputFilename = inputFilename; variable.targetDirectory = targetDirectory; variable.deviceClient = deviceClient; variable.container = container; variable.FileImportedCallback = FileImportedCallback; variable.progress = progress; variable.cancellationToken = cancellationToken; variable.<>t__builder = AsyncTaskMethodBuilder.Create(); variable.<>1__state = -1; asyncTaskMethodBuilder = variable.<>t__builder; asyncTaskMethodBuilder.Start<ExportedArchive.<ImportAsync>d__10>(ref variable); task = variable.<>t__builder.Task; } catch (Exception exception) { .(exception, variable, asyncTaskMethodBuilder, inputFilename, targetDirectory, deviceClient, container, FileImportedCallback, progress, cancellationToken); throw; } return task; } And we really need it to remain untouched by SA. When running the obfuscated version the exception information is ExportedArchive.<ImportAsync>D__10.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task) / comments
So basically we have a class called `ExportedArchive` which has a few methods. After obfuscation all but one method works without issues. The one that fails is called `ImportAsync` and no matter wh...
0 votes