-
Notifications
You must be signed in to change notification settings - Fork 934
.NET Core 2.0 and .NET Standard 2.0 support #1523
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Build is failing because NAnt is trying to tell MSBuild to build the project into the same folder. |
src/NHibernate.Test/Async/TransformTests/AliasToBeanResultTransformerFixture.cs
Outdated
Show resolved
Hide resolved
@LightCZ pretty much. This one has minimal changes. The other one is with breaking changes. |
e948759
to
9779f81
Compare
d162f28
to
1945138
Compare
Not me, if you were referring to the TeamCity build agent. |
hahaha, no. Check the actual commit. It seems that something is redirecting the console output so the timer did not write to it. |
55bad29
to
508beb9
Compare
I did. Builds are working now.
…On Wed, 21 Feb 2018 at 8:28 AM, Frédéric Delaporte ***@***.***> wrote:
Looking here
<https://help.appveyor.com/discussions/problems/5675-all-builds-stuck-at-queued-status>,
it seems we have to leave them a message for them to unblock the queue.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1523 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAI1l1N52sQZaGAkwUcoQUo5PmDl8yyEks5tWxzsgaJpZM4RaOcd>
.
|
@@ -31,10 +31,9 @@ | |||
<property name="dialect">NHibernate.Dialect.MsSql2008Dialect</property> | |||
|
|||
<property name="connection.driver_class">NHibernate.Driver.Sql2008ClientDriver</property> <!-- Shouldn't be necessary, but is required by some tests --> | |||
<property name="connection.connection_string_name">TestConnectionString</property> | |||
<property name="connection.connection_string">Server=localhost\sqlexpress;Database=nhibernate;Integrated Security=SSPI</property> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change somewhat alters the CanGetNamedConnectionStringFromConfiguration
test: previously this test was testing overriding a file configured connection.connection_string_name
, while now it tests that connection.connection_string_name
setting takes precedence over connection.connection_string
.
And this change also leaves a now unneeded TestConnectionString
connection string.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was a pre-nunitlite change, so, potentially can be reverted. I'll investigate. Probably if this will be reverted, it would be [almost] impossible to test in VS.
@fredericDelaporte I've fixed most of the concerns, could you please take another look? |
Yes but it may take a while, I am not at home and currently spend most of my (awaken) time outside. |
src/NHibernate.Test/SystemTransactions/TransactionNotificationFixture.cs
Outdated
Show resolved
Hide resolved
System.Reflection.Assembly.GetEntryAssembly()?.GetName().Name == "testhost"; | ||
|
||
public static void AssumeSystemTypeIsSerializable() => | ||
Assume.That(typeof(System.Type).IsSerializable, Is.True); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since Assume
has a semantic implying failure on theories if a theory fail the constraint for all its cases, we likely should instead use Ignore
. Otherwise using this helper in a theory will still cause it to fail, while we use it for ignoring the test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I’ll change this to Ignore
instead.
src/NHibernate.Test/Async/NHSpecificTest/NH3583/AutoFlushFixture.cs
Outdated
Show resolved
Hide resolved
- When executing these methods on .NET Core on Linux they were failing with AccessViolationException crushing the application.
21ca57c
to
3ebc5b6
Compare
3ebc5b6
to
d9df26a
Compare
Awesome! Looking forward to the release of 5.1! |
<Reference Include="System.ServiceModel" /> | ||
<Reference Include="System.Transactions" /> | ||
<Reference Include="System.Configuration" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup Condition="'$(TargetFramework)' == 'netcoreapp2.0'"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems that building the core library for netcoreapp2.0 is unnecessary.
Is leaving off the System.Reflection.Emit
package references worth it for the increased bulk in the NuGet package?
Any forecast when we will have a release? |
|
So do I, but some pending PR deserve being merged in 5.1. Of course at some point those taking too long to finalize may be postponed for a later version.
The CI builds include a "NHibernate (Release Package)" TeamCity build, having in its artifact NuGet packages, the binary release zip and more. Please note that they are still versioned according to latest release: we increment the version only when actually performing a release. You can take them from master builds or from a specific PR, as you wish. Access the latest master builds from the commits page. Clicking on the green check (GitHub desktop site version, likely not available on mobile version) should show you the builds list. Then navigate on "details" link of the release build (like this one). TeamCity will ask you to login if you are not already. An anonymous logon option is available. Then go on the artifacts tab (here by example) and download what you need. |
About:
As written later by Alexander, "the bug in MySql data adapter" is here. Now the two others are also due to a bug in MySql data adapter 6.10, now reported here. (It is closely related to another one and may be considered a duplicate.) This other bug is due to MySql.Data 6.10 command disposal closing now any open data reader found on the connection, be it related to the command or not. So a workaround would be to close previously opened command before opening a data reader with a new command. But in the case of the failing test, this would need introducing more coupling, because the current sequence of events implies a So another workaround could be to change |
This may be a long wait... I have created a competing OSS library, https://github.com/mysql-net/MySqlConnector, that is a drop-in replacement for Oracle's Connector/NET (aka MySql.Data). (One of the motivating factors in creating this alternative was to fix longstanding Connector/NET bugs that weren't getting addressed. It also supported .NET Standard before Connector/NET did.) I understand that many NHibernate users are using Connector/NET, so it makes sense to test with the library your users are using; however, if you'd like a higher-quality MySQL ADO.NET library then I suggest testing with MySqlConnector (either in addition to or instead of Connector/NET). (As the primary author of MySqlConnector, I'd be happy to assist with any integration questions.) |
These are minimal changes required to make a .NET Core 2.0 and .NET Standard 2.0 builds.
There are no test infrastructure yet, but all tests pass locally on windows dotnet core.
Summary of changes: