You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By checking whether the assembly has a type reference to
`Java.Lang.Object` first. `ModuleDefinition::HasTypeReference` call is
relatively fast in cecil and by using it we save a lot of further
processing.
Measurements of the `_LinkAssembliesNoShrink` target (XA template,
rebuild after touching MainActivity.cs, 5 runs average):
Before: 160ms
After: 52ms
Update FixAbstractMethodsStep_SkipDimMembers test
Write and load generated assemblies so that the AssemblyDefinition has
image and ModuleDefinition::HasTypeReference works.
Context: https://github.com/mono/cecil/blob/09a316c202f4c295c0c86ddb5f6c77be457a5b14/Mono.Cecil/ModuleDefinition.cs#L634
That introduced I/O exception on Windows:
System.IO.IOException : The process cannot access the file 'MyAssembly.dll' because it is being used by another process.
at System.IO.Directory.DeleteHelper(String fullPath, String userPath, Boolean recursive, Boolean throwOnTopLevelDirectoryNotFound, WIN32_FIND_DATA& data)
at System.IO.Directory.Delete(String fullPath, String userPath, Boolean recursive, Boolean checkHost)
at Xamarin.Android.Build.Tests.LinkerTests.FixAbstractMethodsStep_SkipDimMembers() in F:\A\xamarin-v000001-1\_work\2\s\src\Xamarin.Android.Build.Tasks\Tests\Xamarin.Android.Build.Tests\Tasks\LinkerTests.cs:line 67
Resolution: Properly dispose context and assemblies. Also refactor
the test code to avoid deep blocks.
0 commit comments