mirror of
https://github.com/claunia/plist-cil.git
synced 2025-12-16 11:04:26 +00:00
Updated code to correclty support and compile using .NET Core RC4 (and Visual Studio 2017). May break compatibility with VS2015. Older .NET Core will not be supported. Fixes #13
Signed-off-by: Natalia Portillo <claunia@claunia.com>
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -174,3 +174,5 @@ UpgradeLog*.htm
|
||||
FakesAssemblies/
|
||||
|
||||
*.userprefs
|
||||
|
||||
.vs/
|
||||
@@ -10,4 +10,5 @@ mono:
|
||||
- 3.10.0
|
||||
- 3.8.0
|
||||
- 3.2.8
|
||||
- 2.10.8
|
||||
- 2.10.8
|
||||
dotnet: 1.0.0-preview2-1003121
|
||||
14
ChangeLog
14
ChangeLog
@@ -1,3 +1,17 @@
|
||||
2017-02-22 Natalia Portillo <claunia@claunia.com>
|
||||
|
||||
* SvnInfo.txt:
|
||||
Removed, no longer tracking from SVN.
|
||||
|
||||
* plist-cil.csproj:
|
||||
Updated for .NET Core.
|
||||
|
||||
* .travis.yml:
|
||||
Added .NET Core target.
|
||||
|
||||
* .gitignore:
|
||||
Ignore .vs settings folder.
|
||||
|
||||
2015-02-25 Natalia Portillo <claunia@claunia.com>
|
||||
|
||||
* SvnInfo.txt:
|
||||
|
||||
12
SvnInfo.txt
12
SvnInfo.txt
@@ -1,12 +0,0 @@
|
||||
Path: .
|
||||
Working Copy Root Path: /Development/plist
|
||||
URL: http://plist.googlecode.com/svn/trunk
|
||||
Repository Root: http://plist.googlecode.com/svn
|
||||
Repository UUID: 08b5d097-3e27-63a3-4c6f-efc316e1e7e5
|
||||
Revision: 114
|
||||
Node Kind: directory
|
||||
Schedule: normal
|
||||
Last Changed Author: daniel.dreibrodt@gmail.com
|
||||
Last Changed Rev: 114
|
||||
Last Changed Date: 2015-02-24 18:53:46 +0000 (mar, 24 feb 2015)
|
||||
|
||||
@@ -1,38 +1,61 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio 2012
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "plist-cil", "plist-cil\plist-cil.csproj", "{5EA40CD5-CB98-4FD5-8628-3B399EACB38B}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "plist-cil.test", "plist-cil.test\plist-cil.test.csproj", "{36AD4394-6A31-465F-BE8E-E4806A89CC38}"
|
||||
EndProject
|
||||
# Visual Studio 15
|
||||
VisualStudioVersion = 15.0.26206.0
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{25B9F55C-9830-4526-9539-949838B09EAC}"
|
||||
ProjectSection(SolutionItems) = preProject
|
||||
SvnInfo.txt = SvnInfo.txt
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "plist-cil", "plist-cil\plist-cil.csproj", "{2A906AEB-BDE0-4356-8114-064F80596C7D}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "plist-cil.test", "plist-cil.test\plist-cil.test.csproj", "{17124CCE-32F1-4FD6-8703-32235BDEEEDC}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Debug|x64 = Debug|x64
|
||||
Debug|x86 = Debug|x86
|
||||
Release|Any CPU = Release|Any CPU
|
||||
Release|x64 = Release|x64
|
||||
Release|x86 = Release|x86
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{36AD4394-6A31-465F-BE8E-E4806A89CC38}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{36AD4394-6A31-465F-BE8E-E4806A89CC38}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{36AD4394-6A31-465F-BE8E-E4806A89CC38}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{36AD4394-6A31-465F-BE8E-E4806A89CC38}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{5EA40CD5-CB98-4FD5-8628-3B399EACB38B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{5EA40CD5-CB98-4FD5-8628-3B399EACB38B}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{5EA40CD5-CB98-4FD5-8628-3B399EACB38B}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{5EA40CD5-CB98-4FD5-8628-3B399EACB38B}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{2A906AEB-BDE0-4356-8114-064F80596C7D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{2A906AEB-BDE0-4356-8114-064F80596C7D}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{2A906AEB-BDE0-4356-8114-064F80596C7D}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{2A906AEB-BDE0-4356-8114-064F80596C7D}.Debug|x64.Build.0 = Debug|x64
|
||||
{2A906AEB-BDE0-4356-8114-064F80596C7D}.Debug|x86.ActiveCfg = Debug|x86
|
||||
{2A906AEB-BDE0-4356-8114-064F80596C7D}.Debug|x86.Build.0 = Debug|x86
|
||||
{2A906AEB-BDE0-4356-8114-064F80596C7D}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{2A906AEB-BDE0-4356-8114-064F80596C7D}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{2A906AEB-BDE0-4356-8114-064F80596C7D}.Release|x64.ActiveCfg = Release|x64
|
||||
{2A906AEB-BDE0-4356-8114-064F80596C7D}.Release|x64.Build.0 = Release|x64
|
||||
{2A906AEB-BDE0-4356-8114-064F80596C7D}.Release|x86.ActiveCfg = Release|x86
|
||||
{2A906AEB-BDE0-4356-8114-064F80596C7D}.Release|x86.Build.0 = Release|x86
|
||||
{17124CCE-32F1-4FD6-8703-32235BDEEEDC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{17124CCE-32F1-4FD6-8703-32235BDEEEDC}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{17124CCE-32F1-4FD6-8703-32235BDEEEDC}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{17124CCE-32F1-4FD6-8703-32235BDEEEDC}.Debug|x64.Build.0 = Debug|x64
|
||||
{17124CCE-32F1-4FD6-8703-32235BDEEEDC}.Debug|x86.ActiveCfg = Debug|x86
|
||||
{17124CCE-32F1-4FD6-8703-32235BDEEEDC}.Debug|x86.Build.0 = Debug|x86
|
||||
{17124CCE-32F1-4FD6-8703-32235BDEEEDC}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{17124CCE-32F1-4FD6-8703-32235BDEEEDC}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{17124CCE-32F1-4FD6-8703-32235BDEEEDC}.Release|x64.ActiveCfg = Release|x64
|
||||
{17124CCE-32F1-4FD6-8703-32235BDEEEDC}.Release|x64.Build.0 = Release|x64
|
||||
{17124CCE-32F1-4FD6-8703-32235BDEEEDC}.Release|x86.ActiveCfg = Release|x86
|
||||
{17124CCE-32F1-4FD6-8703-32235BDEEEDC}.Release|x86.Build.0 = Release|x86
|
||||
EndGlobalSection
|
||||
GlobalSection(NestedProjects) = preSolution
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(MonoDevelopProperties) = preSolution
|
||||
Policies = $0
|
||||
$0.DotNetNamingPolicy = $1
|
||||
$1.DirectoryNamespaceAssociation = PrefixedHierarchical
|
||||
$1.ResourceNamePolicy = MSBuild
|
||||
$0.TextStylePolicy = $2
|
||||
$0.TextStylePolicy = $4
|
||||
$2.inheritsSet = VisualStudio
|
||||
$2.inheritsScope = text/plain
|
||||
$2.scope = text/x-csharp
|
||||
@@ -61,7 +84,6 @@ Global
|
||||
$3.inheritsSet = Mono
|
||||
$3.inheritsScope = text/x-csharp
|
||||
$3.scope = text/x-csharp
|
||||
$0.TextStylePolicy = $4
|
||||
$4.inheritsSet = VisualStudio
|
||||
$4.inheritsScope = text/plain
|
||||
$4.scope = text/plain
|
||||
@@ -70,21 +92,19 @@ Global
|
||||
$5.IncludeInNewFiles = True
|
||||
$0.NameConventionPolicy = $6
|
||||
$6.Rules = $7
|
||||
$7.NamingRule = $8
|
||||
$7.NamingRule = $32
|
||||
$8.Name = Namespaces
|
||||
$8.AffectedEntity = Namespace
|
||||
$8.VisibilityMask = VisibilityMask
|
||||
$8.NamingStyle = PascalCase
|
||||
$8.IncludeInstanceMembers = True
|
||||
$8.IncludeStaticEntities = True
|
||||
$7.NamingRule = $9
|
||||
$9.Name = Types
|
||||
$9.AffectedEntity = Class, Struct, Enum, Delegate
|
||||
$9.VisibilityMask = VisibilityMask
|
||||
$9.NamingStyle = PascalCase
|
||||
$9.IncludeInstanceMembers = True
|
||||
$9.IncludeStaticEntities = True
|
||||
$7.NamingRule = $10
|
||||
$10.Name = Interfaces
|
||||
$10.RequiredPrefixes = $11
|
||||
$11.String = I
|
||||
@@ -93,7 +113,6 @@ Global
|
||||
$10.NamingStyle = PascalCase
|
||||
$10.IncludeInstanceMembers = True
|
||||
$10.IncludeStaticEntities = True
|
||||
$7.NamingRule = $12
|
||||
$12.Name = Attributes
|
||||
$12.RequiredSuffixes = $13
|
||||
$13.String = Attribute
|
||||
@@ -102,7 +121,6 @@ Global
|
||||
$12.NamingStyle = PascalCase
|
||||
$12.IncludeInstanceMembers = True
|
||||
$12.IncludeStaticEntities = True
|
||||
$7.NamingRule = $14
|
||||
$14.Name = Event Arguments
|
||||
$14.RequiredSuffixes = $15
|
||||
$15.String = EventArgs
|
||||
@@ -111,7 +129,6 @@ Global
|
||||
$14.NamingStyle = PascalCase
|
||||
$14.IncludeInstanceMembers = True
|
||||
$14.IncludeStaticEntities = True
|
||||
$7.NamingRule = $16
|
||||
$16.Name = Exceptions
|
||||
$16.RequiredSuffixes = $17
|
||||
$17.String = Exception
|
||||
@@ -120,97 +137,82 @@ Global
|
||||
$16.NamingStyle = PascalCase
|
||||
$16.IncludeInstanceMembers = True
|
||||
$16.IncludeStaticEntities = True
|
||||
$7.NamingRule = $18
|
||||
$18.Name = Methods
|
||||
$18.AffectedEntity = Methods
|
||||
$18.VisibilityMask = VisibilityMask
|
||||
$18.NamingStyle = PascalCase
|
||||
$18.IncludeInstanceMembers = True
|
||||
$18.IncludeStaticEntities = True
|
||||
$7.NamingRule = $19
|
||||
$19.Name = Static Readonly Fields
|
||||
$19.AffectedEntity = ReadonlyField
|
||||
$19.VisibilityMask = Internal, Protected, Public
|
||||
$19.NamingStyle = PascalCase
|
||||
$19.IncludeInstanceMembers = False
|
||||
$19.IncludeStaticEntities = True
|
||||
$7.NamingRule = $20
|
||||
$20.Name = Fields (Non Private)
|
||||
$20.AffectedEntity = Field
|
||||
$20.VisibilityMask = Internal, Protected, Public
|
||||
$20.NamingStyle = PascalCase
|
||||
$20.IncludeInstanceMembers = True
|
||||
$20.IncludeStaticEntities = True
|
||||
$7.NamingRule = $21
|
||||
$21.Name = ReadOnly Fields (Non Private)
|
||||
$21.AffectedEntity = ReadonlyField
|
||||
$21.VisibilityMask = Internal, Protected, Public
|
||||
$21.NamingStyle = PascalCase
|
||||
$21.IncludeInstanceMembers = True
|
||||
$21.IncludeStaticEntities = False
|
||||
$7.NamingRule = $22
|
||||
$22.Name = Fields (Private)
|
||||
$22.AllowedPrefixes = $23
|
||||
$23.String = _
|
||||
$23.String = m_
|
||||
$22.AffectedEntity = Field, ReadonlyField
|
||||
$22.VisibilityMask = Private
|
||||
$22.NamingStyle = CamelCase
|
||||
$22.IncludeInstanceMembers = True
|
||||
$22.IncludeStaticEntities = False
|
||||
$7.NamingRule = $24
|
||||
$24.Name = Static Fields (Private)
|
||||
$24.AffectedEntity = Field
|
||||
$24.VisibilityMask = Private
|
||||
$24.NamingStyle = CamelCase
|
||||
$24.IncludeInstanceMembers = False
|
||||
$24.IncludeStaticEntities = True
|
||||
$7.NamingRule = $25
|
||||
$25.Name = ReadOnly Fields (Private)
|
||||
$25.AllowedPrefixes = $26
|
||||
$26.String = _
|
||||
$26.String = m_
|
||||
$25.AffectedEntity = ReadonlyField
|
||||
$25.VisibilityMask = Private
|
||||
$25.NamingStyle = CamelCase
|
||||
$25.IncludeInstanceMembers = True
|
||||
$25.IncludeStaticEntities = False
|
||||
$7.NamingRule = $27
|
||||
$27.Name = Constant Fields
|
||||
$27.AffectedEntity = ConstantField
|
||||
$27.VisibilityMask = VisibilityMask
|
||||
$27.NamingStyle = PascalCase
|
||||
$27.IncludeInstanceMembers = True
|
||||
$27.IncludeStaticEntities = True
|
||||
$7.NamingRule = $28
|
||||
$28.Name = Properties
|
||||
$28.AffectedEntity = Property
|
||||
$28.VisibilityMask = VisibilityMask
|
||||
$28.NamingStyle = PascalCase
|
||||
$28.IncludeInstanceMembers = True
|
||||
$28.IncludeStaticEntities = True
|
||||
$7.NamingRule = $29
|
||||
$29.Name = Events
|
||||
$29.AffectedEntity = Event
|
||||
$29.VisibilityMask = VisibilityMask
|
||||
$29.NamingStyle = PascalCase
|
||||
$29.IncludeInstanceMembers = True
|
||||
$29.IncludeStaticEntities = True
|
||||
$7.NamingRule = $30
|
||||
$30.Name = Enum Members
|
||||
$30.AffectedEntity = EnumMember
|
||||
$30.VisibilityMask = VisibilityMask
|
||||
$30.NamingStyle = PascalCase
|
||||
$30.IncludeInstanceMembers = True
|
||||
$30.IncludeStaticEntities = True
|
||||
$7.NamingRule = $31
|
||||
$31.Name = Parameters
|
||||
$31.AffectedEntity = Parameter
|
||||
$31.VisibilityMask = VisibilityMask
|
||||
$31.NamingStyle = CamelCase
|
||||
$31.IncludeInstanceMembers = True
|
||||
$31.IncludeStaticEntities = True
|
||||
$7.NamingRule = $32
|
||||
$32.Name = Type Parameters
|
||||
$32.RequiredPrefixes = $33
|
||||
$33.String = T
|
||||
|
||||
@@ -1,3 +1,17 @@
|
||||
2017-02-22 Natalia Portillo <claunia@claunia.com>
|
||||
|
||||
* Properties/AssemblyInfo.cs:
|
||||
Removed, no longer needed in .NET Core.
|
||||
|
||||
* plist-cil.test.csproj:
|
||||
Updated for .NET Core
|
||||
|
||||
* NSNumberTests.cs:
|
||||
Cannot test different locales with NUnit in .NET Core currently.
|
||||
|
||||
* PropertyListParserTests.cs:
|
||||
Use different way to test for exceptions compatible with NUnit 3.6 and .NET Core.
|
||||
|
||||
2015-02-24 Natalia Portillo <claunia@claunia.com>
|
||||
|
||||
* plist-cil.test.csproj:
|
||||
|
||||
@@ -27,6 +27,7 @@ namespace plistcil.test
|
||||
// <key>TimeZoneOffsetFromUTC</key>
|
||||
// <real>7200.000000</real>
|
||||
|
||||
#if !NETCORE
|
||||
[Test]
|
||||
[SetCulture("en-US")]
|
||||
public static void ParseNumberEnTest()
|
||||
@@ -71,5 +72,6 @@ namespace plistcil.test
|
||||
Assert.IsTrue(number.isReal());
|
||||
Assert.AreEqual(7200d, number.ToDouble());
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,51 +0,0 @@
|
||||
// plist-cil - An open source library to parse and generate property lists for .NET
|
||||
// Copyright (C) 2015 Natalia Portillo
|
||||
//
|
||||
// This code is based on:
|
||||
// plist - An open source library to parse and generate property lists
|
||||
// Copyright (C) 2014 Daniel Dreibrodt
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
// of this software and associated documentation files (the "Software"), to deal
|
||||
// in the Software without restriction, including without limitation the rights
|
||||
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
// copies of the Software, and to permit persons to whom the Software is
|
||||
// furnished to do so, subject to the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be included in
|
||||
// all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
// SOFTWARE.
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
// Information about this assembly is defined by the following attributes.
|
||||
// Change them to the values specific to your project.
|
||||
|
||||
[assembly: AssemblyTitle("plist-cil.test")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("Claunia.com")]
|
||||
[assembly: AssemblyProduct("")]
|
||||
[assembly: AssemblyCopyright("© Claunia.com")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}".
|
||||
// The form "{Major}.{Minor}.*" will automatically update the build and revision,
|
||||
// and "{Major}.{Minor}.{Build}.*" will update just the revision.
|
||||
|
||||
[assembly: AssemblyVersion("1.0.*")]
|
||||
|
||||
// The following attributes are used to specify the signing key for the assembly,
|
||||
// if desired. See the Mono documentation for more information about signing.
|
||||
|
||||
//[assembly: AssemblyDelaySign(false)]
|
||||
//[assembly: AssemblyKeyFile("")]
|
||||
|
||||
@@ -8,8 +8,12 @@ namespace plistcil.test
|
||||
public class PropertyListParserTests
|
||||
{
|
||||
[Test]
|
||||
[ExpectedException(typeof(PropertyListFormatException))]
|
||||
public static void ParseEmptyStreamTest()
|
||||
{
|
||||
Assert.Throws<PropertyListFormatException>(new TestDelegate(ParseEmptyStreamTestDelegate));
|
||||
}
|
||||
|
||||
static void ParseEmptyStreamTestDelegate()
|
||||
{
|
||||
using (MemoryStream stream = new MemoryStream())
|
||||
{
|
||||
|
||||
@@ -1,51 +1,22 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{36AD4394-6A31-465F-BE8E-E4806A89CC38}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<RootNamespace>plistcil.test</RootNamespace>
|
||||
<AssemblyName>plist-cil.test</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
||||
<ReleaseVersion>1.14</ReleaseVersion>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug</OutputPath>
|
||||
<DefineConstants>DEBUG;</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<ConsolePause>false</ConsolePause>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release</OutputPath>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<ConsolePause>false</ConsolePause>
|
||||
<TargetFrameworks>netcoreapp1.0;net40</TargetFrameworks>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="nunit.framework">
|
||||
<HintPath>..\packages\NUnit.2.6.4\lib\nunit.framework.dll</HintPath>
|
||||
</Reference>
|
||||
<PackageReference Include="NUnit" Version="3.6.0" />
|
||||
</ItemGroup>
|
||||
|
||||
<PropertyGroup Condition="'$(TargetFramework)' == 'netcoreapp1.0'">
|
||||
<DefineConstants>NETCOREAPP1_0;NETCORE</DefineConstants>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Include="NSArrayTests.cs" />
|
||||
<Compile Include="NSNumberTests.cs" />
|
||||
<Compile Include="NSDateTests.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="ParseTest.cs" />
|
||||
<Compile Include="IssueTest.cs" />
|
||||
<Compile Include="PropertyListParserTests.cs" />
|
||||
<ProjectReference Include="..\plist-cil\plist-cil.csproj" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
|
||||
<ItemGroup>
|
||||
<None Include="packages.config" />
|
||||
<None Include="..\test-files\test1-ascii-gnustep.plist">
|
||||
<Link>test-files\test1-ascii-gnustep.plist</Link>
|
||||
<Gettext-ScanForTranslations>False</Gettext-ScanForTranslations>
|
||||
@@ -123,14 +94,5 @@
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\plist-cil\plist-cil.csproj">
|
||||
<Project>{5EA40CD5-CB98-4FD5-8628-3B399EACB38B}</Project>
|
||||
<Name>plist-cil</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup />
|
||||
<ItemGroup>
|
||||
<Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
|
||||
</Project>
|
||||
|
||||
@@ -1,3 +1,17 @@
|
||||
2017-02-22 Natalia Portillo <claunia@claunia.com>
|
||||
|
||||
* Properties/AssemblyInfo.cs:
|
||||
Removed, no longer needed in .NET Core.
|
||||
|
||||
* plist-cil.csproj:
|
||||
Updated for .NET Core.
|
||||
|
||||
* NSNumber.cs:
|
||||
InvariantCulture seems not to be supported in .NET Core, changed to CurrentCulture.
|
||||
|
||||
* plist-cil.nuspec:
|
||||
Updated version, not sure if needed with .NET Core auto-packaging.
|
||||
|
||||
2015-02-25 Natalia Portillo <claunia@claunia.com>
|
||||
|
||||
* plist-cil.nuspec:
|
||||
|
||||
@@ -139,8 +139,8 @@ namespace Claunia.PropertyList
|
||||
}
|
||||
else
|
||||
{
|
||||
bool isTrue = string.Equals(text, "true", StringComparison.InvariantCultureIgnoreCase) || string.Equals(text, "yes", StringComparison.InvariantCultureIgnoreCase);
|
||||
bool isFalse = string.Equals(text, "false", StringComparison.InvariantCultureIgnoreCase) || string.Equals(text, "no", StringComparison.InvariantCultureIgnoreCase);
|
||||
bool isTrue = string.Equals(text, "true", StringComparison.CurrentCultureIgnoreCase) || string.Equals(text, "yes", StringComparison.CurrentCultureIgnoreCase);
|
||||
bool isFalse = string.Equals(text, "false", StringComparison.CurrentCultureIgnoreCase) || string.Equals(text, "no", StringComparison.CurrentCultureIgnoreCase);
|
||||
|
||||
if (isTrue || isFalse)
|
||||
{
|
||||
|
||||
@@ -1,27 +0,0 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
// Information about this assembly is defined by the following attributes.
|
||||
// Change them to the values specific to your project.
|
||||
|
||||
[assembly: AssemblyTitle("plist-cil")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("Claunia.com")]
|
||||
[assembly: AssemblyProduct("")]
|
||||
[assembly: AssemblyCopyright("© Claunia.com")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}".
|
||||
// The form "{Major}.{Minor}.*" will automatically update the build and revision,
|
||||
// and "{Major}.{Minor}.{Build}.*" will update just the revision.
|
||||
|
||||
[assembly: AssemblyVersion("1.14.0.0")]
|
||||
|
||||
// The following attributes are used to specify the signing key for the assembly,
|
||||
// if desired. See the Mono documentation for more information about signing.
|
||||
|
||||
//[assembly: AssemblyDelaySign(false)]
|
||||
//[assembly: AssemblyKeyFile("")]
|
||||
|
||||
@@ -1,157 +1,64 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{5EA40CD5-CB98-4FD5-8628-3B399EACB38B}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<RootNamespace>Claunia.PropertyList</RootNamespace>
|
||||
<AssemblyName>plist-cil</AssemblyName>
|
||||
<ReleaseVersion>1.14</ReleaseVersion>
|
||||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||
<TargetFrameworkProfile />
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug</OutputPath>
|
||||
<DefineConstants>DEBUG;NET40</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<ConsolePause>false</ConsolePause>
|
||||
<Prefer32Bit>false</Prefer32Bit>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release</OutputPath>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<ConsolePause>false</ConsolePause>
|
||||
<DocumentationFile>bin\Release\plist-cil.xml</DocumentationFile>
|
||||
<CustomCommands>
|
||||
<CustomCommands>
|
||||
<Command type="AfterBuild" command="monodocer -pretty -importslashdoc:plist-cil.xml -assembly:plist-cil.dll -path:docs/mono" workingdir="${TargetDir}" />
|
||||
<Command type="AfterBuild" command="mdoc export-html -o docs/html docs/mono" workingdir="${TargetDir}" />
|
||||
<Command type="AfterBuild" command="zip -9r ${ProjectName}.zip ." workingdir="${TargetDir}" />
|
||||
<Command type="AfterBuild" command="cp README.md README.txt" workingdir="${TargetDir}" />
|
||||
<Command type="AfterBuild" command="cp ChangeLog ChangeLog.txt" workingdir="${TargetDir}" />
|
||||
<Command type="AfterBuild" command="cp LICENSE LICENSE.txt" workingdir="${TargetDir}" />
|
||||
<Command type="AfterBuild" command="nuget pack plist-cil.nuspec -Verbosity Detailed" workingdir="${ProjectDir}" />
|
||||
</CustomCommands>
|
||||
</CustomCommands>
|
||||
<Prefer32Bit>false</Prefer32Bit>
|
||||
<DefineConstants>NET40</DefineConstants>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<SignAssembly>true</SignAssembly>
|
||||
</PropertyGroup>
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>netcoreapp1.0;net40</TargetFrameworks>
|
||||
<Version>1.15</Version>
|
||||
<Authors>Natalia Portillo</Authors>
|
||||
<Company>Claunia.com</Company>
|
||||
<Description>MIT licensed C#/.NET parser and writer for Apple and GnuStep Property Lists, supporting ASCII, Binary and Xml formats, based on Java's dd-plist.</Description>
|
||||
<Copyright>© 2015-2017 Natalia Portillo</Copyright>
|
||||
<PackageLicenseUrl>https://raw.githubusercontent.com/claunia/plist-cil/master/LICENSE</PackageLicenseUrl>
|
||||
<PackageProjectUrl>http://www.github.com/claunia/plist-cil</PackageProjectUrl>
|
||||
<RepositoryUrl>http://www.github.com/claunia/plist-cil</RepositoryUrl>
|
||||
<RepositoryType>git</RepositoryType>
|
||||
<PackageTags>apple propertylist property list gnustep plist</PackageTags>
|
||||
<PackageReleaseNotes>Ported to .NET Core</PackageReleaseNotes>
|
||||
<NeutralLanguage>en-US</NeutralLanguage>
|
||||
<SignAssembly>True</SignAssembly>
|
||||
<AssemblyOriginatorKeyFile>plist-cil.snk</AssemblyOriginatorKeyFile>
|
||||
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
|
||||
<PackageRequireLicenseAcceptance>True</PackageRequireLicenseAcceptance>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Numerics" />
|
||||
<Reference Include="System.Xml" />
|
||||
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
|
||||
<DefineConstants>TRACE;RELEASE</DefineConstants>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
|
||||
<DefineConstants>TRACE;DEBUG</DefineConstants>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition="'$(TargetFramework)' == 'netcoreapp1.0'">
|
||||
<DefineConstants>NETCOREAPP1_0;NETCORE</DefineConstants>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|netcoreapp1.0|AnyCPU'">
|
||||
<DocumentationFile>bin\Release\netcoreapp1.0\plist-cil.xml</DocumentationFile>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net40|AnyCPU'">
|
||||
<DocumentationFile>bin\Release\net40\plist-cil.xml</DocumentationFile>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup Condition="'$(TargetFramework)' == 'netcoreapp1.0'">
|
||||
<PackageReference Include="System.Reflection" Version="4.3.0" />
|
||||
<PackageReference Include="System.Runtime.Serialization.Formatters" Version="4.3.0" />
|
||||
<PackageReference Include="System.Xml.XmlDocument" Version="4.3.0" />
|
||||
<PackageReference Include="System.Xml.XmlSerializer" Version="4.3.0" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="NSObject.cs" />
|
||||
<Compile Include="NSNumber.cs" />
|
||||
<Compile Include="NSString.cs" />
|
||||
<Compile Include="NSSet.cs" />
|
||||
<Compile Include="PropertyListException.cs" />
|
||||
<Compile Include="UID.cs" />
|
||||
<Compile Include="NSDate.cs" />
|
||||
<Compile Include="NSArray.cs" />
|
||||
<Compile Include="NSData.cs" />
|
||||
<Compile Include="NSDictionary.cs" />
|
||||
<Compile Include="PropertyListFormatException.cs" />
|
||||
<Compile Include="PropertyListParser.cs" />
|
||||
<Compile Include="ASCIIPropertyListParser.cs" />
|
||||
<Compile Include="BinaryPropertyListParser.cs" />
|
||||
<Compile Include="BinaryPropertyListWriter.cs" />
|
||||
<Compile Include="XmlPropertyListParser.cs" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
<ProjectExtensions>
|
||||
<MonoDevelop>
|
||||
<Properties>
|
||||
<Policies>
|
||||
<NameConventionPolicy>
|
||||
<Rules>
|
||||
<NamingRule Name="Namespaces" AffectedEntity="Namespace" VisibilityMask="VisibilityMask" NamingStyle="PascalCase" IncludeInstanceMembers="True" IncludeStaticEntities="True" />
|
||||
<NamingRule Name="Types" AffectedEntity="Class, Struct, Enum, Delegate" VisibilityMask="VisibilityMask" NamingStyle="PascalCase" IncludeInstanceMembers="True" IncludeStaticEntities="True" />
|
||||
<NamingRule Name="Interfaces" AffectedEntity="Interface" VisibilityMask="VisibilityMask" NamingStyle="PascalCase" IncludeInstanceMembers="True" IncludeStaticEntities="True">
|
||||
<RequiredPrefixes>
|
||||
<String>I</String>
|
||||
</RequiredPrefixes>
|
||||
</NamingRule>
|
||||
<NamingRule Name="Attributes" AffectedEntity="CustomAttributes" VisibilityMask="VisibilityMask" NamingStyle="PascalCase" IncludeInstanceMembers="True" IncludeStaticEntities="True">
|
||||
<RequiredSuffixes>
|
||||
<String>Attribute</String>
|
||||
</RequiredSuffixes>
|
||||
</NamingRule>
|
||||
<NamingRule Name="Event Arguments" AffectedEntity="CustomEventArgs" VisibilityMask="VisibilityMask" NamingStyle="PascalCase" IncludeInstanceMembers="True" IncludeStaticEntities="True">
|
||||
<RequiredSuffixes>
|
||||
<String>EventArgs</String>
|
||||
</RequiredSuffixes>
|
||||
</NamingRule>
|
||||
<NamingRule Name="Exceptions" AffectedEntity="CustomExceptions" VisibilityMask="VisibilityMask" NamingStyle="PascalCase" IncludeInstanceMembers="True" IncludeStaticEntities="True">
|
||||
<RequiredSuffixes>
|
||||
<String>Exception</String>
|
||||
</RequiredSuffixes>
|
||||
</NamingRule>
|
||||
<NamingRule Name="Methods" AffectedEntity="Methods" VisibilityMask="VisibilityMask" NamingStyle="PascalCase" IncludeInstanceMembers="True" IncludeStaticEntities="True" />
|
||||
<NamingRule Name="Static Readonly Fields" AffectedEntity="ReadonlyField" VisibilityMask="Internal, Protected, Public" NamingStyle="PascalCase" IncludeInstanceMembers="False" IncludeStaticEntities="True" />
|
||||
<NamingRule Name="Fields (Non Private)" AffectedEntity="Field" VisibilityMask="Internal, Protected, Public" NamingStyle="PascalCase" IncludeInstanceMembers="True" IncludeStaticEntities="True" />
|
||||
<NamingRule Name="ReadOnly Fields (Non Private)" AffectedEntity="ReadonlyField" VisibilityMask="Internal, Protected, Public" NamingStyle="PascalCase" IncludeInstanceMembers="True" IncludeStaticEntities="False" />
|
||||
<NamingRule Name="Fields (Private)" AffectedEntity="Field, ReadonlyField" VisibilityMask="Private" NamingStyle="CamelCase" IncludeInstanceMembers="True" IncludeStaticEntities="False">
|
||||
<AllowedPrefixes>
|
||||
<String>_</String>
|
||||
<String>m_</String>
|
||||
</AllowedPrefixes>
|
||||
</NamingRule>
|
||||
<NamingRule Name="Static Fields (Private)" AffectedEntity="Field" VisibilityMask="Private" NamingStyle="CamelCase" IncludeInstanceMembers="False" IncludeStaticEntities="True" />
|
||||
<NamingRule Name="ReadOnly Fields (Private)" AffectedEntity="ReadonlyField" VisibilityMask="Private" NamingStyle="CamelCase" IncludeInstanceMembers="True" IncludeStaticEntities="False">
|
||||
<AllowedPrefixes>
|
||||
<String>_</String>
|
||||
<String>m_</String>
|
||||
</AllowedPrefixes>
|
||||
</NamingRule>
|
||||
<NamingRule Name="Constant Fields" AffectedEntity="ConstantField" VisibilityMask="VisibilityMask" NamingStyle="PascalCase" IncludeInstanceMembers="True" IncludeStaticEntities="True" />
|
||||
<NamingRule Name="Properties" AffectedEntity="Property" VisibilityMask="VisibilityMask" NamingStyle="PascalCase" IncludeInstanceMembers="True" IncludeStaticEntities="True" />
|
||||
<NamingRule Name="Events" AffectedEntity="Event" VisibilityMask="VisibilityMask" NamingStyle="PascalCase" IncludeInstanceMembers="True" IncludeStaticEntities="True" />
|
||||
<NamingRule Name="Enum Members" AffectedEntity="EnumMember" VisibilityMask="VisibilityMask" NamingStyle="PascalCase" IncludeInstanceMembers="True" IncludeStaticEntities="True" />
|
||||
<NamingRule Name="Parameters" AffectedEntity="Parameter" VisibilityMask="VisibilityMask" NamingStyle="CamelCase" IncludeInstanceMembers="True" IncludeStaticEntities="True" />
|
||||
<NamingRule Name="Type Parameters" AffectedEntity="TypeParameter" VisibilityMask="VisibilityMask" NamingStyle="PascalCase" IncludeInstanceMembers="True" IncludeStaticEntities="True">
|
||||
<RequiredPrefixes>
|
||||
<String>T</String>
|
||||
</RequiredPrefixes>
|
||||
</NamingRule>
|
||||
</Rules>
|
||||
</NameConventionPolicy>
|
||||
</Policies>
|
||||
</Properties>
|
||||
</MonoDevelop>
|
||||
</ProjectExtensions>
|
||||
|
||||
<ItemGroup>
|
||||
<None Include="..\LICENSE">
|
||||
<Link>LICENSE</Link>
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
<Gettext-ScanForTranslations>False</Gettext-ScanForTranslations>
|
||||
</None>
|
||||
<None Include="..\README.md">
|
||||
<Link>README.md</Link>
|
||||
<Link>README.txt</Link>
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
<Gettext-ScanForTranslations>False</Gettext-ScanForTranslations>
|
||||
</None>
|
||||
<None Include="ChangeLog">
|
||||
<Gettext-ScanForTranslations>False</Gettext-ScanForTranslations>
|
||||
<Link>ChangeLog.txt</Link>
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
<Compile Include="NSArray.IList.cs" />
|
||||
<None Include="plist-cil.nuspec" />
|
||||
<None Include="plist-cil.snk" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -2,7 +2,7 @@
|
||||
<package>
|
||||
<metadata>
|
||||
<id>plist-cil</id>
|
||||
<version>1.14</version>
|
||||
<version>1.15</version>
|
||||
<title>plist-cil</title>
|
||||
<authors>Natalia Portillo</authors>
|
||||
<owners>Natalia Portillo</owners>
|
||||
@@ -20,7 +20,7 @@
|
||||
<file src="bin/Release/ChangeLog.txt" target="content\docs"/>
|
||||
<file src="bin/Release/LICENSE.txt" target="content\docs"/>
|
||||
<file src="bin/Release/*.xml" target="lib"/>
|
||||
<file src="bin/Release/README.txt" target="content\docs"/>
|
||||
<file src="bin/Release/README.md" target="content\docs"/>
|
||||
<file src="bin/Release/docs/**/*.*" target="content\docs"/>
|
||||
</files>
|
||||
</package>
|
||||
Reference in New Issue
Block a user