project structure changed

This commit is contained in:
timerix 2022-12-06 13:04:43 +06:00
parent f64d655f49
commit a356957377
17 changed files with 47 additions and 38 deletions

View File

@ -0,0 +1,26 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<!--package info-->
<PackageId>DTLib.Ben.Demystifier</PackageId>
<Version>1.0.0</Version>
<Authors>Timerix</Authors>
<RepositoryType>GIT</RepositoryType>
<RepositoryUrl>https://github.com/Timerix22/DTLib</RepositoryUrl>
<Configuration>Release</Configuration>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
<!--compilation properties-->
<TargetFrameworks>net6.0;netstandard2.0;net48</TargetFrameworks>
<DebugType>embedded</DebugType>
<!--language features-->
<Nullable>enable</Nullable>
<LangVersion>10</LangVersion>
</PropertyGroup>
<ItemGroup>
<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'"/>
</ItemGroup>
</Project>

View File

@ -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 Ben.Demystifier;
namespace DTLib.Ben.Demystifier;
public class EnhancedStackFrame : StackFrame
{

View File

@ -8,10 +8,10 @@ using System.Runtime.CompilerServices;
using System.Runtime.ExceptionServices;
using System.Threading;
using System.Threading.Tasks;
using Ben.Demystifier.Enumerable;
using Ben.Demystifier.Internal;
using DTLib.Ben.Demystifier.Enumerable;
using DTLib.Ben.Demystifier.Internal;
namespace Ben.Demystifier
namespace DTLib.Ben.Demystifier
{
public partial class EnhancedStackTrace
{

View File

@ -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 Ben.Demystifier;
namespace DTLib.Ben.Demystifier;
public partial class EnhancedStackTrace : StackTrace, IEnumerable<EnhancedStackFrame>
{

View File

@ -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 Ben.Demystifier.Enumerable;
namespace DTLib.Ben.Demystifier.Enumerable;
public static class EnumerableIList
{

View File

@ -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 Ben.Demystifier.Enumerable;
namespace DTLib.Ben.Demystifier.Enumerable;
public struct EnumeratorIList<T> : IEnumerator<T>
{

View File

@ -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 Ben.Demystifier.Enumerable;
namespace DTLib.Ben.Demystifier.Enumerable;
internal interface IEnumerableIList<T> : IEnumerable<T>
{

View File

@ -9,9 +9,9 @@ global using System.Diagnostics;
global using System.Reflection;
global using System.Linq;
using System.Diagnostics.Contracts;
using Ben.Demystifier.Enumerable;
using DTLib.Ben.Demystifier.Enumerable;
namespace Ben.Demystifier;
namespace DTLib.Ben.Demystifier;
public static class ExceptionExtensions
{

View File

@ -1,6 +1,6 @@
using System.Reflection.Emit;
namespace Ben.Demystifier.Internal;
namespace DTLib.Ben.Demystifier.Internal;
internal class ILReader
{

View File

@ -6,7 +6,7 @@ using System.Reflection.Metadata;
using System.Reflection.Metadata.Ecma335;
using System.Reflection.PortableExecutable;
namespace Ben.Demystifier.Internal;
namespace DTLib.Ben.Demystifier.Internal;
// Adapted from https://github.com/aspnet/Common/blob/dev/shared/Microsoft.Extensions.StackTrace.Sources/StackFrame/PortablePdbReader.cs
internal class PortablePdbReader : IDisposable

View File

@ -3,7 +3,7 @@
using System.Threading;
namespace Ben.Demystifier.Internal;
namespace DTLib.Ben.Demystifier.Internal;
/// <summary>
/// A helper class that contains utilities methods for dealing with reflection.

View File

@ -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 Ben.Demystifier.Enumerable;
using DTLib.Ben.Demystifier.Enumerable;
namespace Ben.Demystifier;
namespace DTLib.Ben.Demystifier;
public class ResolvedMethod
{

View File

@ -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 Ben.Demystifier;
namespace DTLib.Ben.Demystifier;
public class ResolvedParameter
{

View File

@ -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 Ben.Demystifier.Enumerable;
using DTLib.Ben.Demystifier.Enumerable;
namespace Ben.Demystifier;
namespace DTLib.Ben.Demystifier;
public static class StringBuilderExtentions
{

View File

@ -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 Ben.Demystifier;
namespace DTLib.Ben.Demystifier;
// Adapted from https://github.com/aspnet/Common/blob/dev/shared/Microsoft.Extensions.TypeNameHelper.Sources/TypeNameHelper.cs
public static class TypeNameHelper

View File

@ -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 Ben.Demystifier.Internal;
using DTLib.Ben.Demystifier.Internal;
namespace Ben.Demystifier;
namespace DTLib.Ben.Demystifier;
public class ValueTupleResolvedParameter : ResolvedParameter
{

View File

@ -1,17 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<DebugType>embedded</DebugType>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<Nullable>enable</Nullable>
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
<TargetFramework>netstandard2.0</TargetFramework>
<LangVersion>10</LangVersion>
</PropertyGroup>
<ItemGroup>
<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'"/>
</ItemGroup>
</Project>