mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-11 01:38:27 -04:00
Initial v5 commit: Upped .net version to 7.0, Upped nadeko build version to 5.0.0. Disabled some warnings about lowercase types
This commit is contained in:
@@ -5,9 +5,9 @@ namespace Nadeko.Common;
|
|||||||
// needs proper invalid input check (character array input out of range)
|
// needs proper invalid input check (character array input out of range)
|
||||||
// needs negative number support
|
// needs negative number support
|
||||||
// ReSharper disable once InconsistentNaming
|
// ReSharper disable once InconsistentNaming
|
||||||
#pragma warning disable IDE1006
|
#pragma warning disable CS8981
|
||||||
public readonly struct kwum : IEquatable<kwum>
|
public readonly struct kwum : IEquatable<kwum>
|
||||||
#pragma warning restore IDE1006
|
#pragma warning restore CS8981
|
||||||
{
|
{
|
||||||
private const string VALID_CHARACTERS = "23456789abcdefghijkmnpqrstuvwxyz";
|
private const string VALID_CHARACTERS = "23456789abcdefghijkmnpqrstuvwxyz";
|
||||||
private readonly int _value;
|
private readonly int _value;
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>net6.0</TargetFramework>
|
<TargetFramework>net7.0</TargetFramework>
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>net6.0</TargetFramework>
|
<TargetFramework>net7.0</TargetFramework>
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
@@ -1,12 +1,9 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>net6.0</TargetFramework>
|
<TargetFramework>net7.0</TargetFramework>
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
<LangVersion>preview</LangVersion>
|
|
||||||
<EnablePreviewFeatures>true</EnablePreviewFeatures>
|
|
||||||
<RootNamespace>Nadeko.Snake</RootNamespace>
|
|
||||||
|
|
||||||
<Authors>The NadekoBot Team</Authors>
|
<Authors>The NadekoBot Team</Authors>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
@@ -1,7 +1,8 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>net6.0</TargetFramework>
|
<TargetFramework>net7.0</TargetFramework>
|
||||||
|
<NoWarn>CS8981</NoWarn>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
@@ -1,9 +1,7 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>net6.0</TargetFramework>
|
<TargetFramework>net7.0</TargetFramework>
|
||||||
<LangVersion>10.0</LangVersion>
|
|
||||||
<EnablePreviewFeatures>True</EnablePreviewFeatures>
|
|
||||||
<IsPackable>false</IsPackable>
|
<IsPackable>false</IsPackable>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>net6.0</TargetFramework>
|
<TargetFramework>net7.0</TargetFramework>
|
||||||
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
|
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
@@ -1,143 +0,0 @@
|
|||||||
using System.Globalization;
|
|
||||||
using System.Reflection;
|
|
||||||
|
|
||||||
namespace Nadeko.Medusa;
|
|
||||||
|
|
||||||
public sealed class TypeWrapper : Type
|
|
||||||
{
|
|
||||||
private readonly int _hashCode;
|
|
||||||
|
|
||||||
public TypeWrapper(Type t)
|
|
||||||
{
|
|
||||||
_hashCode = t.GetHashCode();
|
|
||||||
Namespace = t.Namespace;
|
|
||||||
Name = t.Name;
|
|
||||||
FullName = t.FullName;
|
|
||||||
IsGenericType = t.IsGenericType;
|
|
||||||
IsConstructedGenericType = t.IsConstructedGenericType;
|
|
||||||
}
|
|
||||||
|
|
||||||
public override bool IsGenericType { get; }
|
|
||||||
public override bool IsConstructedGenericType { get; }
|
|
||||||
|
|
||||||
public override object[] GetCustomAttributes(bool inherit)
|
|
||||||
=> throw new NotImplementedException();
|
|
||||||
|
|
||||||
public override object[] GetCustomAttributes(Type attributeType, bool inherit)
|
|
||||||
=> throw new NotImplementedException();
|
|
||||||
|
|
||||||
public override bool IsDefined(Type attributeType, bool inherit)
|
|
||||||
=> throw new NotImplementedException();
|
|
||||||
|
|
||||||
public override Module Module { get; }
|
|
||||||
public override string? Namespace { get; }
|
|
||||||
public override string Name { get; }
|
|
||||||
|
|
||||||
protected override TypeAttributes GetAttributeFlagsImpl()
|
|
||||||
=> throw new NotImplementedException();
|
|
||||||
|
|
||||||
protected override ConstructorInfo? GetConstructorImpl(
|
|
||||||
BindingFlags bindingAttr,
|
|
||||||
Binder? binder,
|
|
||||||
CallingConventions callConvention,
|
|
||||||
Type[] types,
|
|
||||||
ParameterModifier[]? modifiers)
|
|
||||||
=> throw new NotImplementedException();
|
|
||||||
|
|
||||||
public override ConstructorInfo[] GetConstructors(BindingFlags bindingAttr)
|
|
||||||
=> throw new NotImplementedException();
|
|
||||||
|
|
||||||
public override Type? GetElementType()
|
|
||||||
=> throw new NotImplementedException();
|
|
||||||
|
|
||||||
public override EventInfo? GetEvent(string name, BindingFlags bindingAttr)
|
|
||||||
=> throw new NotImplementedException();
|
|
||||||
|
|
||||||
public override EventInfo[] GetEvents(BindingFlags bindingAttr)
|
|
||||||
=> throw new NotImplementedException();
|
|
||||||
|
|
||||||
public override FieldInfo? GetField(string name, BindingFlags bindingAttr)
|
|
||||||
=> throw new NotImplementedException();
|
|
||||||
|
|
||||||
public override FieldInfo[] GetFields(BindingFlags bindingAttr)
|
|
||||||
=> throw new NotImplementedException();
|
|
||||||
|
|
||||||
public override MemberInfo[] GetMembers(BindingFlags bindingAttr)
|
|
||||||
=> throw new NotImplementedException();
|
|
||||||
|
|
||||||
protected override MethodInfo? GetMethodImpl(
|
|
||||||
string name,
|
|
||||||
BindingFlags bindingAttr,
|
|
||||||
Binder? binder,
|
|
||||||
CallingConventions callConvention,
|
|
||||||
Type[]? types,
|
|
||||||
ParameterModifier[]? modifiers)
|
|
||||||
=> throw new NotImplementedException();
|
|
||||||
|
|
||||||
public override MethodInfo[] GetMethods(BindingFlags bindingAttr)
|
|
||||||
=> throw new NotImplementedException();
|
|
||||||
|
|
||||||
public override PropertyInfo[] GetProperties(BindingFlags bindingAttr)
|
|
||||||
=> throw new NotImplementedException();
|
|
||||||
|
|
||||||
public override object? InvokeMember(
|
|
||||||
string name,
|
|
||||||
BindingFlags invokeAttr,
|
|
||||||
Binder? binder,
|
|
||||||
object? target,
|
|
||||||
object?[]? args,
|
|
||||||
ParameterModifier[]? modifiers,
|
|
||||||
CultureInfo? culture,
|
|
||||||
string[]? namedParameters)
|
|
||||||
=> throw new NotImplementedException();
|
|
||||||
|
|
||||||
public override Type UnderlyingSystemType { get; }
|
|
||||||
|
|
||||||
protected override bool IsArrayImpl()
|
|
||||||
=> throw new NotImplementedException();
|
|
||||||
|
|
||||||
protected override bool IsByRefImpl()
|
|
||||||
=> throw new NotImplementedException();
|
|
||||||
|
|
||||||
protected override bool IsCOMObjectImpl()
|
|
||||||
=> throw new NotImplementedException();
|
|
||||||
|
|
||||||
protected override bool IsPointerImpl()
|
|
||||||
=> throw new NotImplementedException();
|
|
||||||
|
|
||||||
protected override bool IsPrimitiveImpl()
|
|
||||||
=> throw new NotImplementedException();
|
|
||||||
|
|
||||||
public override Assembly Assembly { get; }
|
|
||||||
public override string? AssemblyQualifiedName { get; }
|
|
||||||
public override Type? BaseType { get; }
|
|
||||||
public override string? FullName { get; }
|
|
||||||
public override Guid GUID { get; }
|
|
||||||
|
|
||||||
protected override PropertyInfo? GetPropertyImpl(
|
|
||||||
string name,
|
|
||||||
BindingFlags bindingAttr,
|
|
||||||
Binder? binder,
|
|
||||||
Type? returnType,
|
|
||||||
Type[]? types,
|
|
||||||
ParameterModifier[]? modifiers)
|
|
||||||
=> throw new NotImplementedException();
|
|
||||||
|
|
||||||
protected override bool HasElementTypeImpl()
|
|
||||||
=> throw new NotImplementedException();
|
|
||||||
|
|
||||||
public override Type? GetNestedType(string name, BindingFlags bindingAttr)
|
|
||||||
=> throw new NotImplementedException();
|
|
||||||
|
|
||||||
public override Type[] GetNestedTypes(BindingFlags bindingAttr)
|
|
||||||
=> throw new NotImplementedException();
|
|
||||||
|
|
||||||
public override int GetHashCode()
|
|
||||||
=> _hashCode;
|
|
||||||
|
|
||||||
public override Type? GetInterface(string name, bool ignoreCase)
|
|
||||||
=> throw new NotImplementedException();
|
|
||||||
|
|
||||||
public override Type[] GetInterfaces()
|
|
||||||
=> throw new NotImplementedException();
|
|
||||||
}
|
|
@@ -1,10 +1,8 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>net6.0</TargetFramework>
|
<TargetFramework>net7.0</TargetFramework>
|
||||||
<LangVersion>preview</LangVersion>
|
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
<EnablePreviewFeatures>true</EnablePreviewFeatures>
|
|
||||||
<ImplicitUsings>true</ImplicitUsings>
|
<ImplicitUsings>true</ImplicitUsings>
|
||||||
|
|
||||||
<!-- Output/build -->
|
<!-- Output/build -->
|
||||||
@@ -15,7 +13,7 @@
|
|||||||
<!-- Analysis/Warnings -->
|
<!-- Analysis/Warnings -->
|
||||||
<!-- <AnalysisMode>Recommended</AnalysisMode>-->
|
<!-- <AnalysisMode>Recommended</AnalysisMode>-->
|
||||||
<!-- <AnalysisModeGlobalization>None</AnalysisModeGlobalization>-->
|
<!-- <AnalysisModeGlobalization>None</AnalysisModeGlobalization>-->
|
||||||
<NoWarn>CS1066</NoWarn>
|
<NoWarn>CS1066;CS8981</NoWarn>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
@@ -124,7 +122,7 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<PropertyGroup Condition=" '$(Version)' == '' ">
|
<PropertyGroup Condition=" '$(Version)' == '' ">
|
||||||
<VersionPrefix Condition=" '$(VersionPrefix)' == '' ">4.0.0</VersionPrefix>
|
<VersionPrefix Condition=" '$(VersionPrefix)' == '' ">5.0.0</VersionPrefix>
|
||||||
<Version Condition=" '$(VersionSuffix)' != '' ">$(VersionPrefix).$(VersionSuffix)</Version>
|
<Version Condition=" '$(VersionSuffix)' != '' ">$(VersionPrefix).$(VersionSuffix)</Version>
|
||||||
<Version Condition=" '$(Version)' == '' ">$(VersionPrefix)</Version>
|
<Version Condition=" '$(Version)' == '' ">$(VersionPrefix)</Version>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
Reference in New Issue
Block a user