Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to net8 #4059

Merged
merged 40 commits into from
Apr 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
d89cecc
Switch to net8
LtRipley36706 Nov 18, 2023
5ba175a
Update appveyor.yml
LtRipley36706 Nov 27, 2023
bc1377b
Update appveyor.yml
LtRipley36706 Nov 27, 2023
c42036a
Update appveyor.yml
LtRipley36706 Nov 27, 2023
bca6c1e
Update appveyor.yml
LtRipley36706 Nov 27, 2023
e3807f9
Update appveyor.yml
LtRipley36706 Nov 27, 2023
add9df8
Create AppVeyorInit.ps1
LtRipley36706 Nov 27, 2023
833f7bd
Update appveyor.yml
LtRipley36706 Nov 27, 2023
7892faf
Delete AppVeyorInit.ps1
LtRipley36706 Nov 27, 2023
d75b9f2
Create AppVeyorInstall.ps1
LtRipley36706 Nov 27, 2023
3c6276c
Update appveyor.yml
LtRipley36706 Nov 27, 2023
a2de1ea
Update Dockerfile.arm64
LtRipley36706 Nov 27, 2023
80b247c
Update Dockerfile
LtRipley36706 Nov 27, 2023
0fb8dd8
Update appveyor.yml
LtRipley36706 Dec 13, 2023
f256d94
Merge branch 'master' into net8
LtRipley36706 Dec 29, 2023
eeae522
Update ACE.Adapter.csproj
LtRipley36706 Dec 29, 2023
697c7c8
Update ACE.Common.csproj
LtRipley36706 Dec 29, 2023
12218d5
Update ACE.Database.csproj
LtRipley36706 Dec 29, 2023
bdd54d7
Update ACE.DatLoader.csproj
LtRipley36706 Dec 29, 2023
5cfbe56
Update ACE.Server.csproj
LtRipley36706 Dec 29, 2023
954c543
Update copyrights
LtRipley36706 Dec 29, 2023
474c870
Update DeveloperContentCommands.cs
LtRipley36706 Dec 29, 2023
d6aecce
Update DeveloperFixCommands.cs
LtRipley36706 Dec 29, 2023
cdf07c6
Update ACE.Database.csproj
LtRipley36706 Dec 29, 2023
c40cff0
Update ACE.Database.csproj
LtRipley36706 Dec 29, 2023
ede7646
Merge branch 'master' into net8
LtRipley36706 Jan 12, 2024
3263d12
Update ACE.Common.csproj
LtRipley36706 Jan 12, 2024
da1ec0a
Update ACE.DatLoader.csproj
LtRipley36706 Jan 12, 2024
d6f874d
Update ACE.Common.csproj
LtRipley36706 Jan 12, 2024
08a5b3e
Merge branch 'master' into net8
LtRipley36706 Jan 20, 2024
2465299
Update ACE.Server.csproj
LtRipley36706 Jan 20, 2024
06405f1
Merge branch 'master' into net8
LtRipley36706 Jan 27, 2024
f4c7138
Update ACE.Server.csproj
LtRipley36706 Jan 27, 2024
94c5831
Merge branch 'master' into net8
LtRipley36706 Feb 5, 2024
7286389
Merge branch 'master' into net8
LtRipley36706 Apr 5, 2024
ed9a721
Update ACE.DatLoader.csproj
LtRipley36706 Apr 5, 2024
b51138d
Update ACE.Server.csproj
LtRipley36706 Apr 5, 2024
6a0937e
Merge branch 'master' into net8
LtRipley36706 Apr 21, 2024
4be8857
Update ACE.DatLoader.csproj
LtRipley36706 Apr 21, 2024
42b91af
Merge branch 'master' into net8
LtRipley36706 Apr 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions AppVeyor/AppVeyorInstall.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Invoke-WebRequest -Uri 'https://dot.net/v1/dotnet-install.ps1' -UseBasicParsing -OutFile "$env:temp\dotnet-install.ps1"
& $env:temp\dotnet-install.ps1 -Architecture x64 -Version '8.0.100' -InstallDir "$env:ProgramFiles\dotnet"
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
WORKDIR /Source

# copy csproj and restore as distinct layers
Expand All @@ -20,7 +20,7 @@ COPY . ../.
RUN dotnet publish ./ACE.Server/ACE.Server.csproj -c release -o /ace --no-restore

# final stage/image
FROM mcr.microsoft.com/dotnet/runtime:6.0-bullseye-slim
FROM mcr.microsoft.com/dotnet/runtime:8.0-jammy-chiseled
ARG DEBIAN_FRONTEND="noninteractive"
WORKDIR /ace

Expand Down
4 changes: 2 additions & 2 deletions Dockerfile.arm64
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
WORKDIR /Source

# copy csproj and restore as distinct layers
Expand All @@ -20,7 +20,7 @@ COPY . ../.
RUN dotnet publish ./ACE.Server/ACE.Server.csproj -c release -o /ace -r linux-arm64 --self-contained false --no-restore

# final stage/image
FROM mcr.microsoft.com/dotnet/runtime:6.0-bullseye-slim-arm64v8
FROM mcr.microsoft.com/dotnet/runtime:8.0-jammy-chiseled
ARG DEBIAN_FRONTEND="noninteractive"
WORKDIR /ace

Expand Down
6 changes: 3 additions & 3 deletions Source/ACE.Adapter/ACE.Adapter.csproj
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<Nullable>disable</Nullable>
<ImplicitUsings>disable</ImplicitUsings>
<Platforms>AnyCPU</Platforms>
<Version>1.0.0</Version>
<Authors>ACEmulator Contributors</Authors>
<Company>ACEmulator</Company>
<Description>Asheron's Call server emulator</Description>
<Copyright>© 2017-2022 ACEmulator Team and Contributors</Copyright>
<Copyright>© 2017-2024 ACEmulator Team and Contributors</Copyright>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<PackageProjectUrl>https://emulator.ac</PackageProjectUrl>
<RepositoryUrl>https://github.com/ACEmulator/ACE</RepositoryUrl>
Expand All @@ -35,7 +35,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="System.Text.Json" Version="6.0.9" />
<PackageReference Include="System.Text.Json" Version="8.0.0" />
</ItemGroup>

</Project>
4 changes: 2 additions & 2 deletions Source/ACE.Common/ACE.Common.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/ACEmulator/ACE</RepositoryUrl>
<PackageProjectUrl>https://emulator.ac</PackageProjectUrl>
<Copyright>© 2017-2022 ACEmulator Team and Contributors</Copyright>
<Copyright>© 2017-2024 ACEmulator Team and Contributors</Copyright>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<Description>Asheron's Call server emulator</Description>
<Company>ACEmulator</Company>
Expand All @@ -16,7 +16,7 @@

<ItemGroup>
<PackageReference Include="BCrypt.Net-Next" Version="4.0.3" />
<PackageReference Include="System.Text.Json" Version="6.0.9" />
<PackageReference Include="System.Text.Json" Version="8.0.0" />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion Source/ACE.DatLoader.Tests/ACE.DatLoader.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<Description>Asheron's Call server emulator</Description>

<Copyright>© 2017-2022 ACEmulator Team and Contributors</Copyright>
<Copyright>© 2017-2024 ACEmulator Team and Contributors</Copyright>

<PackageLicenseFile>LICENSE</PackageLicenseFile>

Expand Down
6 changes: 3 additions & 3 deletions Source/ACE.DatLoader/ACE.DatLoader.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/ACEmulator/ACE</RepositoryUrl>
<PackageProjectUrl>https://emulator.ac</PackageProjectUrl>
<Copyright>© 2017-2022 ACEmulator Team and Contributors</Copyright>
<Copyright>© 2017-2024 ACEmulator Team and Contributors</Copyright>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<Description>Asheron's Call server emulator</Description>
<Company>ACEmulator</Company>
Expand All @@ -16,8 +16,8 @@

<ItemGroup>
<PackageReference Include="log4net" Version="2.0.17" />
<PackageReference Include="System.Drawing.Common" Version="6.0.0" />
<PackageReference Include="System.Text.Encoding.CodePages" Version="6.0.0" />
<PackageReference Include="System.Drawing.Common" Version="8.0.0" />
<PackageReference Include="System.Text.Encoding.CodePages" Version="8.0.0" />
</ItemGroup>

<ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions Source/ACE.Database.Tests/ACE.Database.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>

<IsPackable>false</IsPackable>

Expand All @@ -13,7 +13,7 @@

<Description>Asheron's Call server emulator</Description>

<Copyright>© 2017-2022 ACEmulator Team and Contributors</Copyright>
<Copyright>© 2017-2024 ACEmulator Team and Contributors</Copyright>

<PackageLicenseFile>LICENSE</PackageLicenseFile>

Expand Down
4 changes: 2 additions & 2 deletions Source/ACE.Database/ACE.Database.csproj
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<Nullable>disable</Nullable>
<ImplicitUsings>disable</ImplicitUsings>
<Platforms>AnyCPU</Platforms>
<Authors>ACEmulator Contributors</Authors>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/ACEmulator/ACE</RepositoryUrl>
<PackageProjectUrl>https://emulator.ac</PackageProjectUrl>
<Copyright>© 2017-2022 ACEmulator Team and Contributors</Copyright>
<Copyright>© 2017-2024 ACEmulator Team and Contributors</Copyright>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<Description>Asheron's Call server emulator</Description>
<Company>ACEmulator</Company>
Expand Down
2 changes: 1 addition & 1 deletion Source/ACE.Entity/ACE.Entity.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/ACEmulator/ACE</RepositoryUrl>
<PackageProjectUrl>https://emulator.ac</PackageProjectUrl>
<Copyright>© 2017-2022 ACEmulator Team and Contributors</Copyright>
<Copyright>© 2017-2024 ACEmulator Team and Contributors</Copyright>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<Description>Asheron's Call server emulator</Description>
<Company>ACEmulator</Company>
Expand Down
4 changes: 2 additions & 2 deletions Source/ACE.Server.Tests/ACE.Server.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>

<IsPackable>false</IsPackable>

Expand All @@ -13,7 +13,7 @@

<Description>Asheron's Call server emulator</Description>

<Copyright>© 2017-2022 ACEmulator Team and Contributors</Copyright>
<Copyright>© 2017-2024 ACEmulator Team and Contributors</Copyright>

<PackageLicenseFile>LICENSE</PackageLicenseFile>

Expand Down
14 changes: 7 additions & 7 deletions Source/ACE.Server/ACE.Server.csproj
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<Platforms>x64</Platforms>
</PropertyGroup>
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<Platforms>x64</Platforms>
</PropertyGroup>

<PropertyGroup>
<Nullable>disable</Nullable>
Expand All @@ -22,7 +22,7 @@
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/ACEmulator/ACE</RepositoryUrl>
<PackageProjectUrl>https://emulator.ac</PackageProjectUrl>
<Copyright>© 2017-2022 ACEmulator Team and Contributors</Copyright>
<Copyright>© 2017-2024 ACEmulator Team and Contributors</Copyright>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<Description>Asheron's Call server emulator</Description>
<Company>ACEmulator</Company>
Expand Down Expand Up @@ -239,7 +239,7 @@
<PackageReference Include="Log4Net.Async.Standard" Version="3.1.0" />
<PackageReference Include="McMaster.NETCore.Plugins" Version="1.4.0" />
<PackageReference Include="MySqlConnector" Version="2.3.7" />
<PackageReference Include="System.Text.Encoding.CodePages" Version="6.0.0" />
<PackageReference Include="System.Text.Encoding.CodePages" Version="8.0.0" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1342,7 +1342,7 @@ public static void SyncInstances(Session session, ushort landblock, List<Landblo
File.Delete(sqlFilename);

using (var ctx = new WorldDbContext())
ctx.Database.ExecuteSqlRaw($"DELETE FROM landblock_instance WHERE landblock={landblock};");
ctx.Database.ExecuteSqlInterpolated($"DELETE FROM landblock_instance WHERE landblock={landblock};");
}

// clear landblock instances for this landblock (again)
Expand Down Expand Up @@ -1716,7 +1716,7 @@ public static void SyncEncounters(Session session, ushort landblock, List<Encoun
File.Delete(sqlFilename);

using (var ctx = new WorldDbContext())
ctx.Database.ExecuteSqlRaw($"DELETE FROM encounter WHERE landblock={landblock};");
ctx.Database.ExecuteSqlInterpolated($"DELETE FROM encounter WHERE landblock={landblock};");
}

// clear the encounters for this landblock (again)
Expand Down
6 changes: 3 additions & 3 deletions Source/ACE.Server/Command/Handlers/DeveloperFixCommands.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1447,9 +1447,9 @@ public static void HandleVerifyClothingWieldLevel(Session session, params string
wieldLevel = 180;
}

ctx.Database.ExecuteSqlRaw($"insert into biota_properties_int set object_Id={objectId}, `type`={(ushort)PropertyInt.WieldRequirements}, value={(int)WieldRequirement.Level};");
ctx.Database.ExecuteSqlRaw($"insert into biota_properties_int set object_Id={objectId}, `type`={(ushort)PropertyInt.WieldSkillType}, value=1;");
ctx.Database.ExecuteSqlRaw($"insert into biota_properties_int set object_Id={objectId}, `type`={(ushort)PropertyInt.WieldDifficulty}, value={wieldLevel};");
ctx.Database.ExecuteSqlInterpolated($"insert into biota_properties_int set object_Id={objectId}, `type`={(ushort)PropertyInt.WieldRequirements}, value={(int)WieldRequirement.Level};");
ctx.Database.ExecuteSqlInterpolated($"insert into biota_properties_int set object_Id={objectId}, `type`={(ushort)PropertyInt.WieldSkillType}, value=1;");
ctx.Database.ExecuteSqlInterpolated($"insert into biota_properties_int set object_Id={objectId}, `type`={(ushort)PropertyInt.WieldDifficulty}, value={wieldLevel};");
}

var item = clothing[objectId];
Expand Down
4 changes: 3 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,10 @@ environment:
secure: huM6kANmgP1OdlmHulXVZA==
access_token:
secure: lGLpqex+Weod6ZiPw34RwTv999QvoSZ+imTcmYhiJWQL6XkfkVUYcqOO6pJDuAYt
services:
services:
- mysql
#install:
# - ps: AppVeyor\AppVeyorInstall.ps1
before_build:
- cmd: AppVeyor\AppVeyorBeforeCompile.bat
build:
Expand Down