microsoft / clrmd

Microsoft.Diagnostics.Runtime is a set of APIs for introspecting processes and dumps.
MIT License
1.06k stars 256 forks source link

Building the ClrMd Samples #1272

Open Andy53 opened 5 months ago

Andy53 commented 5 months ago

Instructions on building the ClrMd samples

Are there any instructions on how to build the ClrMd samples?

Currently when I try and build them I run into a whole number of accessibility issues and other errors.

I have included a few here:

CS0122  'SOSDac' is inaccessible due to its protection level
CS0234  The type or namespace name 'DbgEng' does not exist in the namespace 'Microsoft.Diagnostics.Runtime.Utilities'
CS0122  'ClrDataAddress' is inaccessible due to its protection level
CS0246  The type or namespace name 'JitManagerInfo' could not be found

These make me think I am going about building these samples completely wrong. I can build the main Microsoft.Diagnostics.Runtime project fine and have built that before trying to compile the Samples project. I have also tried installing the nuget package and I am getting the same results.

I would be happy to document how these are supposed to be built if I can get a few hints on where I might be going wrong?

leculver commented 4 months ago

These are old and unfortunately outdated. I am working on better documentation and debugging tutorials for ClrMD and debugging .Net in general. It will be a few more weeks before I have something to share, but there will be better samples at that point.