-
Notifications
You must be signed in to change notification settings - Fork 11
Added NetStandard and Upgraded solution. #42
Conversation
AppVeyor build now succedding! https://ci.appveyor.com/project/GitTools/gittools-core/build/1.2.1-PullRequest.42+33.build.122 |
So exceptions don't need to be serializable in netcore because Or - wrap all uses of it in compiler directives so it's not used at all in netstandard / netcore builds. |
Ok now it's just the Travis build that needs fixing |
I'm not familiar with Travis - can I ask that someone else help with fixing the travis build? Just need to get it building under latest msbuild (or dotnet cli which is what i attempted) but it seems the travis image doesn't support dotnet cli - it looks like a linux image.. |
You need to update the |
@jarrodldavis - Thanks for that, I have switched to
|
I'm going to convert the tests project to run under dotnet cli instead. (https://stackoverflow.com/questions/36578232/run-nunit-tests-in-dotnet-core) |
I think we probably need to run the tests on travis under I'm much prefering the AppVeyor experience so far. |
Waiting on GitTools/GitTools.Testing#6 to be merged, so can then get the tests on travis to run under netcoreapp. |
Running nunit tests like this (under netcoreapp1.1) with the latest nunit adapator:
exhibits this: nunit/nunit3-vs-adapter#325 Therefore I am multi-targeting the tests project for |
73756b7
to
5b60228
Compare
It seems many of the shouldly tests fail on linux under
I can see that many of them have previously been excluded from running under mono so assume they were failing with the same issue. For now, I am going to exclude them as before, but they should probably be fixed up properly so that they pass (seperate bit of work) |
WARNING: I am going to merge this tomorrow. |
Ok I am merging.. |
Fixes #40
Changes proposed in this pull request:
msbuild /t:Pack
instead ofnuget pack
.libgit2sharp.portable
package instead of normal one.DumpGraph
API due to lack ofSystem.Diagnostics.Process
API's.DumpGraph
is still available for thenet40
andnet45
targets.uses a polyfill for the serializable attributedepends onSystem.Runtime.Serialization.Formatters
package for[Serialzable]
attribute. (Had discovered using a polyfill is a bad idea due to netcore not supporting extern alias)trusty
distro, as opposed to mono. (Issue with NUnit adaptor when run under netcoreapp though means tests aren't executed)Open a command line and
dotnet build
to see the result.