-
Notifications
You must be signed in to change notification settings - Fork 933
Run tests on .NET 6 #2951
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
Run tests on .NET 6 #2951
Conversation
src/NHibernate.Test/Async/StaticProxyTest/InterfaceHandling/Fixture.cs
Outdated
Show resolved
Hide resolved
<ContentSQLiteInteropFiles>true</ContentSQLiteInteropFiles> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(TargetFramework)' == 'netcoreapp2.0'"> | ||
<PropertyGroup Condition="'$(TargetFramework)' == 'net6.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.
Why not introduce global NhNetCore
property and use it for all such places instead to simplify further retargeting?
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.
Because this is not so easy... I tried it when targeting both .NET Core 3.1 and .NET 6... The dependencies could/were a little different. For example, Microsoft.AspNetCore.OData
does not have problems on 3.1 but has problems in 6.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.
Ehm... I want to convert checks like <PropertyGroup Condition="'$(TargetFramework)' == 'net6.0'">
to something like <PropertyGroup Condition="NhNetCore">
. Looks easy enough for me.. Not sure I understand your problem - are you talking about targeting both 3.1 and 6.0? IMO that's a bit different issue and should be handled separately
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.
Looks easy enough
Yes, it is easy, but I doubt it will solve any real issue.
are you talking about targeting both 3.1 and 6.0?
I was going to make it target .NET 3.1 and .NET 6 rc initially. I started working on the switch around last betas and before .NET 6 rc.1 came out. But I did not have enough time and motivation to finish that at that time. So because of differences in the supported features (like SYSLIB0011 - BinaryFormatter depreciation which is quite aggressive) and different dependencies between .NET 3.1 and .NET 6.0 it required having 2 different monikers like NhNetCore31 and NhNet60. Which defied the purpose of the simplification.
Also, the same could happen when we transition from .NET 6 to next version. Depends on the path we're willing to take.
So, frankly, I do not believe that a simple bump of a version in NhNetCore would be enough to migrate to the later versions. Seems like we're trying to solve the problem which we might not have.
For NhNet it does have sense to use it because Microsoft has promised that 4.x API would stay backwards compatible.
…into net6.0-tests
src/NHibernate.Test/Async/Insertordering/FamilyModel/Fixture.cs
Outdated
Show resolved
Hide resolved
src/NHibernate.Test/Async/Insertordering/InsertOrderingFixture.cs
Outdated
Show resolved
Hide resolved
This comment has been minimized.
This comment has been minimized.
Same here. Probably issue with Rider. Probably worth to create a ticket in their issue tracker. |
|
||
<DisableImplicitPackageTargetFallback>True</DisableImplicitPackageTargetFallback> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(IsPackable)' == '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.
What this $(IsPackable)
about? I don't think it works properly. At least it seems all this information is now missing in generated nuget package
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.
:-(
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.
@bahusoid. '$(IsPackable)'
evaluates to 'true'
instead of '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.
Should be fixed here: #3125
No description provided.