-
-
Notifications
You must be signed in to change notification settings - Fork 801
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
migrate to .net standard 2.0 #646
Conversation
Hi @tomchavakis, thanks for the PR. You might have seen #630. Something like your pull request is definitely planned for the next minor release (4.10.0), but there'll be a patch release first (4.9.1) which is the reason why we cannot merge this into Also, I am starting to think that it might be preferable to actually target .NET Core 2.x directly, instead of .NET Standard. Please feel free to participate in the discussion over at #630 and update this PR accordingly once we reach a conclusion there. |
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.
No changes required just yet, just some thoughts with regard to #630.
@@ -1,7 +1,7 @@ | |||
<Project Sdk="Microsoft.NET.Sdk"> | |||
|
|||
<PropertyGroup> | |||
<TargetFrameworks>net45;netstandard1.3</TargetFrameworks> | |||
<TargetFrameworks>net45;netstandard2.0</TargetFrameworks> |
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.
We first need to decide which frameworks we want to target before dropping older versions. This will likely need to be changed. I'll give you further feedback once we've figured out things.
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 would be great to support the latest netstandard2.0 version in order to use it at .net core 2.x projects and also the previous versions if it's possible.
@@ -27,6 +27,15 @@ | |||
<dependency id="System.Threading.Tasks.Extensions" version="4.3.0" /> | |||
<dependency id="System.ValueTuple" version="4.4.0" /> | |||
</group> | |||
<group targetFramework=".NETStandard2.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.
If we do indeed target netcoreapp2.x
instead the dependencies will likely look a bit more minimal. This will likely need to be changed. Stay tuned for more feedback later.
@tomchavakis - Are you still interested in working on this? If so, please confirm briefly by posting here. If not, that's perfectly fine as well. This PR has been dormant for a while because it wasn't sufficiently clear which platform targets Moq should support in the future. In the meantime, some new information has become available (see e.g. #630 (comment)). My current thinking is that we should probably add Supporting |
@stakx Thank's for the detailed comment. I agree with you that net461 and netstandard2.0 should targets to Moq. In case you need any help in some testing for both net45 and net461 I am willing to help. |
@tomchavakis, sorry for having disregarded this PR in favour of #784. I actually forgot about your PR until I was already done with mine. 😲 |
@stakx no worries!!! I am happy that the project updated!!! |
support .net core 2.1