Skip to content

Commit 5811f80

Browse files
authored
Merge pull request #28 from Smalls1652/update/dotnet8
Update to .NET 8
2 parents ee372a8 + 5982184 commit 5811f80

4 files changed

Lines changed: 11 additions & 11 deletions

File tree

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"type": "coreclr",
77
"request": "launch",
88
"preLaunchTask": "Build: MuzakBot.App",
9-
"program": "${workspaceFolder}/src/App/bin/Debug/net7.0/MuzakBot.App.dll",
9+
"program": "${workspaceFolder}/src/App/bin/Debug/net8.0/MuzakBot.App.dll",
1010
"args": [],
1111
"cwd": "${workspaceFolder}/src/App",
1212
"stopAtEntry": false,

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build-env
1+
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build-env
22
WORKDIR /app
33

44
COPY ./src/App/ ./
@@ -7,7 +7,7 @@ RUN dotnet restore
77

88
RUN dotnet publish -c Release -o out
99

10-
FROM mcr.microsoft.com/dotnet/runtime:7.0
10+
FROM mcr.microsoft.com/dotnet/runtime:8.0
1111

1212
WORKDIR /app
1313
COPY --from=build-env /app/out/ .

global.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"sdk": {
3-
"version": "7.0.306",
4-
"rollForward": "latestMinor",
2+
"sdk": {
3+
"version": "8.0.0",
4+
"rollForward": "latestFeature",
55
"allowPrerelease": false
6-
}
7-
}
6+
}
7+
}

src/App/App.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net7.0</TargetFramework>
5+
<TargetFramework>net8.0</TargetFramework>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<Nullable>enable</Nullable>
88
<EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>
@@ -26,12 +26,12 @@
2626
</PropertyGroup>
2727

2828
<PropertyGroup>
29-
<CorePackageVersion>7.*</CorePackageVersion>
29+
<CorePackageVersion>8.0.*</CorePackageVersion>
3030
</PropertyGroup>
3131

3232
<ItemGroup>
3333
<PackageReference Include="Discord.Net" Version="3.12.0" />
34-
<PackageReference Include="Microsoft.Extensions.Caching.Memory" Version="7.0.0" />
34+
<PackageReference Include="Microsoft.Extensions.Caching.Memory" Version="$(CorePackageVersion)" />
3535
<PackageReference Include="Microsoft.Extensions.Configuration" Version="$(CorePackageVersion)" />
3636
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="$(CorePackageVersion)" />
3737
<PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="$(CorePackageVersion)" />

0 commit comments

Comments
 (0)