NHibernate profiler 5.0.5011 in .NET Standard 2.0

69 views
Skip to first unread message

llc

unread,
Apr 1, 2018, 5:36:04 AM4/1/18
to nhprof
Hi,

I'm trying to initialize the profiler in .NET Standard 2.0, as indicated in the instructions, with the following call:

HibernatingRhinos.Profiler.Appender.NHibernate.NHibernateProfiler.Initialize();

However, the type "NHibernateProfiler" seems to be missing. I added the reference to "HibernatingRhinos.Profiler.Appender.dll" from the "netstandard2.0" folder.

Everything works fine in a .NET Framework project (adding the corresponding reference from the "net46" folder).

Thanks!


Oren Eini (Ayende Rahien)

unread,
Apr 1, 2018, 6:15:51 AM4/1/18
to nhprof
Can you check what warnings are emitted by the compiler? It might have filtered the dll

Hibernating Rhinos Ltd  

Oren Eini l CEO Mobile: + 972-52-548-6969

Office: +972-4-622-7811 l Fax: +972-153-4-622-7811

 


--
You received this message because you are subscribed to the Google Groups "nhprof" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nhprof+unsubscribe@googlegroups.com.
To post to this group, send email to nhp...@googlegroups.com.
Visit this group at https://groups.google.com/group/nhprof.
For more options, visit https://groups.google.com/d/optout.

llc

unread,
Apr 1, 2018, 9:23:11 AM4/1/18
to nhprof
There aren't any warnings. Also, I opened the dll with ildasm and there's no NHibernateProfiler type. I only see these types:

HibernatingRhinos.Profiler.Appender.NHibernate.StackTraceFilters
HibernatingRhinos.Profiler.Appender.NHibernate.NHibernateLoggerType
HibernatingRhinos.Profiler.Appender.NHibernate.SessionFactoryStatisticsSource

There's no problem, however, with entity framework, because this line works:

HibernatingRhinos.Profiler.Appender.EntityFramework.EntityFrameworkProfiler.Initialize();


El domingo, 1 de abril de 2018, 7:15:51 (UTC-3), Ayende Rahien escribió:
Can you check what warnings are emitted by the compiler? It might have filtered the dll

Hibernating Rhinos Ltd  

Oren Eini l CEO Mobile: + 972-52-548-6969

Office: +972-4-622-7811 l Fax: +972-153-4-622-7811

 


On Sun, Apr 1, 2018 at 3:08 AM, llc <lea.c...@gmail.com> wrote:
Hi,

I'm trying to initialize the profiler in .NET Standard 2.0, as indicated in the instructions, with the following call:

HibernatingRhinos.Profiler.Appender.NHibernate.NHibernateProfiler.Initialize();

However, the type "NHibernateProfiler" seems to be missing. I added the reference to "HibernatingRhinos.Profiler.Appender.dll" from the "netstandard2.0" folder.

Everything works fine in a .NET Framework project (adding the corresponding reference from the "net46" folder).

Thanks!


--
You received this message because you are subscribed to the Google Groups "nhprof" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nhprof+un...@googlegroups.com.

Oren Eini (Ayende Rahien)

unread,
Apr 1, 2018, 9:28:42 AM4/1/18
to nhprof
Can you check what dll is actually being added there?
To unsubscribe from this group and stop receiving emails from it, send an email to nhprof+unsubscribe@googlegroups.com.

llc

unread,
Apr 1, 2018, 11:39:37 AM4/1/18
to nhprof
Hi. What do you mean by that? The dll that I'm adding is : Appender\netstandard2.0\HibernatingRhinos.Profiler.Appender.dll. This dll, as well as the one inside the folder "netstandard1.6", are missing the type NHibernateProfiler. I checked also with ILSpy disassembler. However, the dlls inside the folder "net35" and "net46", both have that type and present no problem whatsoever.

Fitzchak Yitzchaki

unread,
Apr 15, 2018, 7:51:55 AM4/15/18
to nhp...@googlegroups.com
Support for NHibernate 5.1 and NHibernateProfiler in .net core came in the v5.0 release of the profiler:


Best Regards,

Hibernating Rhinos Ltd  cid:image001.png@01CF95E2.8ED1B7D0

Fitzchak Yitzchaki l Senior Software Engineer Mobile:+972-58-345-9538

To unsubscribe from this group and stop receiving emails from it, send an email to nhprof+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages