Skip to content

Commit

Permalink
Upgrade to .NET 9 (#25)
Browse files Browse the repository at this point in the history
* Upgrade to .NET 9

* Update Pipeline to .NET 9
  • Loading branch information
ovation22 authored Nov 25, 2024
1 parent 023b631 commit 89dc197
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
dotnet-version: 9.0.x

- name: Restore dependencies
run: dotnet restore
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

RetroPie Manager is a web-based interface for managing and configuring your RetroPie setup. This tool aims to simplify the management of games, controllers, and system settings for RetroPie users.

Currently we're on .NET 9. If you're looking for .NET 8, it's [here](https://github.com/ovation22/RetroPie.Manager/tree/NET-8).

This is very much still a work in progress.

## Screenshots
Expand Down Expand Up @@ -56,10 +58,10 @@ This is very much still a work in progress.

### Installation

1. Install .NET 8
1. Install .NET 9

```bash
wget -O - https://raw.githubusercontent.com/pjgpetecodes/dotnet8pi/main/install.sh | sudo bash
wget -O - https://raw.githubusercontent.com/pjgpetecodes/dotnet9pi/main/install.sh | sudo bash
```

2. Install git
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<NoDefaultLaunchSettingsFile>true</NoDefaultLaunchSettingsFile>
Expand Down
6 changes: 3 additions & 3 deletions src/RetroPie.Manager.Web/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#See https://aka.ms/customizecontainer to learn how to customize your debug container and how Visual Studio uses this Dockerfile to build your images for faster debugging.

# This stage will be used for debugging
FROM mcr.microsoft.com/dotnet/aspnet:8.0-alpine AS debug
FROM mcr.microsoft.com/dotnet/aspnet:9.0-alpine AS debug
USER app
WORKDIR /app
EXPOSE 8080
EXPOSE 8081

FROM mcr.microsoft.com/dotnet/sdk:8.0-alpine AS build
FROM mcr.microsoft.com/dotnet/sdk:9.0-alpine AS build
ARG BUILD_CONFIGURATION=Release
WORKDIR /src
COPY ["src/RetroPie.Manager.Web/RetroPie.Manager.Web.csproj", "RetroPie.Manager.Web/"]
Expand All @@ -22,7 +22,7 @@ ARG BUILD_CONFIGURATION=Release
RUN dotnet publish "./RetroPie.Manager.Web.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false

# This stage will be used for production and as such is based on the chiseled Ubuntu image
FROM mcr.microsoft.com/dotnet/runtime:8.0-jammy-chiseled AS final
FROM mcr.microsoft.com/dotnet/runtime:9.0-jammy-chiseled AS final
USER app
WORKDIR /app
COPY --from=publish /app/publish .
Expand Down
2 changes: 1 addition & 1 deletion src/RetroPie.Manager.Web/RetroPie.Manager.Web.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<UserSecretsId>8c1e0a0f-597c-4e1f-a260-daa0f1886d93</UserSecretsId>
Expand Down

0 comments on commit 89dc197

Please sign in to comment.