Use the command ApiPort.exe analyze -f [path-to-binaries] .
Right-click your project and select Analyze Assembly Portability .
Download the API Portability Analyzer as a console app or install the extension for Visual Studio 2017/2019 (note: it is not supported in Visual Studio 2022 and later). portability analyzer new
For building libraries that work across different .NET implementations. ASP.NET Core: For modernizing web applications. The "New" Shift: Portability Analyzer vs. Upgrade Assistant
While many developers still search for the "new Portability Analyzer," it is important to note that the standalone tool's backend service has been deprecated. For a modern, supported experience, Microsoft recommends the following alternatives: Use the command ApiPort
The tool generates an Excel or HTML report containing: Portability Summary: A percentage score for each assembly.
Whether you are migrating a legacy .NET Framework application to the modern .NET 8/9 ecosystem or ensuring your libraries support multi-platform environments like Linux and macOS, understanding your code’s "portability score" is essential. The (often referred to as API Port or simply the Portability Analyzer ) has long been the gold standard for this task. For building libraries that work across different
Once you have migrated to .NET Core, this analyzer helps identify specific APIs that might throw PlatformNotSupportedException at runtime.