Getting NCover to work on .Net 4.0 Beta 1
I am the author of Gallio, which includes NCover integration, so I was curious to see what NCover would do on .Net 4.0 Beta 1. I didn't expect this to work (it doesn't). However, I am curious if someone can enlighten me regarding the error message, as it offers a workaround that might be useful to users of the NCover v1.5.8 community someday.
.NET Runtime version 4.0.20506.1 - Loading the profiler failed. The boot-configured profiler was developed for an older version of the CLR. You can use an environment variable COMPLUS_ProfAPI_ProfilerCompatibilitySetting
to allow old profilers to load with the current version of the CLR. Please refer to the documentation for information on how to use this environment variable and the associated risks. CLSID Profiler: '{9721F7EB-5F92-447c-9F75-79278052B7BA}'. Process ID (decimal): 5724. Message ID: [0x2517].
Googling for COMPLUS_ProfAPI_ProfilerCompatibilitySetting
no results. Any hints?
a source to share
Update: David Broman posted an update to the COMPLUS setup here:
David Broman CLR Profiling API Blog: Run the V2 Profiler Binary on CLR V4 .
- David Broman explains what the "COMPLUS_ProfAPI_ProfilerCompatibilitySetting" environment variable should be on his blog 10/10/2008 (Stackoverflow won't let me post a link).
The NCover team has already spent some time researching the work required to prepare NCover.NET 4.0, but the main obstacle is the lack of documentation from Microsoft. Broman mentions several security measures that the CLR applies to .NET 2.0 profilers that are not centered around .NET 4.0 profilers, and we need to know what those security measures are before we know if any of them will be violated when moving to. NET 4.0. We've already screwed up the .NET 2.0 re-login requirement. Other complicating factors are time (we are currently launching two new products) and the ICoverProfilerCallback3 interface that NCover should receive is still in beta.
When .NET 4.0 comes out, NCover 4.0 compatibility will move to the top of our to-do list.
a source to share