Portability of any application into various platforms is of high importance now. Do you want to check how portable your application or library or project developed in .NET is? Use the .NET Portability Analyzer from Visual Studio Gallery.
Download and install the VSIX or extension package, which will add Analyzer options in various menus. Open Visual Studio, go to Tools-> Options, you can see the new tab added “.NET Portability Analyzer”.
Select the target platforms from the list of platforms. Your code will be analysed to see how much portable the solution in all these selected platforms. Select the “Analyze Assembly Potability” option from “Analyze” menu.
This will open the file open dialog, where you can select your project’s executable or dll file. This will display the .NET portability report for the selected file in the below format
We can run the Analyzer from the Solution explorer too. Right click on your project and select Analyze -> Analyze Assembly Portability
.NET Portability report not only contains the percentage of how much portable the application into specific platform, but also contains recommended changes and method level portability information. Moreover, Analyze from Solution explorer list the portability incompatibility as warnings in Error window, which will take you to the exact code where the issue inside the code.
Download the .NET Portability Analyzer from https://visualstudiogallery.msdn.microsoft.com/1177943e-cfb7-4822-a8a6-e56c7905292b