Skip to content

Instantly share code, notes, and snippets.

@leppie
Last active February 5, 2016 19:12
Show Gist options
  • Save leppie/2aa8a7122f474883fb81 to your computer and use it in GitHub Desktop.
Save leppie/2aa8a7122f474883fb81 to your computer and use it in GitHub Desktop.
Roslyn Build dir dropper: pdb2xml.cmd
@echo using System.IO;class pdb2xml{static void Main(string[]a){using(Stream f=File.OpenRead(a[0]),p=File.OpenRead(a[1]))^
System.Console.WriteLine(Roslyn.Test.PdbUtilities.PdbToXmlConverter.ToXml(p,f));}}>pdb2xml.cs
@csc /nologo /r:System.IO.dll,System.Runtime.dll,Roslyn.Test.PdbUtilities.dll pdb2xml.cs&&del pdb2xml.cs&&pdb2xml %*
@leppie
Copy link
Author

leppie commented Feb 5, 2016

Example usage:

pdb2xml IronScheme.dll IronScheme.pdb > IronScheme.xml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment