project.ios.exe file generated in bin/obj folder in xamarin ios - xamarin

What is the use of project.ios.exe? And it is generated in the bin/obj folder? I have a xamarin.forms application. project.ios.exe generated in in bin/obj folder in xamarin ios.

.NET applications compile to .exe and .dll files even for non Windows systems. Note that these files don't actually contain the native code of your application, they're essentially just wrapper for .NET IL codes archive. You can refer to here for more infos.

Related

How can I generate or add resourcedesigner.cs file in a dotnet Maui project?

i'm trying to add resourcedesigner.cs file to my maui project
I know the file can be generated but what i'm trying to do is to take some files from a xamarin project and put it in my maui project to implement the scan of zebra with intent ..
I tried adding the file manually but i got some error of xamarin essentials missing and i was told not to add xamarin nuget packages to my maui project .. if someone can help please
Maui Internally Handlers ResourceDesigner you don't need that class add the files in your Resource Folder in your Android Project rest should automatically work,for an eg you can check my Library here:
https://github.com/FreakyAli/Maui.FreakyControls/tree/master/MAUI.FreakyControls/MAUI.FreakyControls/Platforms/Android/Resources
Notice how it has a Resources folder with the general Android folders but no Designer file... but it still is able to use Resources. Hope this helps

How to fix the warnings while converting .aar file to .dll in xamarin as it is not generating all the required classes/interfaces

I am trying to convert .aar file to .dll file in xamarin, it is not generating all the required classes/interfaces and giving me attached warnings.I have checked all the SDK and API level, they are all correct
When I tried .aar file in android studio project it works fine there

Specify what localizations are being built in Xamarin.Forms project

I have a Xamarin.Forms PCL project with multiple localizations that are specified in *.resx files and several platform-specific localization files (native for Android and UWP).
This solution is being built using MSBuild. I want to specify languages that will be included in each build. How it can be achieved using MSBuild and standard Xamarin build procedures without modifying *.csproj files before each build?

Xamarin Archive error when generating apk

When I set Linking to None it works but when I set linking to Sdk and User Assemblies following error occurs
Microsoft.Build.Tasks.v4.0 is a desktop .NET assembly so it breaks your Xamarin.Android build. The same goes with System.Security.Cryptography.Xml.SignedXml which doesn't belong to the Xamarin.Android profile of Mono (as seen here)
As explained by Brendan Zagaeski from Xamarin, you'll need to find out how Microsoft.Build.Tasks.v4.0 is getting pulled in:
Are you explicitly referencing any .dll files from C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework that are outside of the MonoAndroid\ subfolder?
Are you explicitly including any 3rd-party libraries that might have been compiled against the desktop .NET profile?
You could post a screenshot of your References for the project, that could help narrow down the possibilities.

Windows 10 Universal application - embedding different native libraries depending on architecture

I created a blank Windows 10 Universal application with Visual Studio 2015 RC:
File > New > Project ... > Windows Universal > Blank App (Windows Universal)
I want to use existing native libraries provided by a third-party. Those libraries are built from a C codebase and only use whitelisted Windows Store APIs.
I copied foo.dll beside App1.vcxproj then added it to the project and modified link settings to use foo.lib (the import library corresponding to foo.dll) for the x86 architecture. I also right-clicked foo.dll and set the Content property to Yes which makes Visual Studio embed the .dll with the application.
So far so good, I can use / debug my app that makes use of the third-party library. Visual Studio somehow deploys foo.dll next to App1.exe inside the AppX folder. And foo.lib (the import library for foo.dll) manages to load foo.dll successfully when the application start (this is because foo.dll is deployed next to App1.exe).
Now, for that third-party library, I have one .dll file per architecture:
foo/bin/x86/foo.dll
foo/bin/x86/foo.lib
foo/bin/x64/foo.dll
foo/bin/x64/foo.lib
foo/bin/arm/foo.dll
foo/bin/arm/foo.lib
And here comes my question: while keeping a single Visual Studio project for my app, how can I convince Visual Studio to:
deploy foo/bin/x86/foo.dll next to App1.exe when building for x86
deploy foo/bin/x64/foo.dll next to App1.exe when building for x64
deploy foo/bin/arm/foo.dll next to App1.exe when building for arm
What I tried so far is putting the different foo.dll files inside solution folders, e.g.
third-party/foo/x86/foo.dll
third-party/foo/x64/foo.dll
third-party/foo/arm/foo.dll
That could have worked since I can conditionally set the Content property to Yes for each .dll file. However, using solution folders makes Visual Studio deploy the .dll file in a sub-folder, e.g. AppX\third-party\foo\x86\foo.dll for the x86 architecture. Consequently when the application starts it doesn't find the shared library anymore. I wish there was a way to control deployment target location, I think that would solve my use case.
Hope my explanations are clear enough.
Just use a pre-build command line — per configuration so you can copy the right DLL from different source folders to project folder before packaging.

Resources