Skip to main content

.NET MAUI packaging

Your .NET Multi-platform App UI (.NET MAUI) applications must meet specific compilation requirements before you can submit them for scanning.

For instructions for other platforms, see Supported languages and platforms.

Required files

Veracode requires that you submit the DLL and PDB files created when you build your .NET MAUI application to a target environment. Upload these files individually or package them in a ZIP file.

Supported .NET MAUI platforms and versions

You can write .NET MAUI applications, running on .NET 7–8, for the following platforms:

  • Android 5.0 (API 21) or later.
  • iOS 11 or later, using the latest release of Xcode.
  • macOS 10.15 or later, using Mac Catalyst.
note

Veracode does not support .NET MAUI applications written in WinUI3 that target Windows 10 or 11.

Compilation of a .NET MAUI application

You can use the .NET CLI to compile a .NET MAUI application by running the following command:

dotnet build -c Debug

After you build the project using the debug configuration, the build creates a subdirectory named bin/Debug. Inside this directory, there are subfolders for each of the different platforms you can target. Create a ZIP file for each target you want to upload to the Veracode Platform.

If your application does not use platform-specific calls, you only need to scan a single package for one of the target platforms. If you want to scan for multiple platforms, such as iOS and Android, you must use a separate application profile for each package.

note

The ZIP file must not include subfolders. It should only contain DLL and PDB files.

  • bin/Debug/net6.0-android/ for Android
  • bin/Debug/net6.0-ios/iossimulator-%/ for IOS
  • bin/Debug/net6.0-maccatalyst/maccatalyst-%/ for MacOSX