The .NET Portability Analyzer helps you determine how flexible your application is across .NET Platforms. For more information about platform portability analysis, read "Platform Portability".
Features
- Analysis of a single project, solution, or binaries
- Analysis against multiple .NET platforms simultaneously
- Generation of multiple analysis reports in different formats. Supported
formats are:
- JSON
- HTML
- Excel
- Configurable report options in the Options pane
- View and save generated reports in a tool window
- Up-to-date server-side analysis
- NOTE .NET platform targets and report formats are constantly fetched from an Azure cloud service that is updated constantly. In addition, the analysis is performed remotely so the information is always the latest.
- We only send .NET APIs to the service to analyze for portability. For more information, our privacy policy is here.
Official releases can be obtained from the Visual Studio extension gallery
You can run the Portability Analyzer over a Visual Studio solution or project by performing the following:
- Open a project or solution in Visual Studio
- Open Solution Explorer
- Right-click on the project or solution you want to analyze
- Select "Analyze Assembly Portability"
After the analysis is complete, if there are any APIs that are not supported on the selected platforms, check the "Output" window. There should be some informational messages containing the API that is not supported and the line mapping in source code. If you double-click on that message, it will take you to that location in source.
You can perform a portability analysis over compiled binaries (.dll or .exe) files.
- Click the "Analyze" menu item in the main toolbar
- Select "Analyze Assembly Portability"
- Choose binaries to analyze
You can view or save previously generated reports in your Visual Studio session by performing the following:
- Click the "Analyze" menu item in the main toolbar
- Select "View analysis reports"
- A tool window should pop up with all your reports
The .NET Portability Analyzer can be configured through the Options window. Here, you can choose what .NET platforms to perform your analysis against, and the file name, location and formats of the analysis report.
You can access the settings page via one of three methods:
- In Solution Explorer
- Right-click on a project or solution
- Select "Portability Analyzer Settings"
- Under "Analyze" in main toolbar
- Select "Portability Analyzer Settings"
- Under "Tools" in main toolbar
- Select "Options..."
- Go to the ".NET Portability Analyzer" node
A list of changes can be found in the Changelog.