Add net8.0 and net9.0 (#3032)
This commit is contained in:
@@ -1,12 +1,11 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<LangVersion>9.0</LangVersion>
|
<LangVersion>9.0</LangVersion>
|
||||||
<AssemblyName>Discord.Net.BuildOverrides</AssemblyName>
|
<AssemblyName>Discord.Net.BuildOverrides</AssemblyName>
|
||||||
<RootNamespace>Discord.BuildOverrides</RootNamespace>
|
<RootNamespace>Discord.BuildOverrides</RootNamespace>
|
||||||
<Description>A Discord.Net extension adding a way to add build overrides for testing.</Description>
|
<Description>A Discord.Net extension adding a way to add build overrides for testing.</Description>
|
||||||
<TargetFrameworks Condition=" '$(OS)' == 'Windows_NT' ">net6.0;net5.0;</TargetFrameworks>
|
<TargetFrameworks>net8.0;net9.0;</TargetFrameworks>
|
||||||
<TargetFrameworks Condition=" '$(OS)' != 'Windows_NT' ">net6.0;net5.0;</TargetFrameworks>
|
|
||||||
<IsTrimmable>false</IsTrimmable>
|
<IsTrimmable>false</IsTrimmable>
|
||||||
<IsAotCompatible>false</IsAotCompatible>
|
<IsAotCompatible>false</IsAotCompatible>
|
||||||
<IncludeSymbols>true</IncludeSymbols>
|
<IncludeSymbols>true</IncludeSymbols>
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
<TargetFramework>net8.0</TargetFramework>
|
<TargetFramework>net9.0</TargetFramework>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Discord.Net.WebSocket" Version="3.13.1" />
|
<PackageReference Include="Discord.Net.WebSocket" Version="3.16.0" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
@@ -1,19 +1,20 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
<TargetFramework>net8.0</TargetFramework>
|
<TargetFramework>net9.0</TargetFramework>
|
||||||
<RootNamespace>InteractionFramework</RootNamespace>
|
<RootNamespace>InteractionFramework</RootNamespace>
|
||||||
<StartupObject></StartupObject>
|
<StartupObject></StartupObject>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Microsoft.Extensions.Configuration" Version="8.0.0" />
|
<PackageReference Include="Microsoft.Extensions.Configuration" Version="9.0.0" />
|
||||||
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="8.0.1" />
|
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="9.0.0" />
|
||||||
<PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="8.0.0" />
|
<PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="9.0.0" />
|
||||||
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="8.0.0" />
|
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="9.0.0" />
|
||||||
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="8.0.0" />
|
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="9.0.0" />
|
||||||
<PackageReference Include="Discord.Net.Interactions" Version="3.13.1" />
|
<PackageReference Include="Discord.Net.WebSocket" Version="3.16.0" />
|
||||||
|
<PackageReference Include="Discord.Net.Interactions" Version="3.16.0" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
@@ -7,8 +7,8 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="8.0.0" />
|
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="9.0.0" />
|
||||||
<PackageReference Include="Discord.Net" Version="3.13.1" />
|
<PackageReference Include="Discord.Net" Version="3.16.0" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
@@ -7,9 +7,9 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="8.0.0" />
|
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="9.0.0" />
|
||||||
<PackageReference Include="Discord.Net.Commands" Version="3.13.1" />
|
<PackageReference Include="Discord.Net.Commands" Version="3.16.0" />
|
||||||
<PackageReference Include="Discord.Net.Websocket" Version="3.13.1" />
|
<PackageReference Include="Discord.Net.Websocket" Version="3.16.0" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
@@ -7,7 +7,7 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Discord.Net.Webhook" Version="3.13.1" />
|
<PackageReference Include="Discord.Net.Webhook" Version="3.16.0" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
@@ -6,7 +6,7 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Scripting" Version="4.9.2" />
|
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Scripting" Version="4.11.0" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
<Import Project="../../Discord.Net.targets" />
|
<Import Project="../../Discord.Net.targets" />
|
||||||
<Import Project="../../StyleAnalyzer.targets" />
|
<Import Project="../../StyleAnalyzer.targets" />
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<AssemblyName>Discord.Net.Commands</AssemblyName>
|
<AssemblyName>Discord.Net.Commands</AssemblyName>
|
||||||
<RootNamespace>Discord.Commands</RootNamespace>
|
<RootNamespace>Discord.Commands</RootNamespace>
|
||||||
<Description>A Discord.Net extension adding support for bot commands.</Description>
|
<Description>A Discord.Net extension adding support for bot commands.</Description>
|
||||||
<TargetFrameworks>net6.0;net5.0;net461;netstandard2.0;netstandard2.1</TargetFrameworks>
|
<TargetFrameworks>net9.0;net8.0;net6.0;net5.0;net461;netstandard2.0;netstandard2.1;</TargetFrameworks>
|
||||||
<WarningLevel>5</WarningLevel>
|
<WarningLevel>5</WarningLevel>
|
||||||
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
|
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
|
||||||
<IsTrimmable>false</IsTrimmable>
|
<IsTrimmable>false</IsTrimmable>
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
<Import Project="../../Discord.Net.targets" />
|
<Import Project="../../Discord.Net.targets" />
|
||||||
<Import Project="../../StyleAnalyzer.targets" />
|
<Import Project="../../StyleAnalyzer.targets" />
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<AssemblyName>Discord.Net.Core</AssemblyName>
|
<AssemblyName>Discord.Net.Core</AssemblyName>
|
||||||
<RootNamespace>Discord</RootNamespace>
|
<RootNamespace>Discord</RootNamespace>
|
||||||
<Description>The core components for the Discord.Net library.</Description>
|
<Description>The core components for the Discord.Net library.</Description>
|
||||||
<TargetFrameworks>net6.0;net5.0;net461;netstandard2.0;netstandard2.1</TargetFrameworks>
|
<TargetFrameworks>net9.0;net8.0;net6.0;net5.0;net461;netstandard2.0;netstandard2.1</TargetFrameworks>
|
||||||
<WarningLevel>5</WarningLevel>
|
<WarningLevel>5</WarningLevel>
|
||||||
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
|
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
|
||||||
<IsTrimmable>false</IsTrimmable>
|
<IsTrimmable>false</IsTrimmable>
|
||||||
@@ -16,9 +16,9 @@
|
|||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
|
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
|
||||||
<PackageReference Include="System.Interactive.Async" Version="6.0.1" />
|
<PackageReference Include="System.Interactive.Async" Version="6.0.1" />
|
||||||
<PackageReference Include="System.Collections.Immutable" Version="6.0.0" />
|
<PackageReference Include="System.Collections.Immutable" Version="9.0.0" />
|
||||||
<PackageReference Include="System.ValueTuple" Version="4.5.0" />
|
<PackageReference Include="System.ValueTuple" Version="4.5.0" />
|
||||||
<PackageReference Include="IDisposableAnalyzers" Version="4.0.7">
|
<PackageReference Include="IDisposableAnalyzers" Version="4.0.8">
|
||||||
<PrivateAssets>all</PrivateAssets>
|
<PrivateAssets>all</PrivateAssets>
|
||||||
</PackageReference>
|
</PackageReference>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|||||||
@@ -142,14 +142,14 @@ public readonly struct MemberSearchV2QueryProperties
|
|||||||
|
|
||||||
public MemberSearchV2QueryProperties(Dictionary<int, string> andQuery, Dictionary<int, string> orQuery)
|
public MemberSearchV2QueryProperties(Dictionary<int, string> andQuery, Dictionary<int, string> orQuery)
|
||||||
{
|
{
|
||||||
AndQuery = andQuery.Select(x => new KeyValuePair<int, object>(x.Key, x.Value)).ToDictionary();
|
AndQuery = andQuery.Select(x => new KeyValuePair<int, object>(x.Key, x.Value)).ToDictionary(x => x.Key, y => y.Value);
|
||||||
OrQuery = orQuery.Select(x => new KeyValuePair<int, object>(x.Key, x.Value)).ToDictionary();
|
OrQuery = orQuery.Select(x => new KeyValuePair<int, object>(x.Key, x.Value)).ToDictionary(x => x.Key, y => y.Value);
|
||||||
}
|
}
|
||||||
|
|
||||||
public MemberSearchV2QueryProperties(Dictionary<int, long> andQuery, Dictionary<int, long> orQuery)
|
public MemberSearchV2QueryProperties(Dictionary<int, long> andQuery, Dictionary<int, long> orQuery)
|
||||||
{
|
{
|
||||||
AndQuery = andQuery.Select(x => new KeyValuePair<int, object>(x.Key, x.Value)).ToDictionary();
|
AndQuery = andQuery.Select(x => new KeyValuePair<int, object>(x.Key, x.Value)).ToDictionary(x => x.Key, y => y.Value);
|
||||||
OrQuery = orQuery.Select(x => new KeyValuePair<int, object>(x.Key, x.Value)).ToDictionary();
|
OrQuery = orQuery.Select(x => new KeyValuePair<int, object>(x.Key, x.Value)).ToDictionary(x => x.Key, y => y.Value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>net8.0</TargetFramework>
|
<TargetFramework>net8.0</TargetFramework>
|
||||||
@@ -15,7 +15,7 @@
|
|||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\Discord.Net.Core\Discord.Net.Core.csproj" />
|
<ProjectReference Include="..\Discord.Net.Core\Discord.Net.Core.csproj" />
|
||||||
<ProjectReference Include="..\Discord.Net.WebSocket\Discord.Net.WebSocket.csproj" />
|
<ProjectReference Include="..\Discord.Net.WebSocket\Discord.Net.WebSocket.csproj" />
|
||||||
<PackageReference Include="JetBrains.Annotations" Version="2023.3.0" />
|
<PackageReference Include="JetBrains.Annotations" Version="2024.3.0" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
<Import Project="../../Discord.Net.targets" />
|
<Import Project="../../Discord.Net.targets" />
|
||||||
<Import Project="../../StyleAnalyzer.targets" />
|
<Import Project="../../StyleAnalyzer.targets" />
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFrameworks>net6.0;net5.0;net461;netstandard2.0;netstandard2.1</TargetFrameworks>
|
<TargetFrameworks>net9.0;net8.0;net6.0;net5.0;net461;netstandard2.0;netstandard2.1;</TargetFrameworks>
|
||||||
<RootNamespace>Discord.Interactions</RootNamespace>
|
<RootNamespace>Discord.Interactions</RootNamespace>
|
||||||
<AssemblyName>Discord.Net.Interactions</AssemblyName>
|
<AssemblyName>Discord.Net.Interactions</AssemblyName>
|
||||||
<Description>A Discord.Net extension adding support for Application Commands.</Description>
|
<Description>A Discord.Net extension adding support for Application Commands.</Description>
|
||||||
@@ -20,9 +20,9 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="8.0.2" />
|
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="9.0.0" />
|
||||||
<PackageReference Include="System.Collections.Immutable" Version="6.0.0" />
|
<PackageReference Include="System.Collections.Immutable" Version="9.0.0" />
|
||||||
<PackageReference Include="System.Reactive" Version="6.0.0" />
|
<PackageReference Include="System.Reactive" Version="6.0.1" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup Condition="$(TargetFramework.StartsWith('net4')) AND '$(MSBuildRuntimeType)' == 'Core' AND '$(OS)' != 'Windows_NT'">
|
<ItemGroup Condition="$(TargetFramework.StartsWith('net4')) AND '$(MSBuildRuntimeType)' == 'Core' AND '$(OS)' != 'Windows_NT'">
|
||||||
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.3" PrivateAssets="All" />
|
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.3" PrivateAssets="All" />
|
||||||
|
|||||||
@@ -83,8 +83,8 @@ namespace Discord.API
|
|||||||
Type = cmd.Type;
|
Type = cmd.Type;
|
||||||
Description = cmd.Description;
|
Description = cmd.Description;
|
||||||
|
|
||||||
NameLocalizations = cmd.NameLocalizations?.ToDictionary() ?? Optional<Dictionary<string, string>>.Unspecified;
|
NameLocalizations = cmd.NameLocalizations?.ToDictionary(x => x.Key, y => y.Value) ?? Optional<Dictionary<string, string>>.Unspecified;
|
||||||
DescriptionLocalizations = cmd.DescriptionLocalizations?.ToDictionary() ?? Optional<Dictionary<string, string>>.Unspecified;
|
DescriptionLocalizations = cmd.DescriptionLocalizations?.ToDictionary(x => x.Key, y => y.Value) ?? Optional<Dictionary<string, string>>.Unspecified;
|
||||||
NameLocalized = cmd.NameLocalized;
|
NameLocalized = cmd.NameLocalized;
|
||||||
DescriptionLocalized = cmd.DescriptionLocalized;
|
DescriptionLocalized = cmd.DescriptionLocalized;
|
||||||
}
|
}
|
||||||
@@ -94,7 +94,7 @@ namespace Discord.API
|
|||||||
{
|
{
|
||||||
Name = x.Name,
|
Name = x.Name,
|
||||||
Value = x.Value,
|
Value = x.Value,
|
||||||
NameLocalizations = x.NameLocalizations?.ToDictionary() ?? Optional<Dictionary<string, string>>.Unspecified,
|
NameLocalizations = x.NameLocalizations?.ToDictionary(x => x.Key, y => y.Value) ?? Optional<Dictionary<string, string>>.Unspecified,
|
||||||
}).ToArray() ?? Optional<ApplicationCommandOptionChoice[]>.Unspecified;
|
}).ToArray() ?? Optional<ApplicationCommandOptionChoice[]>.Unspecified;
|
||||||
|
|
||||||
Options = option.Options?.Select(x => new ApplicationCommandOption(x)).ToArray() ?? Optional<ApplicationCommandOption[]>.Unspecified;
|
Options = option.Options?.Select(x => new ApplicationCommandOption(x)).ToArray() ?? Optional<ApplicationCommandOption[]>.Unspecified;
|
||||||
@@ -114,8 +114,8 @@ namespace Discord.API
|
|||||||
Description = option.Description;
|
Description = option.Description;
|
||||||
Autocomplete = option.IsAutocomplete;
|
Autocomplete = option.IsAutocomplete;
|
||||||
|
|
||||||
NameLocalizations = option.NameLocalizations?.ToDictionary() ?? Optional<Dictionary<string, string>>.Unspecified;
|
NameLocalizations = option.NameLocalizations?.ToDictionary(x => x.Key, y => y.Value) ?? Optional<Dictionary<string, string>>.Unspecified;
|
||||||
DescriptionLocalizations = option.DescriptionLocalizations?.ToDictionary() ?? Optional<Dictionary<string, string>>.Unspecified;
|
DescriptionLocalizations = option.DescriptionLocalizations?.ToDictionary(x => x.Key, y => y.Value) ?? Optional<Dictionary<string, string>>.Unspecified;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -342,8 +342,8 @@ namespace Discord.Rest
|
|||||||
Description = x.Description,
|
Description = x.Description,
|
||||||
Key = x.Key,
|
Key = x.Key,
|
||||||
Type = x.Type,
|
Type = x.Type,
|
||||||
NameLocalizations = x.NameLocalizations?.ToDictionary(),
|
NameLocalizations = x.NameLocalizations?.ToDictionary(x => x.Key, y => y.Value),
|
||||||
DescriptionLocalizations = x.DescriptionLocalizations?.ToDictionary()
|
DescriptionLocalizations = x.DescriptionLocalizations?.ToDictionary(x => x.Key, y => y.Value)
|
||||||
}).ToArray()))
|
}).ToArray()))
|
||||||
.Select(model
|
.Select(model
|
||||||
=> new RoleConnectionMetadata(
|
=> new RoleConnectionMetadata(
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
<Import Project="../../Discord.Net.targets" />
|
<Import Project="../../Discord.Net.targets" />
|
||||||
<Import Project="../../StyleAnalyzer.targets" />
|
<Import Project="../../StyleAnalyzer.targets" />
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<AssemblyName>Discord.Net.Rest</AssemblyName>
|
<AssemblyName>Discord.Net.Rest</AssemblyName>
|
||||||
<RootNamespace>Discord.Rest</RootNamespace>
|
<RootNamespace>Discord.Rest</RootNamespace>
|
||||||
<Description>A core Discord.Net library containing the REST client and models.</Description>
|
<Description>A core Discord.Net library containing the REST client and models.</Description>
|
||||||
<TargetFrameworks>net6.0;net5.0;net461;netstandard2.0;netstandard2.1</TargetFrameworks>
|
<TargetFrameworks>net9.0;net8.0;net6.0;net5.0;net461;netstandard2.0;netstandard2.1;</TargetFrameworks>
|
||||||
<WarningLevel>5</WarningLevel>
|
<WarningLevel>5</WarningLevel>
|
||||||
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
|
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
|
||||||
<IsTrimmable>false</IsTrimmable>
|
<IsTrimmable>false</IsTrimmable>
|
||||||
|
|||||||
@@ -99,8 +99,8 @@ namespace Discord.Rest
|
|||||||
DefaultPermission = arg.IsDefaultPermission.IsSpecified
|
DefaultPermission = arg.IsDefaultPermission.IsSpecified
|
||||||
? arg.IsDefaultPermission.Value
|
? arg.IsDefaultPermission.Value
|
||||||
: Optional<bool>.Unspecified,
|
: Optional<bool>.Unspecified,
|
||||||
NameLocalizations = arg.NameLocalizations?.ToDictionary(),
|
NameLocalizations = arg.NameLocalizations?.ToDictionary(x => x.Key, y => y.Value),
|
||||||
DescriptionLocalizations = arg.DescriptionLocalizations?.ToDictionary(),
|
DescriptionLocalizations = arg.DescriptionLocalizations?.ToDictionary(x => x.Key, y => y.Value),
|
||||||
|
|
||||||
// TODO: better conversion to nullable optionals
|
// TODO: better conversion to nullable optionals
|
||||||
DefaultMemberPermission = arg.DefaultMemberPermissions.ToNullable(),
|
DefaultMemberPermission = arg.DefaultMemberPermissions.ToNullable(),
|
||||||
@@ -142,8 +142,8 @@ namespace Discord.Rest
|
|||||||
DefaultPermission = arg.IsDefaultPermission.IsSpecified
|
DefaultPermission = arg.IsDefaultPermission.IsSpecified
|
||||||
? arg.IsDefaultPermission.Value
|
? arg.IsDefaultPermission.Value
|
||||||
: Optional<bool>.Unspecified,
|
: Optional<bool>.Unspecified,
|
||||||
NameLocalizations = arg.NameLocalizations?.ToDictionary(),
|
NameLocalizations = arg.NameLocalizations?.ToDictionary(x => x.Key, y => y.Value),
|
||||||
DescriptionLocalizations = arg.DescriptionLocalizations?.ToDictionary(),
|
DescriptionLocalizations = arg.DescriptionLocalizations?.ToDictionary(x => x.Key, y => y.Value),
|
||||||
|
|
||||||
// TODO: better conversion to nullable optionals
|
// TODO: better conversion to nullable optionals
|
||||||
DefaultMemberPermission = arg.DefaultMemberPermissions.ToNullable(),
|
DefaultMemberPermission = arg.DefaultMemberPermissions.ToNullable(),
|
||||||
@@ -188,8 +188,8 @@ namespace Discord.Rest
|
|||||||
DefaultPermission = arg.IsDefaultPermission.IsSpecified
|
DefaultPermission = arg.IsDefaultPermission.IsSpecified
|
||||||
? arg.IsDefaultPermission.Value
|
? arg.IsDefaultPermission.Value
|
||||||
: Optional<bool>.Unspecified,
|
: Optional<bool>.Unspecified,
|
||||||
NameLocalizations = arg.NameLocalizations?.ToDictionary(),
|
NameLocalizations = arg.NameLocalizations?.ToDictionary(x => x.Key, y => y.Value),
|
||||||
DescriptionLocalizations = arg.DescriptionLocalizations?.ToDictionary(),
|
DescriptionLocalizations = arg.DescriptionLocalizations?.ToDictionary(x => x.Key, y => y.Value),
|
||||||
|
|
||||||
// TODO: better conversion to nullable optionals
|
// TODO: better conversion to nullable optionals
|
||||||
DefaultMemberPermission = arg.DefaultMemberPermissions.ToNullable(),
|
DefaultMemberPermission = arg.DefaultMemberPermissions.ToNullable(),
|
||||||
@@ -257,8 +257,8 @@ namespace Discord.Rest
|
|||||||
DefaultPermission = args.IsDefaultPermission.IsSpecified
|
DefaultPermission = args.IsDefaultPermission.IsSpecified
|
||||||
? args.IsDefaultPermission.Value
|
? args.IsDefaultPermission.Value
|
||||||
: Optional<bool>.Unspecified,
|
: Optional<bool>.Unspecified,
|
||||||
NameLocalizations = args.NameLocalizations?.ToDictionary(),
|
NameLocalizations = args.NameLocalizations?.ToDictionary(x => x.Key, y => y.Value),
|
||||||
DescriptionLocalizations = args.DescriptionLocalizations?.ToDictionary(),
|
DescriptionLocalizations = args.DescriptionLocalizations?.ToDictionary(x => x.Key, y => y.Value),
|
||||||
Nsfw = args.IsNsfw.GetValueOrDefault(false),
|
Nsfw = args.IsNsfw.GetValueOrDefault(false),
|
||||||
DefaultMemberPermission = args.DefaultMemberPermissions.ToNullable(),
|
DefaultMemberPermission = args.DefaultMemberPermissions.ToNullable(),
|
||||||
IntegrationTypes = args.IntegrationTypes,
|
IntegrationTypes = args.IntegrationTypes,
|
||||||
@@ -317,8 +317,8 @@ namespace Discord.Rest
|
|||||||
DefaultPermission = arg.IsDefaultPermission.IsSpecified
|
DefaultPermission = arg.IsDefaultPermission.IsSpecified
|
||||||
? arg.IsDefaultPermission.Value
|
? arg.IsDefaultPermission.Value
|
||||||
: Optional<bool>.Unspecified,
|
: Optional<bool>.Unspecified,
|
||||||
NameLocalizations = arg.NameLocalizations?.ToDictionary(),
|
NameLocalizations = arg.NameLocalizations?.ToDictionary(x => x.Key, y => y.Value),
|
||||||
DescriptionLocalizations = arg.DescriptionLocalizations?.ToDictionary(),
|
DescriptionLocalizations = arg.DescriptionLocalizations?.ToDictionary(x => x.Key, y => y.Value),
|
||||||
|
|
||||||
// TODO: better conversion to nullable optionals
|
// TODO: better conversion to nullable optionals
|
||||||
DefaultMemberPermission = arg.DefaultMemberPermissions.ToNullable(),
|
DefaultMemberPermission = arg.DefaultMemberPermissions.ToNullable(),
|
||||||
@@ -357,8 +357,8 @@ namespace Discord.Rest
|
|||||||
DefaultPermission = arg.IsDefaultPermission.IsSpecified
|
DefaultPermission = arg.IsDefaultPermission.IsSpecified
|
||||||
? arg.IsDefaultPermission.Value
|
? arg.IsDefaultPermission.Value
|
||||||
: Optional<bool>.Unspecified,
|
: Optional<bool>.Unspecified,
|
||||||
NameLocalizations = arg.NameLocalizations?.ToDictionary(),
|
NameLocalizations = arg.NameLocalizations?.ToDictionary(x => x.Key, y => y.Value),
|
||||||
DescriptionLocalizations = arg.DescriptionLocalizations?.ToDictionary(),
|
DescriptionLocalizations = arg.DescriptionLocalizations?.ToDictionary(x => x.Key, y => y.Value),
|
||||||
Nsfw = arg.IsNsfw.GetValueOrDefault(false),
|
Nsfw = arg.IsNsfw.GetValueOrDefault(false),
|
||||||
DefaultMemberPermission = arg.DefaultMemberPermissions.ToNullable()
|
DefaultMemberPermission = arg.DefaultMemberPermissions.ToNullable()
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
<Import Project="../../Discord.Net.targets" />
|
<Import Project="../../Discord.Net.targets" />
|
||||||
<Import Project="../../StyleAnalyzer.targets" />
|
<Import Project="../../StyleAnalyzer.targets" />
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<AssemblyName>Discord.Net.WebSocket</AssemblyName>
|
<AssemblyName>Discord.Net.WebSocket</AssemblyName>
|
||||||
<RootNamespace>Discord.WebSocket</RootNamespace>
|
<RootNamespace>Discord.WebSocket</RootNamespace>
|
||||||
<Description>A core Discord.Net library containing the WebSocket client and models.</Description>
|
<Description>A core Discord.Net library containing the WebSocket client and models.</Description>
|
||||||
<TargetFrameworks>net6.0;net5.0;net461;netstandard2.0;netstandard2.1</TargetFrameworks>
|
<TargetFrameworks>net9.0;net8.0;net6.0;net5.0;net461;netstandard2.0;netstandard2.1</TargetFrameworks>
|
||||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||||
<WarningLevel>5</WarningLevel>
|
<WarningLevel>5</WarningLevel>
|
||||||
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
|
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
<Import Project="../../Discord.Net.targets" />
|
<Import Project="../../Discord.Net.targets" />
|
||||||
<Import Project="../../StyleAnalyzer.targets" />
|
<Import Project="../../StyleAnalyzer.targets" />
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<AssemblyName>Discord.Net.Webhook</AssemblyName>
|
<AssemblyName>Discord.Net.Webhook</AssemblyName>
|
||||||
<RootNamespace>Discord.Webhook</RootNamespace>
|
<RootNamespace>Discord.Webhook</RootNamespace>
|
||||||
<Description>A core Discord.Net library containing the Webhook client and models.</Description>
|
<Description>A core Discord.Net library containing the Webhook client and models.</Description>
|
||||||
<TargetFrameworks>net6.0;net5.0;netstandard2.0;netstandard2.1</TargetFrameworks>
|
<TargetFrameworks>net9.0;net8.0;net6.0;net5.0;netstandard2.0;netstandard2.1;</TargetFrameworks>
|
||||||
<WarningLevel>5</WarningLevel>
|
<WarningLevel>5</WarningLevel>
|
||||||
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
|
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
|
||||||
<IsTrimmable>false</IsTrimmable>
|
<IsTrimmable>false</IsTrimmable>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>net6.0</TargetFramework>
|
<TargetFramework>net9.0</TargetFramework>
|
||||||
|
|
||||||
<IsPackable>false</IsPackable>
|
<IsPackable>false</IsPackable>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
@@ -14,17 +14,13 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="FluentAssertions" Version="6.12.0" />
|
<PackageReference Include="FluentAssertions" Version="6.12.2" />
|
||||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
|
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
|
||||||
<PackageReference Include="xunit" Version="2.7.0" />
|
<PackageReference Include="xunit" Version="2.9.2" />
|
||||||
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.7">
|
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2">
|
||||||
<PrivateAssets>all</PrivateAssets>
|
<PrivateAssets>all</PrivateAssets>
|
||||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||||
</PackageReference>
|
</PackageReference>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
|
||||||
<Folder Include="Properties\" />
|
|
||||||
</ItemGroup>
|
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>net6.0</TargetFramework>
|
<TargetFramework>net9.0</TargetFramework>
|
||||||
|
|
||||||
<IsPackable>false</IsPackable>
|
<IsPackable>false</IsPackable>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
@@ -12,11 +12,11 @@
|
|||||||
<ProjectReference Include="../../src/Discord.Net.WebSocket/Discord.Net.WebSocket.csproj" />
|
<ProjectReference Include="../../src/Discord.Net.WebSocket/Discord.Net.WebSocket.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="FluentAssertions" Version="6.12.0" />
|
<PackageReference Include="FluentAssertions" Version="6.12.2" />
|
||||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
|
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
|
||||||
<PackageReference Include="NSubstitute" Version="5.1.0" />
|
<PackageReference Include="NSubstitute" Version="5.3.0" />
|
||||||
<PackageReference Include="xunit" Version="2.7.0" />
|
<PackageReference Include="xunit" Version="2.9.2" />
|
||||||
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.7">
|
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2">
|
||||||
<PrivateAssets>all</PrivateAssets>
|
<PrivateAssets>all</PrivateAssets>
|
||||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||||
</PackageReference>
|
</PackageReference>
|
||||||
|
|||||||
Reference in New Issue
Block a user