Skip to content

Instantly share code, notes, and snippets.

@ctaggart
Created November 14, 2014 23:05
Show Gist options
  • Save ctaggart/77fea51bcf9335a760bf to your computer and use it in GitHub Desktop.
Save ctaggart/77fea51bcf9335a760bf to your computer and use it in GitHub Desktop.
use SourceLink.SymbolCache 0.5
pdb original source file path: C:\projects\sourcelink\SourceLink\Exception.fs
it had an md5 checksum of: 12B112E587A0F0540F3C34D76F31A57D
has download url if source indexed: https://raw.githubusercontent.com/ctaggart/SourceLink/64f05dfd14c089adc9aeb593bb82e4220ea2f5c3/SourceLink/Exception.fs
downloaded the file to the cache C:\tmp\cache\src\ctaggart\SourceLink\64f05dfd14c089adc9aeb593bb82e4220ea2f5c3\SourceLink\Exception.fs
downloaded file has md5 of: 12B112E587A0F0540F3C34D76F31A57D
pdb original source file path: C:\projects\sourcelink\SourceLink\PdbInfo.fs
it had an md5 checksum of: FA9950B8566A17081010AECD922F1A96
has download url if source indexed: https://raw.githubusercontent.com/ctaggart/SourceLink/64f05dfd14c089adc9aeb593bb82e4220ea2f5c3/SourceLink/PdbInfo.fs
downloaded the file to the cache C:\tmp\cache\src\ctaggart\SourceLink\64f05dfd14c089adc9aeb593bb82e4220ea2f5c3\SourceLink\PdbInfo.fs
downloaded file has md5 of: FA9950B8566A17081010AECD922F1A96
pdb original source file path: C:\projects\sourcelink\SourceLink\PdbFile.fs
it had an md5 checksum of: 1B9BD01006AF0A404D8F0A59475B6637
has download url if source indexed: https://raw.githubusercontent.com/ctaggart/SourceLink/64f05dfd14c089adc9aeb593bb82e4220ea2f5c3/SourceLink/PdbFile.fs
downloaded the file to the cache C:\tmp\cache\src\ctaggart\SourceLink\64f05dfd14c089adc9aeb593bb82e4220ea2f5c3\SourceLink\PdbFile.fs
downloaded file has md5 of: 1B9BD01006AF0A404D8F0A59475B6637
pdb original source file path: C:\projects\sourcelink\SourceLink\Process.fs
it had an md5 checksum of: C39C4A06928A92AFE525797F3D8DF701
has download url if source indexed: https://raw.githubusercontent.com/ctaggart/SourceLink/64f05dfd14c089adc9aeb593bb82e4220ea2f5c3/SourceLink/Process.fs
downloaded the file to the cache C:\tmp\cache\src\ctaggart\SourceLink\64f05dfd14c089adc9aeb593bb82e4220ea2f5c3\SourceLink\Process.fs
downloaded file has md5 of: C39C4A06928A92AFE525797F3D8DF701
pdb original source file path: C:\projects\sourcelink\SourceLink\Pdbstr.fs
it had an md5 checksum of: 710416D7714B977CD34BC03A6F4CCD9C
has download url if source indexed: https://raw.githubusercontent.com/ctaggart/SourceLink/64f05dfd14c089adc9aeb593bb82e4220ea2f5c3/SourceLink/Pdbstr.fs
downloaded the file to the cache C:\tmp\cache\src\ctaggart\SourceLink\64f05dfd14c089adc9aeb593bb82e4220ea2f5c3\SourceLink\Pdbstr.fs
downloaded file has md5 of: 710416D7714B977CD34BC03A6F4CCD9C
pdb original source file path: C:\projects\sourcelink\SourceLink\Digraph.fs
it had an md5 checksum of: 7A42A026914C7194AAE706B756AAE8BB
has download url if source indexed: https://raw.githubusercontent.com/ctaggart/SourceLink/64f05dfd14c089adc9aeb593bb82e4220ea2f5c3/SourceLink/Digraph.fs
downloaded the file to the cache C:\tmp\cache\src\ctaggart\SourceLink\64f05dfd14c089adc9aeb593bb82e4220ea2f5c3\SourceLink\Digraph.fs
downloaded file has md5 of: 7A42A026914C7194AAE706B756AAE8BB
pdb original source file path: C:\projects\sourcelink\SourceLink\VsProj.fs
it had an md5 checksum of: 43D5F6FD560307825A769880BB6F9E12
has download url if source indexed: https://raw.githubusercontent.com/ctaggart/SourceLink/64f05dfd14c089adc9aeb593bb82e4220ea2f5c3/SourceLink/VsProj.fs
downloaded the file to the cache C:\tmp\cache\src\ctaggart\SourceLink\64f05dfd14c089adc9aeb593bb82e4220ea2f5c3\SourceLink\VsProj.fs
downloaded file has md5 of: 43D5F6FD560307825A769880BB6F9E12
pdb original source file path: C:\projects\sourcelink\SourceLink\SrcSrv.fs
it had an md5 checksum of: E3F0540E074FE03B5A0B2B8D82ADA41D
has download url if source indexed: https://raw.githubusercontent.com/ctaggart/SourceLink/64f05dfd14c089adc9aeb593bb82e4220ea2f5c3/SourceLink/SrcSrv.fs
downloaded the file to the cache C:\tmp\cache\src\ctaggart\SourceLink\64f05dfd14c089adc9aeb593bb82e4220ea2f5c3\SourceLink\SrcSrv.fs
downloaded file has md5 of: E3F0540E074FE03B5A0B2B8D82ADA41D
pdb original source file path: C:\projects\sourcelink\SourceLink\PdbChecksums.fs
it had an md5 checksum of: 57C9DC5C0E2DCCD9DF59FBBD5DE39722
has download url if source indexed: https://raw.githubusercontent.com/ctaggart/SourceLink/64f05dfd14c089adc9aeb593bb82e4220ea2f5c3/SourceLink/PdbChecksums.fs
downloaded the file to the cache C:\tmp\cache\src\ctaggart\SourceLink\64f05dfd14c089adc9aeb593bb82e4220ea2f5c3\SourceLink\PdbChecksums.fs
downloaded file has md5 of: 57C9DC5C0E2DCCD9DF59FBBD5DE39722
pdb original source file path: C:\projects\sourcelink\SourceLink\Crypto.fs
it had an md5 checksum of: CC0B748976DE1E1C0AEE105DFDDC6624
has download url if source indexed: https://raw.githubusercontent.com/ctaggart/SourceLink/64f05dfd14c089adc9aeb593bb82e4220ea2f5c3/SourceLink/Crypto.fs
downloaded the file to the cache C:\tmp\cache\src\ctaggart\SourceLink\64f05dfd14c089adc9aeb593bb82e4220ea2f5c3\SourceLink\Crypto.fs
downloaded file has md5 of: CC0B748976DE1E1C0AEE105DFDDC6624
pdb original source file path: C:\projects\sourcelink\SourceLink\PdbModify.fs
it had an md5 checksum of: C8FD0B8787A2EC2A54E745384C8EAD76
has download url if source indexed: https://raw.githubusercontent.com/ctaggart/SourceLink/64f05dfd14c089adc9aeb593bb82e4220ea2f5c3/SourceLink/PdbModify.fs
downloaded the file to the cache C:\tmp\cache\src\ctaggart\SourceLink\64f05dfd14c089adc9aeb593bb82e4220ea2f5c3\SourceLink\PdbModify.fs
downloaded file has md5 of: C8FD0B8787A2EC2A54E745384C8EAD76
pdb original source file path: C:\projects\sourcelink\SourceLink\Hex.fs
it had an md5 checksum of: 20A37BFB8369074FE27E372754247BB7
has download url if source indexed: https://raw.githubusercontent.com/ctaggart/SourceLink/64f05dfd14c089adc9aeb593bb82e4220ea2f5c3/SourceLink/Hex.fs
downloaded the file to the cache C:\tmp\cache\src\ctaggart\SourceLink\64f05dfd14c089adc9aeb593bb82e4220ea2f5c3\SourceLink\Hex.fs
downloaded file has md5 of: 20A37BFB8369074FE27E372754247BB7
pdb original source file path: C:\projects\sourcelink\SourceLink\AppConfig.fs
it had an md5 checksum of: 8F09DA764F41AD493A67BD07296174CA
has download url if source indexed: https://raw.githubusercontent.com/ctaggart/SourceLink/64f05dfd14c089adc9aeb593bb82e4220ea2f5c3/SourceLink/AppConfig.fs
downloaded the file to the cache C:\tmp\cache\src\ctaggart\SourceLink\64f05dfd14c089adc9aeb593bb82e4220ea2f5c3\SourceLink\AppConfig.fs
downloaded file has md5 of: 8F09DA764F41AD493A67BD07296174CA
pdb original source file path: C:\projects\sourcelink\SourceLink\SystemExtensions.fs
it had an md5 checksum of: 0F9859C00FD7A0D0F9282E287CE89FF5
has download url if source indexed: https://raw.githubusercontent.com/ctaggart/SourceLink/64f05dfd14c089adc9aeb593bb82e4220ea2f5c3/SourceLink/SystemExtensions.fs
downloaded the file to the cache C:\tmp\cache\src\ctaggart\SourceLink\64f05dfd14c089adc9aeb593bb82e4220ea2f5c3\SourceLink\SystemExtensions.fs
downloaded file has md5 of: 0F9859C00FD7A0D0F9282E287CE89FF5
source http://nuget.org/api/v2
source https://ci.appveyor.com/nuget/sourcelink-helmesfwai2a
nuget SourceLink
nuget SourceLink.SymbolStore prerelease
module Program
open System.IO
open SourceLink
open SourceLink.SymbolStore
let printPdbDocuments() =
let a = @"..\..\..\packages\SourceLink\lib\net45\SourceLink.pdb"
use s = File.OpenRead a
let sc = SymbolCache @"C:\tmp\cache"
let r = sc.ReadPdb(s, a)
for d in r.Documents do
printfn "\npdb original source file path: %s" d.URL
printfn "it had an md5 checksum of: %s" (d.GetCheckSum() |> Hex.encode)
let url = r.GetDownloadUrl d.URL
printfn "has download url if source indexed: %s" url
let downloadedFile = sc.DownloadFile url
printfn "downloaded the file to the cache %s" downloadedFile
printfn "downloaded file has md5 of: %s" (Crypto.hashMD5 downloadedFile |> Hex.encode)
[<EntryPoint>]
let main argv =
printPdbDocuments()
0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment