Skip to content

Instantly share code, notes, and snippets.

@nickadam
Created April 4, 2015 17:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nickadam/bcb72b4395772e865870 to your computer and use it in GitHub Desktop.
Save nickadam/bcb72b4395772e865870 to your computer and use it in GitHub Desktop.
Export API info from .net assemblies
#!/usr/bin/env bash
appDir=application_dir;
appDirMetadata=application_dir_metadata;
find appDir | grep \.dll$ | while read file;
do
#The target folder where the dll's xml will go
folder="$(echo "$file" | sed 's/\/[^\/]\+$//' | sed 's/^$appDir/$appDirMetadata/')";
mkdir -p "$folder";
#use mono-api-info to export api info into xml file
echo mono-api-info "$file" > "$(echo $file| sed 's/^$appDir/$appDirMetadata/')".xml;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment