Compare commits
10 Commits
d4b3c869bb
...
8966d5c501
| Author | SHA1 | Date | |
|---|---|---|---|
| 8966d5c501 | |||
| 9efd9f0046 | |||
| a35e7630ca | |||
| 9eaa322ae8 | |||
| 59de4eada9 | |||
| cfd755cd8c | |||
| ff33fe5395 | |||
| 45c48c408e | |||
| 5d80b18be6 | |||
| 76318a6ba4 |
@ -1,29 +1,28 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<!--package info-->
|
||||
<PackageId>DTLib.Ben.Demystifier</PackageId>
|
||||
<Version>1.0.2</Version>
|
||||
<Authors>Timerix</Authors>
|
||||
<Description>netstandard2.0 fork of Ben.Demystifier</Description>
|
||||
<PackageId>DTLib.Demystifier</PackageId>
|
||||
<Version>1.1.0</Version>
|
||||
<Description>netstandard fork of Ben.Demystifier</Description>
|
||||
<RepositoryType>GIT</RepositoryType>
|
||||
<RepositoryUrl>https://github.com/Timerix22/DTLib.Ben.Demystifier</RepositoryUrl>
|
||||
<PackageProjectUrl>https://github.com/Timerix22/DTLib.Ben.Demystifier</PackageProjectUrl>
|
||||
<RepositoryUrl>https://timerix.ddns.net:3322/Timerix/DTLib.Demystifier</RepositoryUrl>
|
||||
<PackageProjectUrl>https://timerix.ddns.net:3322/Timerix/DTLib.Demystifier</PackageProjectUrl>
|
||||
<Configuration>Release</Configuration>
|
||||
<PackageLicenseExpression>MIT</PackageLicenseExpression>
|
||||
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
|
||||
<!--compilation properties-->
|
||||
<TargetFrameworks>net6.0;netstandard2.0;net48</TargetFrameworks>
|
||||
<DebugType>embedded</DebugType>
|
||||
<TargetFrameworks>netstandard2.0;netstandard2.1</TargetFrameworks>
|
||||
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
|
||||
<!--language features-->
|
||||
<LangVersion>10</LangVersion>
|
||||
<LangVersion>12</LangVersion>
|
||||
<Nullable>enable</Nullable>
|
||||
<ImplicitUsings>disable</ImplicitUsings>
|
||||
<RootNamespace>DTLib.Demystifier</RootNamespace>
|
||||
</PropertyGroup>
|
||||
|
||||
<!--external dependencies-->
|
||||
<ItemGroup >
|
||||
<PackageReference Include="System.Reflection.Metadata" Version="7.0.0" Condition="'$(TargetFramework)' != 'net6.0'" />
|
||||
<PackageReference Include="System.Threading.Tasks.Extensions" Version="4.5.4" Condition="'$(TargetFramework)' != 'netstandard2.1'" />
|
||||
<PackageReference Include="System.Reflection.Metadata" Version="8.0.0" />
|
||||
<PackageReference Include="System.Threading.Tasks.Extensions" Version="4.5.4" />
|
||||
</ItemGroup>
|
||||
|
||||
<!--copy pdb files from nuget packages to publish directory-->
|
||||
@ -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 DTLib.Ben.Demystifier;
|
||||
namespace DTLib.Demystifier;
|
||||
|
||||
public class EnhancedStackFrame : StackFrame
|
||||
{
|
||||
|
||||
@ -8,10 +8,10 @@ using System.Runtime.CompilerServices;
|
||||
using System.Runtime.ExceptionServices;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using DTLib.Ben.Demystifier.Enumerable;
|
||||
using DTLib.Ben.Demystifier.Internal;
|
||||
using DTLib.Demystifier.Enumerable;
|
||||
using DTLib.Demystifier.Internal;
|
||||
|
||||
namespace DTLib.Ben.Demystifier
|
||||
namespace DTLib.Demystifier
|
||||
{
|
||||
public partial class EnhancedStackTrace
|
||||
{
|
||||
@ -425,7 +425,7 @@ namespace DTLib.Ben.Demystifier
|
||||
}
|
||||
catch
|
||||
{
|
||||
// https://github.com/benaadams/Ben.Demystifier/issues/32
|
||||
// https://github.com/benaadams/Demystifier/issues/32
|
||||
// Skip methods where il can't be interpreted
|
||||
}
|
||||
}
|
||||
|
||||
@ -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 DTLib.Ben.Demystifier;
|
||||
namespace DTLib.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 DTLib.Ben.Demystifier.Enumerable;
|
||||
namespace DTLib.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 DTLib.Ben.Demystifier.Enumerable;
|
||||
namespace DTLib.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 DTLib.Ben.Demystifier.Enumerable;
|
||||
namespace DTLib.Demystifier.Enumerable;
|
||||
|
||||
internal interface IEnumerableIList<T> : IEnumerable<T>
|
||||
{
|
||||
|
||||
@ -9,9 +9,9 @@ global using System.Diagnostics;
|
||||
global using System.Reflection;
|
||||
global using System.Linq;
|
||||
using System.Diagnostics.Contracts;
|
||||
using DTLib.Ben.Demystifier.Enumerable;
|
||||
using DTLib.Demystifier.Enumerable;
|
||||
|
||||
namespace DTLib.Ben.Demystifier;
|
||||
namespace DTLib.Demystifier;
|
||||
|
||||
public static class ExceptionExtensions
|
||||
{
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
using System.Reflection.Emit;
|
||||
|
||||
namespace DTLib.Ben.Demystifier.Internal;
|
||||
namespace DTLib.Demystifier.Internal;
|
||||
|
||||
internal class ILReader
|
||||
{
|
||||
|
||||
@ -6,7 +6,7 @@ using System.Reflection.Metadata;
|
||||
using System.Reflection.Metadata.Ecma335;
|
||||
using System.Reflection.PortableExecutable;
|
||||
|
||||
namespace DTLib.Ben.Demystifier.Internal;
|
||||
namespace DTLib.Demystifier.Internal;
|
||||
|
||||
// Adapted from https://github.com/aspnet/Common/blob/dev/shared/Microsoft.Extensions.StackTrace.Sources/StackFrame/PortablePdbReader.cs
|
||||
internal class PortablePdbReader : IDisposable
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
|
||||
using System.Threading;
|
||||
|
||||
namespace DTLib.Ben.Demystifier.Internal;
|
||||
namespace DTLib.Demystifier.Internal;
|
||||
|
||||
/// <summary>
|
||||
/// A helper class that contains utilities methods for dealing with reflection.
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
# Ben.Demystifier
|
||||
[](https://www.nuget.org/packages/Ben.Demystifier/)
|
||||
[](https://github.com/benaadams/Ben.Demystifier/actions)
|
||||
# Demystifier
|
||||
[](https://www.nuget.org/packages/Demystifier/)
|
||||
[](https://github.com/benaadams/Demystifier/actions)
|
||||
|
||||
Output the modern C# 7.0+ features in stack traces that looks like the C# source code that generated them rather than IL formatted.
|
||||
|
||||
@ -168,6 +168,6 @@ Which is far less helpful, and close to jibberish in places
|
||||
|
||||
To run benchmarks from the repository root:
|
||||
```
|
||||
dotnet run -p .\test\Ben.Demystifier.Benchmarks\ -c Release -f netcoreapp2.0 All
|
||||
dotnet run -p .\test\Demystifier.Benchmarks\ -c Release -f netcoreapp2.0 All
|
||||
```
|
||||
<sub>Note: we're only kicking off via `netcoreapp2.0`, benchmarks will run for all configured platforms like `net462`.</sub>
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
// 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 DTLib.Ben.Demystifier.Enumerable;
|
||||
using DTLib.Demystifier.Enumerable;
|
||||
|
||||
namespace DTLib.Ben.Demystifier;
|
||||
namespace DTLib.Demystifier;
|
||||
|
||||
public class ResolvedMethod
|
||||
{
|
||||
|
||||
@ -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 DTLib.Ben.Demystifier;
|
||||
namespace DTLib.Demystifier;
|
||||
|
||||
public class ResolvedParameter
|
||||
{
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
// 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 DTLib.Ben.Demystifier.Enumerable;
|
||||
using DTLib.Demystifier.Enumerable;
|
||||
|
||||
namespace DTLib.Ben.Demystifier;
|
||||
namespace DTLib.Demystifier;
|
||||
|
||||
public static class StringBuilderExtentions
|
||||
{
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
// 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.
|
||||
|
||||
namespace DTLib.Ben.Demystifier;
|
||||
namespace DTLib.Demystifier;
|
||||
|
||||
// Adapted from https://github.com/aspnet/Common/blob/dev/shared/Microsoft.Extensions.TypeNameHelper.Sources/TypeNameHelper.cs
|
||||
public static class TypeNameHelper
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
// 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 DTLib.Ben.Demystifier.Internal;
|
||||
using DTLib.Demystifier.Internal;
|
||||
|
||||
namespace DTLib.Ben.Demystifier;
|
||||
namespace DTLib.Demystifier;
|
||||
|
||||
public class ValueTupleResolvedParameter : ResolvedParameter
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user