file_path stringlengths 3 280 | file_language stringclasses 66
values | content stringlengths 1 1.04M | repo_name stringlengths 5 92 | repo_stars int64 0 154k | repo_description stringlengths 0 402 | repo_primary_language stringclasses 108
values | developer_username stringlengths 1 25 | developer_name stringlengths 0 30 | developer_company stringlengths 0 82 |
|---|---|---|---|---|---|---|---|---|---|
test/Nerdbank.MessagePack.TUnit/NativeAOTTests.cs | C# | // Copyright (c) Andrew Arnott. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
public partial class NativeAOTTests
{
[Test]
public async Task FirstAOTTest()
{
Tree tree = new()
{
Fruits = [new Fruit(3), new Fruit(5)],
};
Message... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
test/Nerdbank.MessagePack.TUnit/Usings.cs | C# | // Copyright (c) Andrew Arnott. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
global using System.Buffers;
global using System.Collections.Immutable;
global using System.Diagnostics.CodeAnalysis;
global using System.IO.Pipelines;
global using... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
test/Nerdbank.MessagePack.Tests/ArchitectureRules.cs | C# | // Copyright (c) Andrew Arnott. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using NetArchTest.Rules;
public class ArchitectureRules
{
/// <summary>
/// Verifies that all optional converters are exposed via <see cref="OptionalConverters"... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
test/Nerdbank.MessagePack.Tests/ArrayTypeShapeErrorTests.cs | C# | // Copyright (c) Andrew Arnott. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#pragma warning disable NBMsgPack051 // Suppress warnings about missing shape for array types in this test file, since we are testing the runtime behavior for such ... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
test/Nerdbank.MessagePack.Tests/ArraysOfPrimitivesTests.cs | C# | // Copyright (c) Andrew Arnott. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.Numerics;
using System.Reflection;
public partial class ArraysOfPrimitivesTests : MessagePackSerializerTestBase
{
#if NET
private static readonly Ra... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
test/Nerdbank.MessagePack.Tests/AssemblyLoadTests.cs | C# | // Copyright (c) Andrew Arnott. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#if NETFRAMEWORK
using System.Diagnostics;
using System.Runtime.CompilerServices;
using PolyType.ReflectionProvider;
public partial class AssemblyLoadTests
{
[F... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
test/Nerdbank.MessagePack.Tests/AsyncSerializationTests.cs | C# | // Copyright (c) Andrew Arnott. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
[Trait("AsyncSerialization", "true")]
public partial class AsyncSerializationTests : MessagePackSerializerTestBase
{
private static readonly ReadOnlyMemory<byte> ... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
test/Nerdbank.MessagePack.Tests/BuiltInConverterTests.cs | C# | // Copyright (c) Andrew Arnott. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.Drawing;
using System.Globalization;
using System.Numerics;
using System.Runtime.InteropServices;
using System.Text;
public partial class BuiltInConv... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
test/Nerdbank.MessagePack.Tests/ConvertToJsonTests.cs | C# | // Copyright (c) Andrew Arnott. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.Globalization;
using System.Numerics;
public partial class ConvertToJsonTests : MessagePackSerializerTestBase
{
[Fact]
public void Null() => this.A... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
test/Nerdbank.MessagePack.Tests/Converters/ExpandoObjectConverterTests.cs | C# | // Copyright (c) Andrew Arnott. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.Dynamic;
namespace Converters;
[Trait("dynamic", "true")]
public partial class ExpandoObjectConverterTests : MessagePackSerializerTestBase
{
public... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
test/Nerdbank.MessagePack.Tests/Converters/JsonDocumentConverterTests.cs | C# | // Copyright (c) Andrew Arnott. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.Text.Json;
namespace Converters;
public partial class JsonDocumentConverterTests : MessagePackSerializerTestBase
{
private const string Json = """
... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
test/Nerdbank.MessagePack.Tests/Converters/JsonElementConverterTests.cs | C# | // Copyright (c) Andrew Arnott. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.Text;
using System.Text.Json;
namespace Converters;
public partial class JsonElementConverterTests : MessagePackSerializerTestBase
{
private const ... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
test/Nerdbank.MessagePack.Tests/Converters/JsonNodeConverterTests.cs | C# | // Copyright (c) Andrew Arnott. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.Text.Json.Nodes;
namespace Converters;
public partial class JsonNodeConverterTests : MessagePackSerializerTestBase
{
public JsonNodeConverterTests(... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
test/Nerdbank.MessagePack.Tests/Converters/MessagePackValueConverterTests.cs | C# | // Copyright (c) Andrew Arnott. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace Converters;
public partial class MessagePackValueConverterTests : MessagePackSerializerTestBase
{
[Fact]
public void Null() => this.AssertRoundtrip(Me... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
test/Nerdbank.MessagePack.Tests/CustomConverterFactoryTests.cs | C# | // Copyright (c) Andrew Arnott. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.Reflection;
public partial class CustomConverterFactoryTests : MessagePackSerializerTestBase
{
[RpcMarshaled, GenerateShape]
internal partial inter... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
test/Nerdbank.MessagePack.Tests/CustomConverterTests.cs | C# | // Copyright (c) Andrew Arnott. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
[assembly: TypeShapeExtension(typeof(CustomConverterTests.GenericData<>), AssociatedTypes = [typeof(CustomConverterTests.GenericDataConverter2<>)])]
[assembly: Type... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
test/Nerdbank.MessagePack.Tests/CustomEnumerableTypes.cs | C# | // Copyright (c) Andrew Arnott. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
public partial class CustomEnumerableTypes : MessagePackSerializerTestBase
{
[Fact]
public void CustomListOfIntDerivedCollection()
{
ListOfInt list = new() { ... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
test/Nerdbank.MessagePack.Tests/DerivedTypeDuckTypingTests.cs | C# | // Copyright (c) Andrew Arnott. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#pragma warning disable DuckTyping // Experimental API
public partial class DerivedTypeDuckTypingTests : MessagePackSerializerTestBase
{
public DerivedTypeDuckTyp... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
test/Nerdbank.MessagePack.Tests/DerivedTypeMappingTests.cs | C# | // Copyright (c) Andrew Arnott. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
public partial class DerivedTypeMappingTests(ITestOutputHelper logger)
{
[Fact]
public void NonUniqueAliasesRejected_Integers()
{
DerivedShapeMapping<MyBase> ... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
test/Nerdbank.MessagePack.Tests/DerivedTypeTests.cs | C# | // Copyright (c) Andrew Arnott. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
public partial class DerivedTypeTests : MessagePackSerializerTestBase
{
[Theory, PairwiseData]
public async Task BaseType(bool async)
{
BaseClass value = new(... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
test/Nerdbank.MessagePack.Tests/DeserializeDefaultValueTests.cs | C# | // Copyright (c) Andrew Arnott. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
public partial class DeserializeDefaultValueTests : MessagePackSerializerTestBase
{
private static readonly ReadOnlySequence<byte> NullMessageMsgPackMap = CreateN... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
test/Nerdbank.MessagePack.Tests/DeserializePathTests.cs | C# | // Copyright (c) Andrew Arnott. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
public partial class DeserializePathTests : MessagePackSerializerTestBase
{
public enum TestEnum
{
Value1,
Value2,
Value3,
}
// Test deserializing the r... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
test/Nerdbank.MessagePack.Tests/DoubleAssignmentTests.cs | C# | // Copyright (c) Andrew Arnott. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
public partial class DoubleAssignmentTests : MessagePackSerializerTestBase
{
[Theory, PairwiseData]
public async Task MapNoArgState_Collision(bool async)
{
Se... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
test/Nerdbank.MessagePack.Tests/ExtensionTests.cs | C# | // Copyright (c) Andrew Arnott. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
public class ExtensionTests
{
private Extension ext1a = new(1, new byte[] { 1, 2, 3 });
private Extension ext1b = new(1, new byte[] { 1, 2, 3 });
private Extens... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
test/Nerdbank.MessagePack.Tests/FragmentedPipeReader.cs | C# | // Copyright (c) Andrew Arnott. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using Microsoft;
/// <summary>
/// A <see cref="PipeReader"/> that is pre-buffered yet will only part with its data in chunks.
/// </summary>
internal class Fragm... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
test/Nerdbank.MessagePack.Tests/IgnoreKeyAttributesTests.cs | C# | // Copyright (c) Andrew Arnott. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
[Trait("IgnoreKeyAttributes", "true")]
public partial class IgnoreKeyAttributesTests : MessagePackSerializerTestBase
{
[Fact]
public void ObjectWithKeyAttributesB... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
test/Nerdbank.MessagePack.Tests/InternedBuffersTests.cs | C# | // Copyright (c) Andrew Arnott. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using Microsoft;
public class InternedBuffersTests
{
private readonly InternedBuffer... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
test/Nerdbank.MessagePack.Tests/MessagePackAsyncReaderTests.cs | C# | // Copyright (c) Andrew Arnott. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
public class MessagePackAsyncReaderTests
{
[Fact]
public async Task BufferNextStructureAsync_IncompleteBuffer()
{
Sequence<byte> seq = new();
MessagePackWri... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
test/Nerdbank.MessagePack.Tests/MessagePackAsyncWriterTests.cs | C# | // Copyright (c) Andrew Arnott. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.Diagnostics.CodeAnalysis;
using System.IO.Pipelines;
public class MessagePackAsyncWriterTests
{
[Fact]
public void WriteVeryLargeData()
{
Messag... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
test/Nerdbank.MessagePack.Tests/MessagePackConverterAttributeTests.cs | C# | // Copyright (c) Andrew Arnott. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
public partial class MessagePackConverterAttributeTests : MessagePackSerializerTestBase
{
[MessagePackConverter(typeof(MyEnumConverter))]
public enum MyEnum
{
... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
test/Nerdbank.MessagePack.Tests/MessagePackNamingPolicyTests.cs | C# | // Copyright (c) Andrew Arnott. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
/// <summary>
/// Verifies property name transformation behaviors of <see cref="MessagePackNamingPolicy"/>.
/// </summary>
/// <remarks>
/// A lot of these test ca... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
test/Nerdbank.MessagePack.Tests/MessagePackReaderTests.ReadInt.cs | C# | // Copyright (c) Andrew Arnott. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
/* THIS (.cs) FILE IS GENERATED. DO NOT CHANGE IT.
* CHANGE THE .tt FILE INSTEAD. */
#pragma warning disable SA1121 // Use built-in type alias
using System.Nume... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
test/Nerdbank.MessagePack.Tests/MessagePackReaderTests.ReadString.cs | C# | // Copyright (c) Andrew Arnott. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
public partial class MessagePackReaderTests
{
[Fact]
public void ReadString_HandlesSingleSegment()
{
ReadOnlySequence<byte> seq = this.BuildSequence(new[]
{... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
test/Nerdbank.MessagePack.Tests/MessagePackReaderTests.cs | C# | // Copyright (c) Andrew Arnott. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.Text;
public partial class MessagePackReaderTests
{
private const sbyte ByteNegativeValue = -3;
private const byte BytePositiveValue = 3;
private ... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
test/Nerdbank.MessagePack.Tests/MessagePackSerializationExceptionTests.cs | C# | // Copyright (c) Andrew Arnott. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
public class MessagePackSerializationExceptionTests
{
[Fact]
public void Code_Default()
{
Assert.Equal(MessagePackSerializationException.ErrorCode.Unspecified... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
test/Nerdbank.MessagePack.Tests/MessagePackSerializerTestBase.cs | C# | // Copyright (c) Andrew Arnott. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.Text;
using System.Text.Json;
using System.Text.Json.Nodes;
using System.Text.RegularExpressions;
using Newtonsoft.Json.Linq;
using Newtonsoft.Json.Sc... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
test/Nerdbank.MessagePack.Tests/MessagePackSerializerTests.cs | C# | // Copyright (c) Andrew Arnott. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.Collections;
using Xunit.Sdk;
public partial class MessagePackSerializerTests : MessagePackSerializerTestBase
{
public enum SomeEnum
{
A,
B,
C... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
test/Nerdbank.MessagePack.Tests/MessagePackStreamingReaderTests.cs | C# | // Copyright (c) Andrew Arnott. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.Text;
using DecodeResult = Nerdbank.MessagePack.MessagePackPrimitives.DecodeResult;
public class MessagePackStreamingReaderTests(ITestOutputHelper lo... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
test/Nerdbank.MessagePack.Tests/MessagePackStringTests.cs | C# | // Copyright (c) Andrew Arnott. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
public partial class MessagePackStringTests
{
private static readonly MessagePackSerializer Serializer = new();
[Fact]
public void CtorAndProperties()
{
Mes... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
test/Nerdbank.MessagePack.Tests/MessagePackValueTests.cs | C# | // Copyright (c) Andrew Arnott. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.Collections.Frozen;
using System.Runtime.CompilerServices;
public class MessagePackValueTests
{
[Fact]
public void StructSize()
{
// This test i... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
test/Nerdbank.MessagePack.Tests/MessagePackWriterExtensions.cs | C# | // Copyright (c) Andrew Arnott. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.Text;
internal static class MessagePackWriterExtensions
{
internal static void WriteByte(ref this MessagePackWriter writer, byte value) => writer.Wr... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
test/Nerdbank.MessagePack.Tests/MessagePackWriterTests.cs | C# | // Copyright (c) Andrew Arnott. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.Globalization;
using System.Text;
public class MessagePackWriterTests
{
private readonly ITestOutputHelper logger;
public MessagePackWriterTests(I... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
test/Nerdbank.MessagePack.Tests/MultipleTypeShapeProvidersTests.cs | C# | // Copyright (c) Andrew Arnott. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using PolyType.ReflectionProvider;
using PolyType.Utilities;
namespace Nerdbank.MessagePack.Tests;
/// <summary>
/// Verifies various scenarios in which type sha... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
test/Nerdbank.MessagePack.Tests/NamingPolicyApplicationTests.cs | C# | // Copyright (c) Andrew Arnott. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
public partial class NamingPolicyApplicationTests : MessagePackSerializerTestBase
{
public NamingPolicyApplicationTests()
{
this.Serializer = this.Serializer w... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
test/Nerdbank.MessagePack.Tests/ObjectsAsArraysTests.cs | C# | // Copyright (c) Andrew Arnott. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
public partial class ObjectsAsArraysTests : MessagePackSerializerTestBase
{
[Theory, PairwiseData]
public async Task Person_Roundtrip(bool async)
{
var person... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
test/Nerdbank.MessagePack.Tests/ObjectsAsMapTests.cs | C# | // Copyright (c) Andrew Arnott. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.ComponentModel;
public partial class ObjectsAsMapTests : MessagePackSerializerTestBase
{
[Fact]
public void PropertyWithAlteredName()
{
Person p... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
test/Nerdbank.MessagePack.Tests/OddShapeTests.cs | C# | // Copyright (c) Andrew Arnott. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
public partial class OddShapeTests : MessagePackSerializerTestBase
{
/// <summary>
/// Verifies that serializing an object with mismatched constructor parameters... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
test/Nerdbank.MessagePack.Tests/OptionalConvertersTests.cs | C# | // Copyright (c) Andrew Arnott. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
public partial class OptionalConvertersTests : MessagePackSerializerTestBase
{
[Fact]
public void NullCheck()
{
Assert.Throws<ArgumentNullException>("serializ... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
test/Nerdbank.MessagePack.Tests/PerfOverSchemaStabilityTests.cs | C# | // Copyright (c) Andrew Arnott. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
[Trait("PerfOverSchemaStability", "true")]
public partial class PerfOverSchemaStabilityTests : MessagePackSerializerTestBase
{
public PerfOverSchemaStabilityTests... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
test/Nerdbank.MessagePack.Tests/PrimitivesDerializationTests.cs | C# | // Copyright (c) Andrew Arnott. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.Collections;
using System.Numerics;
public partial class PrimitivesDerializationTests : MessagePackSerializerTestBase
{
#if NET
protected static rea... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
test/Nerdbank.MessagePack.Tests/PrimitivesDynamicDeserializationTests.cs | C# | // Copyright (c) Andrew Arnott. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.Collections;
using Microsoft.CSharp.RuntimeBinder;
[Trait("dynamic", "true")]
public partial class PrimitivesDynamicDeserializationTests : Primitives... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
test/Nerdbank.MessagePack.Tests/RawMessagePackTests.cs | C# | // Copyright (c) Andrew Arnott. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
public partial class RawMessagePackTests : MessagePackSerializerTestBase
{
[Fact]
public void DefaultCtor()
{
RawMessagePack raw = default;
Assert.True(raw.... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
test/Nerdbank.MessagePack.Tests/ReferencePreservationTests.cs | C# | // Copyright (c) Andrew Arnott. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#pragma warning disable NBMsgPack051 // This test multi-targets
[Trait("ReferencePreservation", "true")]
public partial class ReferencePreservationTests : Message... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
test/Nerdbank.MessagePack.Tests/ReflectionShapeProviderTests.cs | C# | // Copyright (c) Andrew Arnott. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
public class ReflectionShapeProviderTests : MessagePackSerializerTestBase
{
[Fact]
public void SerializeUnshapedType()
{
Person person = new("Andrew", "Arnott... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
test/Nerdbank.MessagePack.Tests/SchemaTests.cs | C# | // Copyright (c) Andrew Arnott. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
// Uncomment the following #define when adding or modifying tests, or intentionally changing the output of the schema generator.
////#define RECORD
#if RECORD
#wa... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
test/Nerdbank.MessagePack.Tests/SecureKeyCollectionsTests.cs | C# | // Copyright (c) Andrew Arnott. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
public partial class SecureKeyCollectionsTests : MessagePackSerializerTestBase
{
[Fact]
public void CanSerializeDictionariesWithEmptyKeys_ButNotDeserialize()
{
... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
test/Nerdbank.MessagePack.Tests/SecurityTests.cs | C# | // Copyright (c) Andrew Arnott. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using static MessagePackSerializerTests;
public partial class SecurityTests : MessagePackSerializerTestBase
{
/// <summary>
/// Verifies that the serializer wil... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
test/Nerdbank.MessagePack.Tests/SerializationCallbackTests.cs | C# | // Copyright (c) Andrew Arnott. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
public partial class SerializationCallbackTests : MessagePackSerializerTestBase
{
private static readonly byte[] ObjectAsArrayMsgPack = new MessagePackSerializer(... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
test/Nerdbank.MessagePack.Tests/SerializationContextTests.cs | C# | // Copyright (c) Andrew Arnott. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#if !NET
#pragma warning disable CS1574 // unresolvable cref
#endif
public partial class SerializationContextTests
{
/// <summary>
/// Verifies that the <see cre... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
test/Nerdbank.MessagePack.Tests/SerializationRejectsFunctionsTests.cs | C# | // Copyright (c) Andrew Arnott. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
public partial class SerializationRejectsFunctionsTests : MessagePackSerializerTestBase
{
[Fact]
public void UnserializedDelegateTypesDoNotBreakSerialization()
... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
test/Nerdbank.MessagePack.Tests/SharedTestCases.cs | C# | // Copyright (c) Andrew Arnott. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using Microsoft;
using Microsoft.FSharp.Reflection;
using PolyType.Tests;
using Xunit.Sdk;
public class SharedTestCases : MessagePackSerializerTestBase
{
[Theory... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
test/Nerdbank.MessagePack.Tests/SharedTestTypes.cs | C# | // Copyright (c) Andrew Arnott. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
internal partial class SharedTestTypes
{
[GenerateShape]
public partial record RecordWith66RequiredProperties(
bool P1,
bool P2,
bool P3,
bool P4,
bool... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
test/Nerdbank.MessagePack.Tests/ShouldSerializeTests.cs | C# | // Copyright (c) Andrew Arnott. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.ComponentModel;
[Trait("ShouldSerialize", "true")]
public partial class ShouldSerializeTests : MessagePackSerializerTestBase
{
public ShouldSerializ... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
test/Nerdbank.MessagePack.Tests/StreamTests.cs | C# | // Copyright (c) Andrew Arnott. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
public partial class StreamTests : MessagePackSerializerTestBase
{
[Theory, PairwiseData]
public async Task SerializeWithStreamAsync(bool memoryStream)
{
Perso... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
test/Nerdbank.MessagePack.Tests/StreamingEnumerableTests.cs | C# | // Copyright (c) Andrew Arnott. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
[Trait("AsyncSerialization", "true")]
public partial class StreamingEnumerableTests : MessagePackSerializerTestBase
{
/// <summary>
/// Streams multiple elements... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
test/Nerdbank.MessagePack.Tests/StringInterningTests.cs | C# | // Copyright (c) Andrew Arnott. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
public partial class StringInterningTests : MessagePackSerializerTestBase
{
public StringInterningTests()
{
this.Serializer = this.Serializer with { InternStri... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
test/Nerdbank.MessagePack.Tests/StructuralEquality.cs | C# | // Copyright (c) Andrew Arnott. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
internal static class StructuralEquality
{
internal static bool Equal<TKey, TValue>(IReadOnlyDictionary<TKey, TValue>? left, IReadOnlyDictionary<TKey, TValue>? ri... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
test/Nerdbank.MessagePack.Tests/StructuralEqualityComparerTests.cs | C# | // Copyright (c) Andrew Arnott. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#if !NET
#pragma warning disable CS8604 // Possible null reference argument.
#pragma warning disable CS8767 // null ref annotations
#endif
using System.Numerics;
... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
test/Nerdbank.MessagePack.Tests/SurrogateTests.cs | C# | // Copyright (c) Andrew Arnott. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
[Trait("Surrogates", "true")]
public partial class SurrogateTests : MessagePackSerializerTestBase
{
[Fact]
public void NonNullReference()
{
OriginalType? dese... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
test/Nerdbank.MessagePack.Tests/TestConstants.cs | C# | // Copyright (c) Andrew Arnott. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.Text;
internal static class TestConstants
{
internal const string MultibyteCharString = "にほんごにほんごにほんごにほんごにほんご";
internal static readonly ReadOnlyM... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
test/Nerdbank.MessagePack.Tests/UseComparerTests.cs | C# | // Copyright (c) Andrew Arnott. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#pragma warning disable IDE0008 // Use explicit type
public partial class UseComparerTests : MessagePackSerializerTestBase
{
[Fact]
public void EqualityComparer... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
test/Nerdbank.MessagePack.Tests/Usings.cs | C# | // Copyright (c) Andrew Arnott. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
global using System.Buffers;
global using System.Collections.Immutable;
global using System.Diagnostics.CodeAnalysis;
global using System.IO.Pipelines;
global usin... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
test/Nerdbank.MessagePack.Tests/VersionSafeSerializationTests.cs | C# | // Copyright (c) Andrew Arnott. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
public partial class VersionSafeSerializationTests : MessagePackSerializerTestBase
{
[Theory, PairwiseData]
public async Task MapObject(bool async)
{
MapModel... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
tools/Build-Docfx.ps1 | PowerShell | #!/usr/bin/env pwsh
<#
.SYNOPSIS
Builds and optionally hosts the docfx site.
.PARAMETER Serve
A switch to serve the docfx site after building.
.PARAMETER WarningsAsErrors
A switch to treat warnings as errors during the build.
.PARAMETER DisableGitFeatures
A switch to disable Git features during the bui... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
tools/Check-DotNetRuntime.ps1 | PowerShell | <#
.SYNOPSIS
Checks whether a given .NET Core runtime is installed.
#>
[CmdletBinding()]
Param (
[Parameter()]
[ValidateSet('Microsoft.AspNetCore.App','Microsoft.NETCore.App')]
[string]$Runtime='Microsoft.NETCore.App',
[Parameter(Mandatory=$true)]
[Version]$Version
)
$dotnet = Get-Command dotne... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
tools/Check-DotNetSdk.ps1 | PowerShell | <#
.SYNOPSIS
Checks whether the .NET Core SDK required by this repo is installed.
#>
[CmdletBinding()]
Param (
)
$dotnet = Get-Command dotnet -ErrorAction SilentlyContinue
if (!$dotnet) {
# Nothing is installed.
Write-Output $false
exit 1
}
# We need to set the current directory so dotnet considers th... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
tools/Get-3rdPartySymbolFiles.ps1 | PowerShell | Function Get-FileFromWeb([Uri]$Uri, $OutFile) {
$OutDir = Split-Path $OutFile
if (!(Test-Path $OutFile)) {
Write-Verbose "Downloading $Uri..."
if (!(Test-Path $OutDir)) { New-Item -ItemType Directory -Path $OutDir | Out-Null }
try {
(New-Object System.Net.WebClient).DownloadF... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
tools/Get-ArtifactsStagingDirectory.ps1 | PowerShell | Param(
[switch]$CleanIfLocal
)
if ($env:BUILD_ARTIFACTSTAGINGDIRECTORY) {
$ArtifactStagingFolder = $env:BUILD_ARTIFACTSTAGINGDIRECTORY
} elseif ($env:RUNNER_TEMP) {
$ArtifactStagingFolder = Join-Path $env:RUNNER_TEMP _artifacts
} else {
$ArtifactStagingFolder = [System.IO.Path]::GetFullPath("$PSScriptRo... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
tools/Get-CodeCovTool.ps1 | PowerShell | <#
.SYNOPSIS
Downloads the CodeCov.io uploader tool and returns the path to it.
.PARAMETER AllowSkipVerify
Allows skipping signature verification of the downloaded tool if gpg is not installed.
#>
[CmdletBinding()]
Param(
[switch]$AllowSkipVerify
)
if ($IsMacOS) {
$codeCovUrl = "https://uploader.codeco... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
tools/Get-LibTemplateBasis.ps1 | PowerShell | <#
.SYNOPSIS
Returns the name of the well-known branch in the Library.Template repository upon which HEAD is based.
#>
[CmdletBinding(SupportsShouldProcess = $true)]
Param(
[switch]$ErrorIfNotRelated
)
# This list should be sorted in order of decreasing specificity.
$branchMarkers = @(
@{ commit = 'fd0a7b2... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
tools/Get-NuGetTool.ps1 | PowerShell | <#
.SYNOPSIS
Downloads the NuGet.exe tool and returns the path to it.
.PARAMETER NuGetVersion
The version of the NuGet tool to acquire.
#>
Param(
[Parameter()]
[string]$NuGetVersion='6.14.0'
)
$toolsPath = & "$PSScriptRoot\Get-TempToolsPath.ps1"
$binaryToolsPath = Join-Path $toolsPath $NuGetVersion
if ... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
tools/Get-ProcDump.ps1 | PowerShell | <#
.SYNOPSIS
Downloads 32-bit and 64-bit procdump executables and returns the path to where they were installed.
#>
$version = '0.0.1'
$baseDir = "$PSScriptRoot\..\obj\tools"
$procDumpToolPath = "$baseDir\procdump.$version\bin"
if (-not (Test-Path $procDumpToolPath)) {
if (-not (Test-Path $baseDir)) { New-Item -Typ... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
tools/Get-SymbolFiles.ps1 | PowerShell | <#
.SYNOPSIS
Collect the list of PDBs built in this repo.
.PARAMETER Path
The directory to recursively search for PDBs.
.PARAMETER Tests
A switch indicating to find PDBs only for test binaries instead of only for shipping shipping binaries.
#>
[CmdletBinding()]
param (
[parameter(Mandatory=$true)]
[... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
tools/Get-TempToolsPath.ps1 | PowerShell | if ($env:AGENT_TEMPDIRECTORY) {
$path = "$env:AGENT_TEMPDIRECTORY\$env:BUILD_BUILDID"
} elseif ($env:localappdata) {
$path = "$env:localappdata\gitrepos\tools"
} else {
$path = "$PSScriptRoot\..\obj\tools"
}
if (!(Test-Path $path)) {
New-Item -ItemType Directory -Path $Path | Out-Null
}
(Resolve-Path ... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
tools/Install-DotNetSdk.ps1 | PowerShell | #!/usr/bin/env pwsh
<#
.SYNOPSIS
Installs the .NET SDK specified in the global.json file at the root of this repository,
along with supporting .NET runtimes used for testing.
.DESCRIPTION
This MAY not require elevation, as the SDK and runtimes are installed locally to this repo location,
unless `-Insta... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
tools/Install-NuGetCredProvider.ps1 | PowerShell | #!/usr/bin/env pwsh
<#
.SYNOPSIS
Downloads and installs the Microsoft Artifacts Credential Provider
from https://github.com/microsoft/artifacts-credprovider
to assist in authenticating to Azure Artifact feeds in interactive development
or unattended build agents.
.PARAMETER Force
Forces install of ... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
tools/Install-NuGetPackage.ps1 | PowerShell | <#
.SYNOPSIS
Installs a NuGet package.
.PARAMETER PackageID
The Package ID to install.
.PARAMETER Version
The version of the package to install. If unspecified, the latest stable release is installed.
.PARAMETER Source
The package source feed to find the package to install from.
.PARAMETER Prerelease
... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
tools/MergeFrom-Template.ps1 | PowerShell |
<#
.SYNOPSIS
Merges the latest changes from Library.Template into HEAD of this repo.
.PARAMETER LocalBranch
The name of the local branch to create at HEAD and use to merge into from Library.Template.
#>
[CmdletBinding(SupportsShouldProcess = $true)]
Param(
[string]$LocalBranch = "dev/$($env:USERNAME)/libte... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
tools/Set-EnvVars.ps1 | PowerShell | <#
.SYNOPSIS
Set environment variables in the environment.
Azure Pipeline and CMD environments are considered.
.PARAMETER Variables
A hashtable of variables to be set.
.PARAMETER PrependPath
A set of paths to prepend to the PATH environment variable.
.OUTPUTS
A boolean indicating whether the environ... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
tools/artifacts/Variables.ps1 | PowerShell | # This artifact captures all variables defined in the ..\variables folder.
# It "snaps" the values of these variables where we can compute them during the build,
# and otherwise captures the scripts to run later during an Azure Pipelines environment release.
$RepoRoot = [System.IO.Path]::GetFullPath("$PSScriptRoot/../... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
tools/artifacts/_all.ps1 | PowerShell | #!/usr/bin/env pwsh
<#
.SYNOPSIS
This script returns all the artifacts that should be collected after a build.
Each powershell artifact is expressed as an object with these properties:
Source - the full path to the source file
ArtifactName - the name of the artifact to upload to
C... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
tools/artifacts/_stage_all.ps1 | PowerShell | <#
.SYNOPSIS
This script links all the artifacts described by _all.ps1
into a staging directory, reading for uploading to a cloud build artifact store.
It returns a sequence of objects with Name and Path properties.
#>
[CmdletBinding()]
param (
[string]$ArtifactNameSuffix,
[switch]$AvoidSymbolicLin... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
tools/artifacts/build_logs.ps1 | PowerShell | $ArtifactStagingFolder = & "$PSScriptRoot/../Get-ArtifactsStagingDirectory.ps1"
if (!(Test-Path $ArtifactStagingFolder/build_logs)) { return }
@{
"$ArtifactStagingFolder/build_logs" = (Get-ChildItem -Recurse "$ArtifactStagingFolder/build_logs")
}
| AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
tools/artifacts/coverageResults.ps1 | PowerShell | $RepoRoot = Resolve-Path "$PSScriptRoot\..\.."
$coverageFilesUnderRoot = @(Get-ChildItem "$RepoRoot/*.cobertura.xml" -Recurse | Where-Object {$_.FullName -notlike "*/In/*" -and $_.FullName -notlike "*\In\*" })
# Under MTP, coverage files are written directly to the artifacts output directory,
# so we need to look th... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
tools/artifacts/deployables.ps1 | PowerShell | $RepoRoot = [System.IO.Path]::GetFullPath("$PSScriptRoot\..\..")
$BuildConfiguration = $env:BUILDCONFIGURATION
if (!$BuildConfiguration) {
$BuildConfiguration = 'Debug'
}
$PackagesRoot = "$RepoRoot/bin/Packages/$BuildConfiguration"
if (!(Test-Path $PackagesRoot)) { return }
@{
"$PackagesRoot" = (Get-ChildIt... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
tools/artifacts/projectAssetsJson.ps1 | PowerShell | $ObjRoot = [System.IO.Path]::GetFullPath("$PSScriptRoot\..\..\obj")
if (!(Test-Path $ObjRoot)) { return }
@{
"$ObjRoot" = (
(Get-ChildItem "$ObjRoot\project.assets.json" -Recurse)
);
}
| AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
tools/artifacts/symbols.ps1 | PowerShell | $BinPath = [System.IO.Path]::GetFullPath("$PSScriptRoot/../../bin")
$3rdPartyPath = [System.IO.Path]::GetFullPath("$PSScriptRoot/../../obj/SymbolsPackages")
if (!(Test-Path $BinPath)) { return }
$symbolfiles = & "$PSScriptRoot/../Get-SymbolFiles.ps1" -Path $BinPath | Get-Unique
$3rdPartyFiles = & "$PSScriptRoot/../Get-... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
tools/artifacts/testResults.ps1 | PowerShell | [CmdletBinding()]
Param(
)
$result = @{}
$RepoRoot = Resolve-Path "$PSScriptRoot\..\.."
$testRoot = Join-Path $RepoRoot test
$result[$testRoot] = (Get-ChildItem "$testRoot\TestResults" -Recurse -Directory | Get-ChildItem -Recurse -File)
$artifactStaging = & "$PSScriptRoot/../Get-ArtifactsStagingDirectory.ps1"
$testl... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
tools/artifacts/test_symbols.ps1 | PowerShell | $BinPath = [System.IO.Path]::GetFullPath("$PSScriptRoot/../../bin")
if (!(Test-Path $BinPath)) { return }
$symbolfiles = & "$PSScriptRoot/../Get-SymbolFiles.ps1" -Path $BinPath -Tests | Get-Unique
@{
"$BinPath" = $SymbolFiles;
}
| AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
tools/dotnet-test-cloud.ps1 | PowerShell | #!/usr/bin/env pwsh
<#
.SYNOPSIS
Runs tests as they are run in cloud test runs.
.PARAMETER Configuration
The configuration within which to run tests.
.PARAMETER IncludeNativeAOT
Whether to run the NativeAOT-compiled tests too.
.PARAMETER Agent
The name of the agent. This is used in preparing test run t... | AArnott/Nerdbank.MessagePack | 144 | A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#] | C# | AArnott | Andrew Arnott | Microsoft |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.