namespaces changed
This commit is contained in:
parent
785619aaab
commit
5f593123de
@ -1,56 +1,16 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<Product>Ben Core</Product>
|
||||
<Title>Ben.Demystifier</Title>
|
||||
<Description>High performance understanding for stack traces (Make error logs more productive)</Description>
|
||||
<Authors>Ben Adams</Authors>
|
||||
<RepositoryUrl>https://github.com/benaadams/Ben.Demystifier</RepositoryUrl>
|
||||
<PackageProjectUrl>https://github.com/benaadams/Ben.Demystifier</PackageProjectUrl>
|
||||
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
|
||||
<RepositoryType>git</RepositoryType>
|
||||
<IncludeSource>true</IncludeSource>
|
||||
<DebugType>embedded</DebugType>
|
||||
<PublishRepositoryUrl>true</PublishRepositoryUrl>
|
||||
<Nullable>enable</Nullable>
|
||||
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
|
||||
<EmbedUntrackedSources>true</EmbedUntrackedSources>
|
||||
<PackageReadmeFile>readme.md</PackageReadmeFile>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>netstandard2.1;netstandard2.0;net45;net6.0</TargetFrameworks>
|
||||
<SignAssembly>true</SignAssembly>
|
||||
<AssemblyOriginatorKeyFile>key.snk</AssemblyOriginatorKeyFile>
|
||||
<PackageIcon>icon.png</PackageIcon>
|
||||
<PackageIconUrl />
|
||||
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Nerdbank.GitVersioning" Version="3.4.244" PrivateAssets="all" />
|
||||
<PackageReference Include="SourceLink.Create.CommandLine" Version="2.8.3" PrivateAssets="all" />
|
||||
<PackageReference Include="System.Reflection.Metadata">
|
||||
<Version>5.0.0</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="System.Reflection.Metadata" Version="5.0.0" Condition="'$(TargetFramework)' != 'net6.0'"/>
|
||||
<PackageReference Include="System.Threading.Tasks.Extensions" Version="4.5.4" Condition="'$(TargetFramework)' != 'netstandard2.1'" />
|
||||
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.0" PrivateAssets="All" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup Label="TestInternalsVisibleTo">
|
||||
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleToAttribute">
|
||||
<_Parameter1>$(AssemblyName).Test, PublicKey=00240000048000009400000006020000002400005253413100040000010001005532489e147c0de0c5872048d20f7acf99d172a599d217950eba8fdbd1f98fa5ac47901b076d2bd7da8d436e6b5d6292694902e9748514bb0c3b17e6a0e0386f22447847c1c5cd9e034f79a8fe1c120a12785f7f79617414e63861cf13d6fd1cbb4211b87202c6a52c1e22962a6bd310413c37ca440fad14ab8422707517fbae</_Parameter1>
|
||||
</AssemblyAttribute>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<None Include="..\..\images\icon.png">
|
||||
<Pack>True</Pack>
|
||||
<PackagePath>\</PackagePath>
|
||||
</None>
|
||||
<None Include="..\..\readme.md">
|
||||
<Pack>True</Pack>
|
||||
<PackagePath>\</PackagePath>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
|
||||
using System.Reflection;
|
||||
|
||||
namespace System.Diagnostics
|
||||
namespace Ben.Demystifier
|
||||
{
|
||||
public class EnhancedStackFrame : StackFrame
|
||||
{
|
||||
|
||||
@ -3,10 +3,10 @@
|
||||
// Copyright (c) .NET Foundation. All rights reserved.
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Generic.Enumerable;
|
||||
using System.Diagnostics.Internal;
|
||||
global using System.Collections;
|
||||
global using System.Collections.Generic;
|
||||
using Ben.Demystifier.Enumerable;
|
||||
using Ben.Demystifier.Internal;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
@ -15,7 +15,7 @@ using System.Text;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace System.Diagnostics
|
||||
namespace Ben.Demystifier
|
||||
{
|
||||
public partial class EnhancedStackTrace
|
||||
{
|
||||
|
||||
@ -3,11 +3,11 @@
|
||||
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Generic.Enumerable;
|
||||
using Ben.Demystifier.Enumerable;
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
|
||||
namespace System.Diagnostics
|
||||
namespace Ben.Demystifier
|
||||
{
|
||||
public partial class EnhancedStackTrace : StackTrace, IEnumerable<EnhancedStackFrame>
|
||||
{
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
// Copyright (c) Ben A Adams. All rights reserved.
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
|
||||
namespace System.Collections.Generic.Enumerable
|
||||
namespace Ben.Demystifier.Enumerable
|
||||
{
|
||||
public static class EnumerableIList
|
||||
{
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
// Copyright (c) Ben A Adams. All rights reserved.
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
|
||||
namespace System.Collections.Generic.Enumerable
|
||||
namespace Ben.Demystifier.Enumerable
|
||||
{
|
||||
public struct EnumeratorIList<T> : IEnumerator<T>
|
||||
{
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
// Copyright (c) Ben A Adams. All rights reserved.
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
|
||||
namespace System.Collections.Generic.Enumerable
|
||||
namespace Ben.Demystifier.Enumerable
|
||||
{
|
||||
interface IEnumerableIList<T> : IEnumerable<T>
|
||||
{
|
||||
|
||||
@ -1,12 +1,15 @@
|
||||
// Copyright (c) Ben A Adams. All rights reserved.
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
|
||||
global using System.Diagnostics;
|
||||
global using System;
|
||||
using System.Diagnostics.Contracts;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Generic.Enumerable;
|
||||
using Ben.Demystifier.Enumerable;
|
||||
using System.Reflection;
|
||||
using System.Text;
|
||||
|
||||
namespace System.Diagnostics
|
||||
namespace Ben.Demystifier
|
||||
{
|
||||
public static class ExceptionExtensions
|
||||
{
|
||||
@ -56,7 +59,7 @@ namespace System.Diagnostics
|
||||
/// Unlike <see cref="Demystify{T}"/> this method is pure. It calls <see cref="Demystify{T}"/> first,
|
||||
/// computes a demystified string representation and then restores the original state of the exception back.
|
||||
/// </remarks>
|
||||
[Contracts.Pure]
|
||||
[Pure]
|
||||
public static string ToStringDemystified(this Exception exception)
|
||||
=> new StringBuilder().AppendDemystified(exception).ToString();
|
||||
}
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
using System.Reflection;
|
||||
using System.Reflection.Emit;
|
||||
|
||||
namespace System.Diagnostics.Internal
|
||||
namespace Ben.Demystifier.Internal
|
||||
{
|
||||
internal class ILReader
|
||||
{
|
||||
|
||||
@ -8,7 +8,7 @@ using System.Reflection.Metadata;
|
||||
using System.Reflection.Metadata.Ecma335;
|
||||
using System.Reflection.PortableExecutable;
|
||||
|
||||
namespace System.Diagnostics.Internal
|
||||
namespace Ben.Demystifier.Internal
|
||||
{
|
||||
// Adapted from https://github.com/aspnet/Common/blob/dev/shared/Microsoft.Extensions.StackTrace.Sources/StackFrame/PortablePdbReader.cs
|
||||
internal class PortablePdbReader : IDisposable
|
||||
|
||||
@ -5,7 +5,7 @@ using System.Collections.Generic;
|
||||
using System.Reflection;
|
||||
using System.Threading;
|
||||
|
||||
namespace System.Diagnostics.Internal
|
||||
namespace Ben.Demystifier.Internal
|
||||
{
|
||||
/// <summary>
|
||||
/// A helper class that contains utilities methods for dealing with reflection.
|
||||
|
||||
@ -1,11 +1,11 @@
|
||||
// Copyright (c) .NET Foundation. All rights reserved.
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
|
||||
using System.Collections.Generic.Enumerable;
|
||||
using Ben.Demystifier.Enumerable;
|
||||
using System.Reflection;
|
||||
using System.Text;
|
||||
|
||||
namespace System.Diagnostics
|
||||
namespace Ben.Demystifier
|
||||
{
|
||||
public class ResolvedMethod
|
||||
{
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
|
||||
using System.Text;
|
||||
|
||||
namespace System.Diagnostics
|
||||
namespace Ben.Demystifier
|
||||
{
|
||||
public class ResolvedParameter
|
||||
{
|
||||
|
||||
@ -1,10 +1,10 @@
|
||||
// Copyright (c) Ben A Adams. All rights reserved.
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
|
||||
using System.Collections.Generic.Enumerable;
|
||||
using Ben.Demystifier.Enumerable;
|
||||
using System.Text;
|
||||
|
||||
namespace System.Diagnostics
|
||||
namespace Ben.Demystifier
|
||||
{
|
||||
public static class StringBuilderExtentions
|
||||
{
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace System.Diagnostics
|
||||
namespace Ben.Demystifier
|
||||
{
|
||||
// Adapted from https://github.com/aspnet/Common/blob/dev/shared/Microsoft.Extensions.TypeNameHelper.Sources/TypeNameHelper.cs
|
||||
public static class TypeNameHelper
|
||||
|
||||
@ -2,10 +2,10 @@
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics.Internal;
|
||||
using Ben.Demystifier.Internal;
|
||||
using System.Text;
|
||||
|
||||
namespace System.Diagnostics
|
||||
namespace Ben.Demystifier
|
||||
{
|
||||
public class ValueTupleResolvedParameter : ResolvedParameter
|
||||
{
|
||||
|
||||
Binary file not shown.
Loading…
Reference in New Issue
Block a user