I just generated and downloaded v10.3.0 of the Angular + .NET Core app, and am having issues deploying to the Android emulator. Everything builds okay, but deployment fails with the following error:
Skipping target "_CopyConfigFiles" because all output files are up-to-date with respect to the input files.
Skipping target "_ConvertPdbFiles" because all output files are up-to-date with respect to the input files.
Migrated assembly to 'obj\Debug\100\android\assets\Platform.Xamarin.Android.dll'.
Debug symbols were found for the assembly, but they couldn't be used: Operation is not valid due to the current state of the object.
The process cannot access the file 'E:\SoftwareDevelopment\Platform\AspNet-Core\src\Platform.Mobile.Droid\obj\Debug\100\android\assets\Plugin.Iconize.pdb' 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.Cil.PortablePdbWriterProvider.GetSymbolWriter(ModuleDefinition module, String fileName)
at Mono.Cecil.ModuleWriter.GetSymbolWriter(ModuleDefinition module, String fq_name, ISymbolWriterProvider symbol_writer_provider, WriterParameters parameters)
at Mono.Cecil.ModuleWriter.Write(ModuleDefinition module, Disposable`1 stream, WriterParameters parameters)
at Mono.Cecil.ModuleWriter.WriteModule(ModuleDefinition module, Disposable`1 stream, WriterParameters parameters)
at Mono.Cecil.ModuleDefinition.Write(Stream stream, WriterParameters parameters)
at Mono.Cecil.ModuleDefinition.Write(WriterParameters parameters)
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()
Done building project "Atlas.Platform.Mobile.Droid.csproj" -- FAILED.
Build FAILED.
3>Deployment failed to nexus_5x_api_29_x64.
I'm using the Angular + .NET Core for version 10.3.0 and using Visual Studio 16.9.5. Creating a fresh Visual Studio Xamarin project runs without issue.
3 Answer(s)
-
0
close Visual Studio delete
bin
&obj
folders -
0
I tried deleting the bin & obj folders in all the sub-projects along with restarting my machine, and Visual Studio.
Also, I'm able to delete the bin and obj folders while VS is running, so whatever is blocking this file seems to only occur during the deployment process.
-
0
first time heard this issue. did you add any extra deployment steps? or did you modify anything else? because a new ASPNET Zero Xamarin project deploys successfully.