A tool to help see the public API of a .NET assembly, and show the differences in the that API since the last time the tool was run.
- Download the release and extract it to a temporary directory.
- Create a working folder. I call mine
apidiff
- In your working folder, create a file called
AssemblyList.txt
. This file should contain the paths to all the assemblies you want to analyze (one per line). For example: - Open a shell (
cmd
or PowerShell) and change to your working folder. - Create an HTML baseline using the following syntax:
ApiReviewHelper.exe create-baseline .\AssemblyList.txt .\baseline.html HTML
(you will probably need to specify the full path to the EXE). - You can now view
baseline.html
, which will show the entire public API of your .NET assembly.
- Create an initial baseline in XML format using syntax like the following:
ApiReviewHelper.exe create-baseline .\AssemblyList.txt .\baseline-original.xml XML
- Make whatever changes to your code you want.
- Create a new baseline to compare using a command like
ApiReviewHelper.exe create-baseline .\AssemblyList.txt .\baseline-new.xml XML
- Create an HTML file showing the diff using a command like
ApiReviewHelper.exe create-diff .\baseline-original.xml .\baseline-new.xml .\diff.html
- Open
diff.html
in a web browser to see the differences.
c:\src\MyProject\bin\Debug\MyProject.dll
c:\src\MyProject\bin\Debug\MyLibrary.dll