-
Notifications
You must be signed in to change notification settings - Fork 456
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
Change target framework from .NET Standard 1.6 to 2.0, and move .NET Core tests to .NET 5 #572
Change target framework from .NET Standard 1.6 to 2.0, and move .NET Core tests to .NET 5 #572
Conversation
The build fails. |
@jonorossi Ready. Change in test framework and those nasty preprocessor labels we have in windsor :-/ |
There is a few of these warnings in the build log, should we be doing something about them?
|
The netcoreapp2.0 issue is from the Castle.Facilities.AspNetCore tests. The Castle.Facilities.AspNetCore as you know is only for netcoreapp2.0, and the netcoreapp2.0 tests The netcoreapp2.2 is from the new dependency injection extension tests. I have removed, but I actually thought it was nice to show that netcoreapp2.2 is supported with the dependency injection extension. My question is. Can we not remove the Castle.Facilities.AspNetCore and Castle.Facilities.AspNetCore.Tests. Are we making new builds of this? If people want to use this facility should they not use Windsor 5.0? I guess this raises the old question if the old asp.net, wcf and now alos aspnetcore facility shouldn't be moved to an obsolete repo. But I think you should decide here :-) As with the build issue. I can add the warnings to the build ignore.? or we can leave it. What is best? @jonorossi I have tried with 1138, SDK1138 and NETSDK1138 in the tests csproj. I cannot stop the warning... |
…-Update-Windsor-TargetFrameworks # Conflicts: # src/Castle.Windsor.Tests/Castle.Windsor.Tests.csproj
@jonorossi once we get all the details cleared up, i think i will create a new PR with less commits. A more clean/correct PR / Branch |
@generik0 The library Castle.Core may not need to build for netstandard2.1 because it does not use new features. I run into problems with the limited list of target framework because we have an internal approval process for packages from nuget.org. The more packages are referenced indirectly the more packages we need to approve. I recommend to target netstandard2.0 AND netstandard2.1 for more flexibility to all users. |
This was decided in castleproject/Core#407 (comment). I'll try to summarize from what I remember: I argued that we should target (Btw. while we're on the topic of target frameworks, re: |
With the same arguments as above I vote for adding net5.0 in addition to other targets. Building libraries on top of Castle (Core), the user has more flexibility to reference what is required for each target. |
@jonorossi I think you need to decide. I have no preference for any of it :-) However i do feel we should mirror Castle.Core and make tests run to each included framework. Hence for now make Castle.Windsor use .net45, .netstandard2.0 and .netstandard2.1. and the tests .net472, and .net5.0. In the future --> if Castle.Core add a framework or Castle.Windsor needs something specific from a framework then add this also. |
I have no problem removing the obsolete facilities now that we've got a proper Extensions DependencyInjection one. Those that are stuck on old versions of ASP.NET Core won't need a new Windsor anyway. Log an issue to everyone following alone will see the notification.
Just use rebase to clean up your commits on the branch, GitHub will detect the changes and automatically update this pull request. Or I'll just squash everything together before merging.
As @stakx explained, there is annoying problems with reflection emit not properly being exposed with specific .NET Standard versions. We can do something different here with Windsor.
@lg2de if Castle Core doesn't target
We could change Windsor from |
The less dependencies the better! I do not understand your question in relation to net5.0. |
@lg2de you said:
and:
You are requesting something but providing little information, I attempted to read between the lines but obviously was wrong. I thought you were saying that under |
Hi, @jonorossi looks like the PR is good then. Please squash, ok? I have run a little out of time :-) |
@jonorossi, I did not request anything here. I was asked for details on discussion months ago. At the time of my analysis net5.0 was not available, or at least not in my focus.
At the moment I can not. |
Yes, I looked in the Castle.Core history, and tried to discover why there was netstandard2.1 and asked for some historical information:-) |
... and stakx gave the correct answer I did not remember :( |
@lg2de I understood that part and knew exactly why Castle Core has .NET Standard 2.0 and 2.1. I was only asking about this comment of yours because that is what we are discussing, if we should add
|
At the moment I do not have strong arguments to add net5.0. |
I think we are good with "Change frameworks to net45;netstandard2.0 and tests net45;net5.0 where applicable" |
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.
Just a couple of minor comments.
Thanks, merged. |
#564