Skip to main content

Xamarin packaging

Your Xamarin applications must meet specific compilation requirements before you can submit them for scanning.

Required files

Veracode requires that you submit the EXE, DLL, and MDB or PDP files you create when you build your Xamarin application to a target environment. Upload these files individually or package them in a ZIP file.

Supported Xamarin versions

Framework/TechnologyPlatformVersionCompiler
Xamarin.FormsCross-Platform, including iOS and Android5.0 and earlierVisual Studio 2012 and higher, Xamarin Studio, Mono 4.x, 5.x, 6.x
Xamarin.AndroidAndroid12.1 and earlierVisual Studio 2012 and higher, Xamarin Studio, Mono 4.x, 5.x, 6.x
Xamarin.iOSiOS15.4 and earlierVisual Studio 2012 and higher, Xamarin Studio, Mono 4.x, 5.x, 6.x
Xamarin.MacMac8.4 and earlierVisual Studio 2012 and higher, Xamarin Studio, Mono 4.x, 5.x, 6.x
Xamarin.TVOSTVOS15.4 and earlier
Xamarin.WatchOSWatchOS15.4 and earlier
Xamarin.EssentialsCross-Platform, including iOS and AndroidVisual Studio 2017 and higher, Xamarin Studio, Mono 4.x, 5.x, 6.x

Compilation and packaging guidance for Xamarin.Forms

Xamarin.Forms allows you to develop a cross-platform application that can target different devices. When you create a Xamarin.Forms solution, the solution consists of a shared Forms project in combination with separate projects for targeting iOS and Android. In this example, the Xamarin.Forms application called FormsApp has two different projects: FormsApp.Droid targeting Android, and FormsApp.IOS targeting iOS.

When you build applications with Xamarin, you must compile the project in debug mode. When you create a cross-platform application, package one target platform per scan to avoid duplicate results.

Compilation and packaging guidance for Xamarin.iOS

When you build a Xamarin iOS project, it targets a specific simulator. After you build the project using the debug configuration targeting a specific device, for example, iPhone, you can find the output in bin/iPhoneSimulator/Debug. In this example, the output consists of a single EXE and possibly multiple DLL, PDB, and MDB files. Upload these files excluding subdirectories individually, or package them in a ZIP file.

Compilation and packaging guidance for Xamarin.Android

After you build the project using the debug configuration, the build creates a subdirectory called bin/Debug. This subdirectory contains the output DLL, PDB, and MDB files. Upload these files individually or package them in a ZIP file.