question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Problem with Dotfuscator

See original GitHub issue

I couldn’t compile my project using Dotfuscator:

Symbols were found but are not matching the assembly at Mono.Cecil.ModuleDefinition.ReadSymbols(ISymbolReader reader, Boolean throwIfSymbolsAreNotMaching) at Mono.Cecil.ModuleReader.ReadSymbols(ModuleDefinition module, ReaderParameters parameters) at Mono.Cecil.ModuleReader.CreateModule(Image image, ReaderParameters parameters) at Mono.Cecil.ModuleDefinition.ReadModule(String fileName, ReaderParameters parameters) at Xamarin.AndroidX.Migration.CecilMigrator.Migrate(String source, String destination) in D:\a\1\s\source\Xamarin.AndroidX.Migration\CecilMigrator.cs:line 85 at Xamarin.AndroidX.Migration.CecilMigrator.Migrate(IEnumerable`1 assemblies) in D:\a\1\s\source\Xamarin.AndroidX.Migration\CecilMigrator.cs:line 50 at Xamarin.AndroidX.Migration.BuildTasks.CecilfyFiles.Execute() in D:\a\1\s\source\Xamarin.AndroidX.Migration.BuildTasks\CecilfyFiles.cs:line 35 x2Apps.CheckPlaca.App.Android C:\Users\mario.nuget\packages\xamarin.androidx.migration\1.0.0-preview02\build\Xamarin.AndroidX.Migration.targets 182

Setting the DotfuscatorXamarinEnabled option to FALSE in my csproj solves the problem.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:15 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
MarvinFrankenfeldcommented, Jan 8, 2020

I know. But we had to migrate because the newest instabug xamarin version dependes on these packages and wen needed to update instabug because it includes some critical bug fixes. Instabug shouldn’t release release updates depending on prerelease packages. Anyways, i fixed it. Here is the solution if anybody is interested in the future:

I commented out the following part inside the PreEmptive.Dotfuscator.Xamarin.targets file.

  <!--<_DotfuscatorXamarinOriginalFiles Include="@(_DebugSymbolsIntermediatePath)"
                                        Condition="'$(_DebugSymbolsProduced)'=='true' and '$(SkipCopyingSymbolsToOutputDirectory)' != 'true' and '$(CopyOutputSymbolsToOutputDirectory)'=='true'">
        <Destination>%(_DebugSymbolsIntermediatePath.Filename)%(_DebugSymbolsIntermediatePath.Extension)</Destination>
      </_DotfuscatorXamarinOriginalFiles>-->

Then it runs fine.

2reactions
MarvinFrankenfeldcommented, Jan 3, 2020

Are there any news? We are having the same problem since updating to AndroidX and this is stopping us from delivering an important update to our users.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting - Dotfuscator Professional 6.5
These errors occur due to network issues contacting PreEmptive Solutions' servers when activating or when running a build using a Floating License. An...
Read more >
Troubleshooting — Dotfuscator Professional User Guide 4.41
These errors occur due to network issues contacting PreEmptive Solutions' servers when activating or when running a build using a Floating license. An...
Read more >
Troubleshooting - Dotfuscator User Guide 4.37
This section is for issues that occur when a Visual Studio or MSBuild project is built using Dotfuscator's MSBuild targets, such as when...
Read more >
Dotfuscator Support
Dotfuscator Support · Open a Support Case · User Guides & Tutorials · Dotfuscator References · Change Logs · Dotfuscator Community Updates ·...
Read more >
Dotfuscator Error while trying to build a .Net Core console ...
I have a simple .Net Core console app and am trying to obfuscate the generated dll using Dotfuscator Community tool ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found