2.0 goes stable

86 views
Skip to first unread message

Gleb Chermennov

unread,
Dec 21, 2014, 6:15:06 AM12/21/14
to fluent-n...@googlegroups.com
As year end approaches, I thought I'd tie up loose ends - 2.0 stable release just hit NuGet. Vintage package will upgrade later today or tomorrow, release notes to follow.
Nothing glorious this time. Code was tested with NH 4.0.2.x, so you shouldn't have any problems. 
Another thing to notice - due to a glorious popularity of NuGet package targeting .NET 3.5, its last release will be next year. If someone interested in further bug fixes, I'd be happy to transfer package ownership. For me maintenance costs are far more than the outcome. I did have fun merging rake script between two branches, though.

Andreas Eriksson

unread,
Dec 21, 2014, 7:38:14 AM12/21/14
to fluent-n...@googlegroups.com
Great news, i am looking forward to trying out the new release.

Gleb Chermennov

unread,
Dec 21, 2014, 3:53:32 PM12/21/14
to fluent-n...@googlegroups.com
I screwed up a bit - informational version of published assemblies still says it's alpha. But it's not :)

Andreas Eriksson

unread,
Dec 22, 2014, 8:28:02 AM12/22/14
to fluent-n...@googlegroups.com
The dll is not signed. I get this error in visual studio.

Error    73    Assembly generation failed -- Referenced assembly 'FluentNHibernate' does not have a strong name

Gleb Chermennov

unread,
Dec 22, 2014, 8:47:57 AM12/22/14
to fluent-n...@googlegroups.com
I have no intention on adding strong name. It was dropped since version 1.4.0, I believe.

2014-12-22 16:28 GMT+03:00 Andreas Eriksson <andreas.o...@gmail.com>:
The dll is not signed. I get this error in visual studio.

Error    73    Assembly generation failed -- Referenced assembly 'FluentNHibernate' does not have a strong name

--
You received this message because you are subscribed to a topic in the Google Groups "Fluent NHibernate" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/fluent-nhibernate/IJ97IPPUc8Y/unsubscribe.
To unsubscribe from this group and all its topics, send an email to fluent-nhibern...@googlegroups.com.
To post to this group, send email to fluent-n...@googlegroups.com.
Visit this group at http://groups.google.com/group/fluent-nhibernate.
For more options, visit https://groups.google.com/d/optout.



--
С уважением,
Чермённов Глеб

Andreas Eriksson

unread,
Dec 22, 2014, 9:57:41 AM12/22/14
to fluent-n...@googlegroups.com
May I ask why it was dropped?

I think this can cause issues for everyone that signs their assemblies as the FluentNHibernate.dll must now be manually signed before building.

P.S. It worked in 1.4.0

Gleb Chermennov

unread,
Dec 22, 2014, 10:06:30 AM12/22/14
to fluent-n...@googlegroups.com
I'm against it. For me and thousands of .NET developers, it's just a necessary constraint. 

Alexander Zaytsev

unread,
Dec 22, 2014, 2:55:45 PM12/22/14
to fluent-n...@googlegroups.com
"thousands .NET developers"? Oh no... I believe the correct number is 5 or 10 persons.

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

Gleb Chermennov

unread,
Dec 22, 2014, 3:39:22 PM12/22/14
to fluent-n...@googlegroups.com
I think the only popular OSS project that provides signed assemblies is AutoMapper. But I didn't check explicitly.​

Alexander Zaytsev

unread,
Dec 22, 2014, 5:08:57 PM12/22/14
to fluent-n...@googlegroups.com
Basically every package from first 2 pages on nuget provides strongly named assembly

Json.NET
AutoMapper
Antlr3
Nunit
Log4Net
Moq
HtmlAgilityPack
itextsharp
WPFToolkit
Unity
Autofac
NHibernate
EntityFramework
Ninject
Castle.Windsor

The only popular packages which do not provide strong name are StructureMap and ServiceStack (provides both signed and unsigned versions).

But you can not relay on the fact that someone else uses (or not) SN.




Gleb Chermennov

unread,
Dec 22, 2014, 5:34:19 PM12/22/14
to fluent-n...@googlegroups.com
I guess I'm in good company 
338.png

Andreas Eriksson

unread,
Dec 23, 2014, 2:54:09 AM12/23/14
to fluent-n...@googlegroups.com
Why is it a "constraint" to use strong name? I think a lot of people would appreciate a strong name version as it is required for ClickOnce and visual studio plugins.

You can still do drop in replacements by using binding redirects or by only updating the file version and not the assembly version when releasing a bugfix.
http://msdn.microsoft.com/en-us/library/eftw1fys%28v=vs.110%29.aspx

I think a privatelely kept signing key (shared between inner devs) that is not part of the repository and a public key in the repository is good for everyone, as it allows users that download the nuget package to verify the source of the dll. I guess you already keep the username/password for publishing the nuget package outside of the repository so this is not much different.

/Andreas

Gleb Chermennov

unread,
Dec 23, 2014, 6:20:25 AM12/23/14
to fluent-n...@googlegroups.com
​And what are the odds of Fluent NHibernate being used to write Visual Studio plugins?​ ClickOnce is theoretically possible, but I still find it highly unlikely that you query your database from client application directly.
I understand we come from completely different perspectives. If you need latest release signed - you're welcome to create a separate nuget package and maintain your own fork.

Andreas Eriksson

unread,
Dec 23, 2014, 6:46:00 AM12/23/14
to fluent-n...@googlegroups.com
Was kinda hoping not having to create my own as it takes away the simplicity of using nuget.

May I ask what the reason was for not using strong name?

Gleb Chermennov

unread,
Dec 23, 2014, 7:25:36 AM12/23/14
to fluent-n...@googlegroups.com
Jeremy Miller wrote a post about it, it sums up all the problems pretty well.
I heard strong naming is absent from future .NET releases, so even Microsoft is giving up on that. 
Why is it that you want strong name for Fluent NHibernate? Do you build libraries or NuGet packages that depend on it?

Andreas Eriksson

unread,
Dec 23, 2014, 7:50:37 AM12/23/14
to fluent-n...@googlegroups.com
We use strong name signing for our corporate product which means that every loaded assembly must be strong named as well.
Everything else we use is strong named, NHibernate, log4net etc.

Jeremy only lists his problems and manual errors and it seems that thoose could have been soved with binding redirects.

You still didn't answer my question. What is the reason for not using strong name in Fluent NHibernate?

Alexander Zaytsev

unread,
Dec 23, 2014, 5:59:11 PM12/23/14
to fluent-n...@googlegroups.com

On Wed, Dec 24, 2014 at 1:25 AM, Gleb Chermennov <thebitt...@gmail.com> wrote:
Why is it that you want strong name for Fluent NHibernate? Do you build libraries or NuGet packages that depend on it?

I do.

Alexander Zaytsev

unread,
Jan 6, 2015, 3:02:32 AM1/6/15
to fluent-n...@googlegroups.com
Ah my gosh. Now I need to rebuild all my libraries which depend on FNH. WTF!

Alexander Zaytsev

unread,
Jan 6, 2015, 3:03:49 AM1/6/15
to fluent-n...@googlegroups.com
According to NuGetMustHaves there are 91 packages dependent on FNH http://nugetmusthaves.com/Package/FluentNHibernate
Reply all
Reply to author
Forward
0 new messages