Skip to content

Commit

Permalink
Update to .NET9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
9Bitdo committed Nov 18, 2024
1 parent 2354d20 commit 67eef4b
Show file tree
Hide file tree
Showing 12 changed files with 83 additions and 4 deletions.
6 changes: 6 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,9 @@ dotnet_style_parentheses_in_other_operators = always_for_clarity:suggest

dotnet_naming_style.begins_with_i.required_prefix = I
dotnet_naming_style.begins_with_i.capitalization = pascal_case

# IDE0130: Namespace does not match folder structure
dotnet_diagnostic.IDE0130.severity = none

dotnet_diagnostic.WFO1000.severity = none

51 changes: 51 additions & 0 deletions .editorconfig.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
root = true

# All Files
[*]
charset = utf-8
indent_style = space
indent_size = 4
insert_final_newline = true
trim_trailing_whitespace = true

# Solution Files
[*.sln]
indent_style = space
indent_size = 4
insert_final_newline = true
trim_trailing_whitespace = true

# XML Project Files
[*.csproj]
indent_style = space
indent_size = 2

# Code Files
[*.cs]
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = space
indent_size = 4
tab_width = 4
end_of_line = crlf
csharp_prefer_braces = when_multiline:warning
dotnet_diagnostic.IDE0047.severity = none
dotnet_diagnostic.IDE0048.severity = none
dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity:suggest
dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity:suggest
dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:suggest
dotnet_style_parentheses_in_other_operators = always_for_clarity:suggest

[*.{cs,vb}]
#### Naming styles ####

# Naming styles

dotnet_naming_style.begins_with_i.required_prefix = I
dotnet_naming_style.begins_with_i.capitalization = pascal_case

# IDE0130: Namespace does not match folder structure
dotnet_diagnostic.IDE0130.severity = none

dotnet_diagnostic.WFO1000.severity = none

4 changes: 2 additions & 2 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project>
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<LangVersion>12</LangVersion>
<TargetFramework>net9.0</TargetFramework>
<LangVersion>13</LangVersion>
<Nullable>enable</Nullable>
<NeutralLanguage>en</NeutralLanguage>
<SourceRevisionId>$([System.DateTime]::UtcNow.ToString("yyMMddHHmmss"))</SourceRevisionId>
Expand Down
1 change: 1 addition & 0 deletions SysBot.Pokemon.ConsoleApp/SysBot.Pokemon.ConsoleApp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<StartupObject>SysBot.Pokemon.ConsoleApp.Program</StartupObject>
<TargetFramework>net9.0</TargetFramework>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
Expand Down
4 changes: 4 additions & 0 deletions SysBot.Pokemon.Discord/SysBot.Pokemon.Discord.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
<DebugType>embedded</DebugType>
</PropertyGroup>

<PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Discord.Net" Version="3.13.1" />
<PackageReference Include="Microsoft.Extensions.Configuration" Version="8.0.0" />
Expand Down
4 changes: 4 additions & 0 deletions SysBot.Pokemon.Twitch/SysBot.Pokemon.Twitch.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
<DebugType>embedded</DebugType>
</PropertyGroup>

<PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="TwitchLib.Client" Version="3.3.1" />
</ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion SysBot.Pokemon.WinForms/Controls/BotController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public partial class BotController : UserControl
public BotController()
{
InitializeComponent();
var opt = (BotControlCommand[])Enum.GetValues(typeof(BotControlCommand));
var opt = Enum.GetValues<BotControlCommand>();

for (int i = 1; i < opt.Length; i++)
{
Expand Down
2 changes: 1 addition & 1 deletion SysBot.Pokemon.WinForms/SysBot.Pokemon.WinForms.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net8.0-windows</TargetFramework>
<TargetFramework>net9.0-windows7.0</TargetFramework>
<UseWindowsForms>true</UseWindowsForms>
<EnableWindowsTargeting>true</EnableWindowsTargeting>
</PropertyGroup>
Expand Down
4 changes: 4 additions & 0 deletions SysBot.Pokemon.YouTube/SysBot.Pokemon.YouTube.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
<DebugType>embedded</DebugType>
</PropertyGroup>

<PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Google.Apis" Version="1.67.0" />
<PackageReference Include="Google.Apis.Auth" Version="1.67.0" />
Expand Down
4 changes: 4 additions & 0 deletions SysBot.Pokemon.Z3/SysBot.Pokemon.Z3.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
<DebugType>embedded</DebugType>
</PropertyGroup>

<PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\SysBot.Pokemon\SysBot.Pokemon.csproj" />
</ItemGroup>
Expand Down
4 changes: 4 additions & 0 deletions SysBot.Pokemon/SysBot.Pokemon.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
<DebugType>embedded</DebugType>
</PropertyGroup>

<PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\SysBot.Base\SysBot.Base.csproj" />
</ItemGroup>
Expand Down
1 change: 1 addition & 0 deletions SysBot.Tests/SysBot.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

<PropertyGroup>
<IsPackable>false</IsPackable>
<TargetFramework>net9.0</TargetFramework>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
Expand Down

0 comments on commit 67eef4b

Please sign in to comment.