Closed PeterKaa1 closed 5 months ago
If you want to use reflection here instead of directly using the assembly via code have 3 options.
var assem = Assembly.Load("FileOperations")
.Microsoft.Maui.ApplicationModel.Platform.CurrentActivity.Assets.OpenNonAssetFd("assemblies/FileOperations.dll").CreateInputStream();
.var ms = new MemoryStream(); assetStream.CopyTo(ms); ms.Position=0; var assem = Assembly.Load(ms.ToArray());
Using some code like this one:
I can load up an DLL when im running the program in the IDE (Class gets not found because the code is unfinished) but when i export the APK i get this error:
Where do i put the DLL so it can get stored somewhere in the APK and get loaded when i run the APK? I know that i can add it as an external reference which puts it in the "assemblies" folder in the APK.
FileOperations.dll contains those scripts:
CreateFile.cs:
DeleteFile.cs:
EditFile.cs:
MoveFile.cs:
RenameFile.cs: