fix: Changes C# version to 11 (#1461)
This commit is contained in:
parent
2eebf4f48d
commit
2c8d54549c
6 changed files with 18 additions and 14 deletions
4
.github/workflows/build-test.yml
vendored
4
.github/workflows/build-test.yml
vendored
|
|
@ -24,7 +24,7 @@ jobs:
|
||||||
- name: Setup .NET 7
|
- name: Setup .NET 7
|
||||||
uses: actions/setup-dotnet@v3
|
uses: actions/setup-dotnet@v3
|
||||||
with:
|
with:
|
||||||
dotnet-version: 7.0.304
|
dotnet-version: 7.0.400
|
||||||
- name: Build
|
- name: Build
|
||||||
run: ./publish.cmd Release
|
run: ./publish.cmd Release
|
||||||
- name: Migration Changes
|
- name: Migration Changes
|
||||||
|
|
@ -78,7 +78,7 @@ jobs:
|
||||||
- name: Setup .NET 7
|
- name: Setup .NET 7
|
||||||
uses: actions/setup-dotnet@v3
|
uses: actions/setup-dotnet@v3
|
||||||
with:
|
with:
|
||||||
dotnet-version: 7.0.302
|
dotnet-version: 7.0.400
|
||||||
- name: Build
|
- name: Build
|
||||||
run: ./publish.sh Release
|
run: ./publish.sh Release
|
||||||
- name: Test
|
- name: Test
|
||||||
|
|
|
||||||
2
.github/workflows/create-release.yml
vendored
2
.github/workflows/create-release.yml
vendored
|
|
@ -17,7 +17,7 @@ jobs:
|
||||||
- name: Setup .NET 7
|
- name: Setup .NET 7
|
||||||
uses: actions/setup-dotnet@v3
|
uses: actions/setup-dotnet@v3
|
||||||
with:
|
with:
|
||||||
dotnet-version: 7.0.304
|
dotnet-version: 7.0.400
|
||||||
- name: Install NGBV
|
- name: Install NGBV
|
||||||
uses: dotnet/nbgv@master
|
uses: dotnet/nbgv@master
|
||||||
id: nbgv
|
id: nbgv
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
<Company>ModernUO</Company>
|
<Company>ModernUO</Company>
|
||||||
<Copyright>2019-2023</Copyright>
|
<Copyright>2019-2023</Copyright>
|
||||||
<TargetFramework>net7.0</TargetFramework>
|
<TargetFramework>net7.0</TargetFramework>
|
||||||
<LangVersion>preview</LangVersion>
|
<LangVersion>11</LangVersion>
|
||||||
<PublicRelease>true</PublicRelease>
|
<PublicRelease>true</PublicRelease>
|
||||||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||||
<NoWarn>NU1603</NoWarn>
|
<NoWarn>NU1603</NoWarn>
|
||||||
|
|
|
||||||
|
|
@ -2121,12 +2121,16 @@ namespace Server.Multis
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private class MoveTimer(BaseBoat boat, TimeSpan delay, TimeSpan interval, int single)
|
private class MoveTimer : Timer
|
||||||
: Timer(delay, interval, single)
|
|
||||||
{
|
{
|
||||||
|
private readonly BaseBoat _boat;
|
||||||
|
|
||||||
|
public MoveTimer(BaseBoat boat, TimeSpan delay, TimeSpan interval, int single) : base(delay, interval, single) =>
|
||||||
|
_boat = boat;
|
||||||
|
|
||||||
protected override void OnTick()
|
protected override void OnTick()
|
||||||
{
|
{
|
||||||
boat?.StopBoat();
|
_boat?.StopBoat();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
12
README.md
12
README.md
|
|
@ -30,22 +30,22 @@ ModernUO [](https://archlinux.org/download/)
|
[](https://archlinux.org/download/)
|
||||||
|
|
||||||
#### Running the server
|
#### Running the server
|
||||||
[](https://dotnet.microsoft.com/download/dotnet/7.0)
|
[](https://dotnet.microsoft.com/download/dotnet/7.0)
|
||||||
|
|
||||||
#### Development
|
#### Development
|
||||||
[](https://git-scm.com/downloads)
|
[](https://git-scm.com/downloads)
|
||||||
[](https://dotnet.microsoft.com/download/dotnet/7.0)
|
[](https://dotnet.microsoft.com/download/dotnet/7.0)
|
||||||
|
|
||||||
#### Supported IDEs
|
#### Supported IDEs
|
||||||
|
|
||||||
<p align="left"><a href="https://www.jetbrains.com/rider/download"><img height="64" title="Jetbrains Rider 2022.3.1+"
|
<p align="left"><a href="https://www.jetbrains.com/rider/download"><img height="64" title="Jetbrains Rider 2023.2+"
|
||||||
alt="Jetbrains Rider 2022.3.1+"
|
alt="Jetbrains Rider 2023.2+"
|
||||||
src="https://user-images.githubusercontent.com/3953314/133473479-734e425c-fbb6-433a-af2d-2cc8444398e8.png"></a><img
|
src="https://user-images.githubusercontent.com/3953314/133473479-734e425c-fbb6-433a-af2d-2cc8444398e8.png"></a><img
|
||||||
alt="space" width="32" src="https://user-images.githubusercontent.com/3953314/200151935-3c1521ec-16cb-487b-85a2-7454d347c585.png"><a href="https://code.visualstudio.com/download"><img height="64" title="VSCode"
|
alt="space" width="32" src="https://user-images.githubusercontent.com/3953314/200151935-3c1521ec-16cb-487b-85a2-7454d347c585.png"><a href="https://code.visualstudio.com/download"><img height="64" title="VSCode"
|
||||||
alt="VSCode"
|
alt="VSCode"
|
||||||
src="https://user-images.githubusercontent.com/3953314/200161017-7697171f-8f13-4829-95d0-8a25b59ee4c9.png"></a><img alt="space" width="32"
|
src="https://user-images.githubusercontent.com/3953314/200161017-7697171f-8f13-4829-95d0-8a25b59ee4c9.png"></a><img alt="space" width="32"
|
||||||
src="https://user-images.githubusercontent.com/3953314/200151935-3c1521ec-16cb-487b-85a2-7454d347c585.png"><a href="https://visualstudio.microsoft.com/vs/community/"><img height="64" title="Visual Studio 2022 v17.4+"
|
src="https://user-images.githubusercontent.com/3953314/200151935-3c1521ec-16cb-487b-85a2-7454d347c585.png"><a href="https://visualstudio.microsoft.com/vs/community/"><img height="64" title="Visual Studio 2022 v17.7+"
|
||||||
alt="Visual Studio 2022 v17.4+"
|
alt="Visual Studio 2022 v17.7+"
|
||||||
src="https://user-images.githubusercontent.com/3953314/133473556-35fd48b4-6460-49b1-b7c5-b4a8c529cc04.png"></a></p>
|
src="https://user-images.githubusercontent.com/3953314/133473556-35fd48b4-6460-49b1-b7c5-b4a8c529cc04.png"></a></p>
|
||||||
|
|
||||||
## Getting Started
|
## Getting Started
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ jobs:
|
||||||
displayName: 'Install .NET 7'
|
displayName: 'Install .NET 7'
|
||||||
inputs:
|
inputs:
|
||||||
packageType: sdk
|
packageType: sdk
|
||||||
version: 7.0.304
|
version: 7.0.400
|
||||||
- task: NuGetAuthenticate@1
|
- task: NuGetAuthenticate@1
|
||||||
- script: ./publish.cmd Release
|
- script: ./publish.cmd Release
|
||||||
displayName: 'Build'
|
displayName: 'Build'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue