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.

Can't compile on release mode

See original GitHub issue

I’m not being able to compile my project on release mode anymore without “Use Shared Runtime” checked.

image

2> C:\Users\mario.nuget\packages\xamarin.androidx.migration\1.0.0-preview04\build\Xamarin.AndroidX.Migration.targets(212,9): error : The method or operation is not implemented.

2>C:\Users\mario.nuget\packages\xamarin.androidx.migration\1.0.0-preview04\build\Xamarin.AndroidX.Migration.targets(212,9): error : at Mono.Cecil.Pdb.NativePdbWriterProvider.GetSymbolWriter(ModuleDefinition module, Stream symbolStream)

2>C:\Users\mario.nuget\packages\xamarin.androidx.migration\1.0.0-preview04\build\Xamarin.AndroidX.Migration.targets(212,9): error : at Mono.Cecil.Pdb.PdbWriterProvider.GetSymbolWriter(ModuleDefinition module, Stream symbolStream)

2>C:\Users\mario.nuget\packages\xamarin.androidx.migration\1.0.0-preview04\build\Xamarin.AndroidX.Migration.targets(212,9): error : at Mono.Cecil.ModuleWriter.GetSymbolWriter(ModuleDefinition module, String fq_name, ISymbolWriterProvider symbol_writer_provider, WriterParameters parameters)

2>C:\Users\mario.nuget\packages\xamarin.androidx.migration\1.0.0-preview04\build\Xamarin.AndroidX.Migration.targets(212,9): error : at Mono.Cecil.ModuleWriter.Write(ModuleDefinition module, Disposable`1 stream, WriterParameters parameters)

2>C:\Users\mario.nuget\packages\xamarin.androidx.migration\1.0.0-preview04\build\Xamarin.AndroidX.Migration.targets(212,9): error : at Mono.Cecil.ModuleWriter.WriteModule(ModuleDefinition module, Disposable`1 stream, WriterParameters parameters)

2>C:\Users\mario.nuget\packages\xamarin.androidx.migration\1.0.0-preview04\build\Xamarin.AndroidX.Migration.targets(212,9): error : at Mono.Cecil.ModuleDefinition.Write(String fileName, WriterParameters parameters)

2>C:\Users\mario.nuget\packages\xamarin.androidx.migration\1.0.0-preview04\build\Xamarin.AndroidX.Migration.targets(212,9): error : at Xamarin.AndroidX.Migration.CecilMigrator.Migrate(String source, String destination) in D:\a\1\s\source\Xamarin.AndroidX.Migration\Migration\CecilMigrator.cs:line 117

2>C:\Users\mario.nuget\packages\xamarin.androidx.migration\1.0.0-preview04\build\Xamarin.AndroidX.Migration.targets(212,9): error : at Xamarin.AndroidX.Migration.CecilMigrator.Migrate(IEnumerable`1 assemblies) in D:\a\1\s\source\Xamarin.AndroidX.Migration\Migration\CecilMigrator.cs:line 50

2>C:\Users\mario.nuget\packages\xamarin.androidx.migration\1.0.0-preview04\build\Xamarin.AndroidX.Migration.targets(212,9): error : at Xamarin.AndroidX.Migration.BuildTasks.CecilfyFiles.Execute() in D:\a\1\s\source\Xamarin.AndroidX.Migration\BuildTasks\CecilfyFiles.cs:line 35

If I check the option, I can compile, but not deploy to a device.

image

========== Rebuild All: 2 succeeded, 0 failed, 0 skipped ==========

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:30 (4 by maintainers)

github_iconTop GitHub Comments

6reactions
avanbrenkcommented, Jan 3, 2020

@Redth @mattleibow I’m also having this issue. Any idea when the fix will be released?

2reactions
tranb3rcommented, Dec 11, 2019

@Redth Could you please release a nuget with the fix ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't build in release mode, only debug mode
I've got a weird issue with Visual Studio 2019. For some reason building my app in Release mode doesn't work. It shortly shows...
Read more >
Unable to Build in Release mode in Visual Studio
I am getting below error while try to build in release mode. However it build successfully in debug mode. I use TFS and...
Read more >
Qt Creator: Release mode is also set to Debug, can't run in ...
I went to Proejcts->Build and saw that CMAKE_BUILD_TYPE is set to Debug even on Release mode. I tried to change it to Release...
Read more >
[Solved] I can't compile in release mode
Check the build actions for "release" on the various components. There are "debug" and "release" settings. Architecture has to be compatible.
Read more >
Why doesn't my project work in release mode?
Rule 1: Always regularly test both the Debug and Release mode versions of ... Try compiling your Debug version with the following changes:....
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