Skip to content

Commit

Permalink
Switch to net8 (#4059)
Browse files Browse the repository at this point in the history
* Switch to net8

* Update appveyor.yml

* Update appveyor.yml

* Update appveyor.yml

* Update appveyor.yml

* Update appveyor.yml

* Create AppVeyorInit.ps1

* Update appveyor.yml

* Delete AppVeyorInit.ps1

* Create AppVeyorInstall.ps1

* Update appveyor.yml

* Update Dockerfile.arm64

* Update Dockerfile

* Update appveyor.yml

* Update ACE.Adapter.csproj

* Update ACE.Common.csproj

* Update ACE.Database.csproj

* Update ACE.DatLoader.csproj

* Update ACE.Server.csproj

* Update copyrights

* Update DeveloperContentCommands.cs

* Update DeveloperFixCommands.cs

* Update ACE.Database.csproj

* Update ACE.Database.csproj

* Update ACE.Common.csproj

* Update ACE.DatLoader.csproj

* Update ACE.Common.csproj

* Update ACE.Server.csproj

* Update ACE.Server.csproj

* Update ACE.DatLoader.csproj

* Update ACE.Server.csproj

* Update ACE.DatLoader.csproj
  • Loading branch information
LtRipley36706 authored Apr 24, 2024
1 parent 51c5e9c commit 47f23e2
Show file tree
Hide file tree
Showing 15 changed files with 37 additions and 33 deletions.
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

0 comments on commit 47f23e2

Please sign in to comment.