mirror of
https://github.com/claunia/plist-cil.git
synced 2026-02-04 05:34:41 +00:00
[PR #30] [MERGED] Fix building plist-cil #59
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/claunia/plist-cil/pull/30
Author: @qmfrederik
Created: 5/22/2018
Status: ✅ Merged
Merged: 5/22/2018
Merged by: @claunia
Base:
master← Head:fixes/build📝 Commits (8)
5be1901Fix building plist-cilb76cda7Fix AppVeyor build scriptc6a5be0Support netcoreapp2.0 and netstandard2.02e2bd54Fix .NET Core version number in Travis674d57eSkip test for scenario which is not implemented32da65aTest on mono 5.0.07241b5dDon't build net45, net40 on Linux22b977bFix paths📊 Changes
8 files changed (+73 additions, -50 deletions)
View changed files
📝
.travis.yml(+6 -12)📝
appveyor.yml(+4 -10)📝
plist-cil.test/IssueTest.cs(+3 -3)➖
plist-cil.test/packages.config(+0 -4)📝
plist-cil.test/plist-cil.test.csproj(+4 -5)📝
plist-cil/NSArray.IList.cs(+0 -1)📝
plist-cil/UID.cs(+48 -12)📝
plist-cil/plist-cil.csproj(+8 -3)📄 Description
I got a couple of errors when building from source, and this PR tries to address them:
System.Linqon .NET 4.0 and .NET 4.5, you need to add a reference to `System.Core. This PR adds that referenceBitConverter.GetBytes(x).Reverse().ToArray()was being used. This PR changes that to be:this.bytes = BitConverter.GetBytes(x); Array.Reverse(this.bytes). This has the advantage of usingArray.Reverse, which should be a bit more performant too (as no new array is being allocated).netcoreapp2.0andnetstandard2.0TestIssue30test (see 3breadt/dd-plist@e6cc1a0a17) as thsi functionality is not yet implementedcsprojfile format is supported by Mono 5.x and newer, so update the.travis-ci.ymlfile to reflect that.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.