-
I am currently trying to attach a profiler to a running dotnet application (see my attempts in this repo, or more precisely this code). Using I tried changing the target to .NET3.1 and .NET5.0 and switch between Debug and Release build but the enumeration is still empty. So at this point I am wondering if this API even works under dotnet core? Because I can't see it written explicitly anywhere, but since the headers for this API are present in repository, I guess it is supposed to work? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
I just tried So the question that remains is: why doesn't it work on a dotnet core application? |
Beta Was this translation helpful? Give feedback.
-
Ok so I figured out that ICLRProfiling wasn't part of dotnet core runtime (I was using windows SDK headers), and I stumbled upon this piece of information, so I'll try going this way 🤠🤞 |
Beta Was this translation helpful? Give feedback.
-
So I just used |
Beta Was this translation helpful? Give feedback.
So I just used
Microsoft.Diagnostics.NETCore.Client
with this simple utility method and it worked perfectly!I think it could be really interesting to reference this package in more places, it did not show up from google after like 3 days of searching, I found it while desperately browsing the dotnet/runtime repository manually.