Skip to content
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

Conversion to NET Standard 2.0 #22

Merged
merged 2 commits into from Jun 1, 2018
Merged

Conversion to NET Standard 2.0 #22

merged 2 commits into from Jun 1, 2018

Conversation

ghost
Copy link

@ghost ghost commented May 29, 2018

Conversion of the StatsdClient library to .NET Standard 2.0 so that it can be reference for use by either .NET Framework (4.6.1) or .NET Core applications.

Converted StatsdClient to .NETStandard 2.0
Updated StatsdClientTests to 4.6.1
Copy link
Collaborator

@niemyjski niemyjski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good and thanks for the pr. Could we also update the tests to run cross plat :)

@@ -3,7 +3,7 @@
<metadata>
<id>StatsdCsharpClient</id>
<version>$version$</version>
<title>Simple Statsd Client for .Net 4.5</title>
<title>Simple Statsd Client for .Net 4.6.1</title>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we just call this Simple StatsD Client

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't see why not. I will make the change in the next few days.

@@ -8,14 +8,15 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>StatsdClientTests</RootNamespace>
<AssemblyName>StatsdClientTests</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we update this to run on .net core 2.0 (xplat) and ditch configuration?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure. I will update the project and commit it along with the previous request.

Updated unit test library to  .NET Core 2.0.
Fixed name violation by updating count_SendToStatsd_Success to Count_SendToStatsd_Success.
Changed Count_SendToStatsd_Success return type to void, as per other tests.
Cleaned up unused using statements.
Version up libraries and updated change log.
@niemyjski niemyjski merged commit a0fde84 into lukevenediger:master Jun 1, 2018
@niemyjski
Copy link
Collaborator

Thanks for the PR! Can you please try reviewing the other pr as well and hopefully we can get this out with more changes.

@ghost
Copy link
Author

ghost commented Jun 2, 2018

You are welcome.

I took a brief look at the other pr and these are my thoughts.
a) It was done is 2015 and so was based off older revision of the master.
b) I don't believe the unit tests, need to be refactored as they appear to be working. But maybe I am missing something that Jeff spotted.

Basically this means that the only class that needs/could to be merged in would be Statsd.cs. However there are a number of conflicts here that mean that this would need to be a manual merge.

In my opinion, it would be better for the author to start over with a clean version of the source.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant