My project works fine in DEBUG.
But for some reason, when trying to make a release build, always get the following error:
Severity Code Description Project File Line Suppression State Error The process cannot access the file 'D:\Albertoha94\Documents\Visual Studio 2019\Fighter-MoveList\Fighter-MoveList.Android\obj\Release\100\androidx\cecil\Fighter-MoveList.dll' because it is being used by another process. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) at Mono.Cecil.ModuleDefinition.ReadModule(String fileName, ReaderParameters parameters) at Xamarin.AndroidX.Migration.CecilMigrator.ReadAssembly(AssemblyResolver resolver, String path) at Xamarin.AndroidX.Migration.CecilMigrator.Migrate(String source, String destination) at Xamarin.AndroidX.Migration.CecilMigrator.Migrate(IEnumerable`1 assemblies) at Xamarin.AndroidX.Migration.BuildTasks.CecilfyFiles.Execute() Fighter-MoveList.Android D:\Albertoha94\_nugets\packages\xamarin.androidx.migration\184.108.40.206\buildTransitive\monoandroid90\Xamarin.AndroidX.Migration.targets 227
I don't know if this is related in some way to AndroidX since i migrated my app to that but when doing a rollback I still got the issue and it still says androidx in the folder.
I tried what it was suggested in github to reduces the number of parallel project build to 1 but still no success, I also tried deleting all bin, obj & .suo but error still pops.
Is there something else I could try?