Skip to content

Commit

Permalink
Merge 39990c7 into 0da1f76
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike-E-angelo authored Nov 3, 2021
2 parents 0da1f76 + 39990c7 commit 43d3d70
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 43 deletions.
36 changes: 18 additions & 18 deletions .build/appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ skip_tags: true
skip_non_tags: true
skip_commits:
author: /Automation Agent/

only_commits:
files:
- '*.sln'
Expand Down Expand Up @@ -45,29 +45,29 @@ for:
branches:
only:
- master

install:
- ps: . .\.build\Install.ps1

build_script:
- ps: |
Exec { & dotnet build $env:BUILD_SOLUTION_PATH -c Release }
Exec { & dotnet pack $env:BUILD_SOLUTION_PATH -c Release }
notifications:
- provider: GitHubPullRequest
template: |
{{#passed}}:white_check_mark:{{/passed}}{{#failed}}:x:{{/failed}} [Build {{&projectName}} {{buildVersion}} {{status}}]({{buildUrl}}) (commit {{commitUrl}} by @{{&commitAuthorUsername}})
{{#passed}}
Install it by running the following command in [Package Manager Console](https://docs.microsoft.com/en-us/nuget/consume-packages/install-use-packages-powershell):
```
Install-Package ExtendedXmlSerializer -Version {{buildVersion}} -Source https://ci.appveyor.com/nuget/extendedxmlserializer-preview
```
Problems with the above command? You may be running into this known issue here:
https://github.com/NuGet/Home/issues/7189
https://github.com/NuGet/Home/issues/7189
{{/passed}}
on_build_success: true

Expand All @@ -77,7 +77,7 @@ for:
nuget:
project_feed: true
disable_publish_on_pr: false

artifacts:
- path: src\**\*.nupkg
name: 'Preview Package $(APPVEYOR_BUILD_VERSION)'
Expand All @@ -87,47 +87,47 @@ for:
branches:
only:
- /debug\/\w*/

cache:
- '%USERPROFILE%\.ssh\known_hosts'

install:
- ps: . .\.build\Install.ps1
- ps: .\.build\Prepare-Deployment.ps1

build_script:
- ps: Exec { & dotnet pack $env:BUILD_SOLUTION_PATH -c Release }
- ps: Exec { & docfx $env:BUILD_DOCUMENTATION_PATH }

test: off

on_success:
- ps: .\.build\Deploy-Documentation.ps1
- ps: .\.build\Deploy-Documentation.ps1


- # Deploy
branches:
only:
- /\d*\.\d*\.\d*/

init:
- ps: |
if (!$env:APPVEYOR_FORCED_BUILD)
{
throw "This configuration should only be called from external workflows."
}
cache:
- '%USERPROFILE%\.ssh\known_hosts'

install:
- ps: . .\.build\Install.ps1
- ps: .\.build\Prepare-Deployment.ps1

build_script:
- ps: Exec { & dotnet pack $env:BUILD_SOLUTION_PATH -c Release }
- ps: Exec { & docfx $env:BUILD_DOCUMENTATION_PATH }

test: off

before_deploy:
Expand All @@ -152,4 +152,4 @@ for:
api_key:
secure: aLRTBBLmLj8KeKfmmRz6dToGICG9f96goueVi/osE4B3Oz5ZXP3w8TBfqOi9tp/c
on_success:
- ps: .\.build\Deploy-Documentation.ps1
- ps: .\.build\Deploy-Documentation.ps1
4 changes: 2 additions & 2 deletions ExtendedXmlSerializer.sln
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.29503.13
# Visual Studio Version 17
VisualStudioVersion = 17.0.31825.309
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{2859812B-6D27-4A85-AC4A-8D3A55D9E3CD}"
ProjectSection(SolutionItems) = preProject
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>netcoreapp2.1;net462</TargetFrameworks>
<TargetFrameworks>netcoreapp3.1;net471</TargetFrameworks>
<AssemblyName>ExtendedXmlSerializer.Samples</AssemblyName>
<OutputType>Exe</OutputType>
<PackageId>ExtendedXmlSerializer.Samples</PackageId>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net462;netcoreapp2.1</TargetFrameworks>
<TargetFrameworks>net471;netcoreapp3.1</TargetFrameworks>
<AssemblyName>ExtendedXmlSerializer.Tests.Performance</AssemblyName>
<OutputType>Exe</OutputType>
<PackageId>ExtendedXmlSerializer.Tests.Performance</PackageId>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netcoreapp2.1;net471</TargetFrameworks>
<TargetFrameworks>netcoreapp3.1;net471</TargetFrameworks>
<LangVersion>9.0</LangVersion>
<Nullable>enable</Nullable>
<IsPackable>false</IsPackable>
Expand Down
41 changes: 21 additions & 20 deletions test/ExtendedXmlSerializer.Tests.ReportedIssues/Issue563Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,32 +4,33 @@
using System.Collections.Generic;
using Xunit;

namespace ExtendedXmlSerializer.Tests.ReportedIssues;

public sealed class Issue563Tests
namespace ExtendedXmlSerializer.Tests.ReportedIssues
{
[Fact]
public void Verify()
public sealed class Issue563Tests
{
var subject = new ConfigurationContainer().EnableReferences().Create().ForTesting();
var instance = new Subject();
subject.Cycle(instance).Should().BeEquivalentTo(instance);
}

sealed class Subject
{
public List<byte[]> ParentKey { get; set; } = new ();
public byte[] Id { get; set; }
[Fact]
public void Verify()
{
var subject = new ConfigurationContainer().EnableReferences().Create().ForTesting();
var instance = new Subject();
subject.Cycle(instance).Should().BeEquivalentTo(instance);
}

public List<byte[]> Key
sealed class Subject
{
get
public List<byte[]> ParentKey { get; set; } = new ();
public byte[] Id { get; set; }

public List<byte[]> Key
{
List<byte[]> result = new(ParentKey);
result.Add(Id);
return result;
get
{
List<byte[]> result = new(ParentKey);
result.Add(Id);
return result;
}
}
}

}

}

0 comments on commit 43d3d70

Please sign in to comment.