-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Support .NET Standard 2.0 and move to VS 2017 #2263
Conversation
f179bb5
to
4958fab
Compare
Number one in using latest tools and contributing to projects with your expertise 👍 Just to avoid confusion I would rename this PR as "VS 2017 and .NET Standard 2.0" |
b371a2a
to
e8d1e40
Compare
@luigiberrettini You can now play around with this nuget-package: https://ci.appveyor.com/project/nlog/nlog/build/4.5.0-beta5831/artifacts |
a32a49a
to
457945d
Compare
@304NotModified It would be nice if this PR is merged before any other PR (When it looks stable), as the conflict rate is quite high with this one. So please delay any merging of any other PR. |
ae98ae6
to
05b4296
Compare
Codecov Report
@@ Coverage Diff @@
## master #2263 +/- ##
=======================================
+ Coverage 82% 82% +<1%
=======================================
Files 304 304
Lines 21312 21374 +62
Branches 2570 2576 +6
=======================================
+ Hits 17407 17463 +56
- Misses 3250 3256 +6
Partials 655 655 |
@304NotModified Seems that the AppVeyor-build-image for VS2017 includes NetCore2, but VS2017 has dropped support for Silverlight. And the AppVeyor-build-image for VS2015 does not include NetCore 2.0 SDK. Any ideas how to solve this? Moving forward without Silverlight ? Am I missing a magic parameter? Seems I found the solution. Just needed to specify some extra magic parameters for the Silverlight and Windows Phone build. New Nuget-package ready: https://ci.appveyor.com/project/nlog/nlog/build/4.5.0-beta5853/artifacts |
1d2579e
to
54eaa52
Compare
No idea how xUnit and AppVeyor is working together. Will try and change my net35 + net40 hack, so it doesn't reuse the same net452-FilePath for the 3 tests (net452, net40-client + net35) |
6aaaf9c
to
26fbc48
Compare
Seems the AppVeyor-logic for xUnit has two identifiers for the unit-test-assembly-name (HandleTestAssemblyStarting):
Little annoying it is not possible to reuse the same unit-test-dll with different configuration options (and add a prefix/suffix to the unit-test-assembly-name. |
Can't we add multiple InternalsVisibleTo attributes? |
Sure make a PR, that works, then I will merge it into this. Or you can just do it after having merged this to master :) |
The PowerShell error is caused by the launch of an external command and the handling of streams: |
26fbc48
to
e08c00e
Compare
Trying a newer version of xunit.console.runner, instead of the one provided by AppVeyor. Maybe it is better at shielding the PowerShell from the rogue NLog-Unit-Tests. ** Update ** Nope didn't help |
274d83b
to
1726984
Compare
Have now fixed the rogue NLog UnitTests that spat into Console.Error and Console.Out. Now the PowerShell can sleep at night. |
1726984
to
3872685
Compare
As for snippets:
Since snippets are six years old I suppose they are not updated on each release and this PR could ignore including their NuGet package creation, but this should be confirmed by @304NotModified 😉 |
yes we could ignore the Vsintergration now. Will check this in the list |
reminder for myself
|
merged! Great job @snakefoot ! thanks! thanks @luigiberrettini ! 🎉 |
@304NotModified Glad it is done. Not a funny PR to get through. Lots of old skeletons suddenly came jumping out of the closet. And the VS2017 tooling was not super obvious when all sources were saying "always use the new dotnet command". I guess we should checkout if nUnit or MsTest2 (or something else) would perform better than xUnit, so the build-time could be reduced. |
I think we could win some time by disabling the xunit warnings (could be disabled I assume). Also the build log is then more readable ;) |
Hi all. Do you have in mind upload it? How could I use it in the meantime? Am I forced to include the libraries inside my project? Thank yoj. |
I think the reason for the slower builds is the change to VS2017 AppVeyor-Build-Image. These are the build-timings on Travis, before and after the change to VS2017: Before: https://travis-ci.org/NLog/NLog/builds/262388322 - 82.205 (NLog.UnitTests Total: 2042) Maybe the AppVeyor-build-servers that supports VS2017-images are configured differently? |
at least 2017 preview is slower: source |
Initial attempt for converting to new VS2017 csproj file format.
NLog-Docs-csproj (Maybe handled by GenerateDocumentationFile=true)-> not usedNLog-BuildDocPages-> not used for nowReplaces #2175 and #2154 and resolves #2152, resolves #1954 and resolves #1953