SumoLogic / sumologic-net-appenders

Several appenders for .NET developers to use that send logs straight to SumoLogic.
Apache License 2.0
23 stars 39 forks source link

port2csproj + target core! #35

Closed TerribleDev closed 7 years ago

TerribleDev commented 7 years ago

see #19 and #22

latkin commented 7 years ago

woot, this is on my list to review this week.

latkin commented 7 years ago

Getting this when building with CI bat file first time:

DONE UPDATING NUGET PACKAGES

BUILDING SOLUTION ...
=====================
Microsoft (R) Build Engine version 15.1.548.43366
Copyright (C) Microsoft Corporation. All rights reserved.

C:\src\terribledev-sumologic-net-appenders\SumoLogic.Logging.Log4Net.Tests\SumoLogic.Logging.Log4Net.Tests.csproj(114,5): error : This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them.  For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is ..\packages\xunit.core.2.0.0\build\portable-net45+win+wpa81+wp80+monotouch+monoandroid+Xamarin.iOS\xunit.core.props.
C:\src\terribledev-sumologic-net-appenders\SumoLogic.Logging.EnterpriseLibrary.Tests\SumoLogic.Logging.EnterpriseLibrary.Tests.csproj(99,5): error : This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them.  For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is ..\packages\xunit.core.2.0.0\build\portable-net45+win+wpa81+wp80+monotouch+monoandroid+Xamarin.iOS\xunit.core.props.
C:\src\terribledev-sumologic-net-appenders\SumoLogic.Logging.NLog.Tests\SumoLogic.Logging.NLog.Tests.csproj(115,5): error : This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them.  For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is ..\packages\xunit.core.2.0.0\build\portable-net45+win+wpa81+wp80+monotouch+monoandroid+Xamarin.iOS\xunit.core.props.
C:\src\terribledev-sumologic-net-appenders\SumoLogic.Logging.Common.Tests\SumoLogic.Logging.Common.Tests.csproj(107,5): error : This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them.  For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is ..\packages\xunit.core.2.0.0\build\portable-net45+win+wpa81+wp80+monotouch+monoandroid+Xamarin.iOS\xunit.core.props.

Clears if I explicitly ./.nuget/nuget.exe restore from repo root, but this should work out of the box.

TerribleDev commented 7 years ago

its supposed to run dotnet restore before the build on this line here: https://github.com/SumoLogic/sumologic-net-appenders/pull/35/files#diff-6ee9f301d8821dfdceea09f2967f45a1R30

TerribleDev commented 7 years ago

@latkin I can't repro the bad restore you previously mentioned. Do you have the newest version of the dotnet cli installed? In this file it should do a restore. Do you see that output when you run this? https://github.com/SumoLogic/sumologic-net-appenders/pull/35/files#diff-6ee9f301d8821dfdceea09f2967f45a1R30

TerribleDev commented 7 years ago

nvm I was able to repro it 568e54f

TerribleDev commented 7 years ago

Here is the issue related to stylecop https://github.com/StyleCop/StyleCop/issues/126

TerribleDev commented 7 years ago

@latkin I pushed some updates

At this point, I'm awaiting your feedback.

latkin commented 7 years ago

Awesome! Builds/tests clean, and sanity check on a desktop and .net core app both work great.

Thank you for the hard work to get this all together! I will get a new nuget package published soon.

TerribleDev commented 7 years ago

@latkin Holy CRAPPPPPPPPPPPPPPPPPPPPPP

Ok, so when can I expect my sumologic hoodie 😛

TerribleDev commented 7 years ago

Just kidding, but thanks this is awesome.

cc @billpratt

latkin commented 7 years ago

@TerribleDev let me see what we can do... 😉

QQ -- nuget yells at me b/c NLog package for .NET Core is still pre-release, but our package is (as it stands) marked stable.

I am thinking I'll push 1.0.0.3 for Common + Log4Net, but push 1.0.0.3-beta1 for NLog so that one is marked pre-release. Is that the right way to do this?

TerribleDev commented 7 years ago

@latkin You can just set the version in the csproj to have that suffix. So just make the version say 1.0.0.3-beta1

You can also pass in versions on the command line

dotnet pack awesome.csproj /p:Version=1.0.0.3-beta1

TerribleDev commented 7 years ago

@latkin that sounds like a solid plan btw

billpratt commented 7 years ago

Nice work!