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 Netstandard 2.0 #7

Merged
merged 3 commits into from
Aug 9, 2018
Merged

Conversation

miniwolf
Copy link
Contributor

@miniwolf miniwolf commented Jan 5, 2018

The following commits are converting the project to be based on .Net Standard 2.0. The tests are based on .Net Core 2.0 to still be supporting NUnit correctly.

  • The tests has been updated with necessary changes that makes it possible to compile for the new target. As .Net Standard 2.0 are supported under .Net Framework and .Net Core it should make the most sense to stick to this.
  • Tests has been updated to use Shouldly and drop the support for FluidAssertions to improve the readability and maintainability, while still leaving the tests as similar as possible to the old content.
  • Updated indentation and formatting for touched files.

Removing framework config and AssemblyInfo files which are not needed
for dotnet standard.

Tests are using the shouldly extension to perform assertions between
values.

Fixing up some inconsistent formatting. In addition updated const usage.
Stop using shouldBeSameAs as we don't need reference checking for
comparing values.
… using assembly to reference the logger for log4net. Remove usage of should match as Shouldly.ShouldContain works without using a pseudo regex. Found instability in ShipperTests.Ship_BufferTimeoutReached_LogWasSent where too quick execution can trigger an error.
@miniwolf
Copy link
Contributor Author

miniwolf commented Jan 5, 2018

The travis.yml is targeting .Net Framework.
In order to get the build and tests to succeed on the linux environment, it should install the dotnet sdk using: https://www.microsoft.com/net/learn/get-started/linuxubuntu
The commands for nuget is unchanged, but building would require:
- dotnet build logzio-dotnet.sln /p:Configuration=Release
- dotnet ./testrunner/NUnit.ConsolRunner.3.5.0...
- dotnet ./testrunner/NUnit.ConsolRunner.3.5.0...

@yellowblood
Copy link
Contributor

Hey,

Thanks for the contribution. Unfortunately I no longer work at logz.io , so you better contact their support and ask if they can merge this PR.

I'd check if the build scripts are still able to create the packages for .NET 4 and 4.5, and add a build script for core.

@idohalevi idohalevi merged commit 6e2c46e into logzio:master Aug 9, 2018
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.

3 participants