Skip to content

Commit

Permalink
Merge pull request #245 from Q-Sharp/main
Browse files Browse the repository at this point in the history
update to dotnet 8 /  nuget packages + introduce github actions
  • Loading branch information
Razzmatazzz authored Aug 26, 2024
2 parents d564a07 + e80f71c commit 8297ff7
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 9 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/dotnet-desktop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: .NET Core Desktop

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:

runs-on: windows-latest

env:
Project: RemnantSaveGuardian/RemnantSaveGuardian.csproj

steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x

- name: Setup MSBuild.exe
uses: microsoft/setup-msbuild@v2

# Just in case there will be some unit tests in future
- name: Execute unit tests
run: dotnet test

- name: Restore the application
run: msbuild $env:Project /t:Restore /p:Configuration=Release

- uses: kzrnm/get-net-sdk-project-versions-action@v2
id: get-version
with:
proj-path: ${{ env.Project }}

- name: publish
run: dotnet publish -o "./publish"

- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: 'RemnantSaveGuardian_${{steps.get-version.outputs.assembly-version}}'
path: ./publish
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Back up your Remnant 2 saves and view your world rolls.
**This project is a work in progress. Lots of features are broken or partially implemented.**

## Installation
1. Download and install [Microsoft .NET 6.0](https://dotnet.microsoft.com/en-us/download) or greater
1. Download and install [Microsoft .NET 8.0](https://dotnet.microsoft.com/en-us/download) or greater
2. Download the [latest release](https://github.com/Razzmatazzz/RemnantSaveGuardian/releases/latest/download/RemnantSaveGuardian.zip)
3. Unzip the latest release to a folder of your choosing (probably not the same folder where you have the game installed)
4. Run RemnantSaveGuardian.exe
Expand Down
3 changes: 3 additions & 0 deletions RemnantSaveGuardian.sln
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{D6BEAB10-FA9E-421D-A7E6-ED1F5203B96F}"
ProjectSection(SolutionItems) = preProject
Directory.Build.props = Directory.Build.props
.github\workflows\dotnet-desktop.yml = .github\workflows\dotnet-desktop.yml
LICENSE = LICENSE
README.md = README.md
EndProjectSection
EndProject
Global
Expand Down
14 changes: 6 additions & 8 deletions RemnantSaveGuardian/RemnantSaveGuardian.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@

<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net6.0-windows</TargetFramework>
<TargetFramework>net8.0-windows</TargetFramework>
<Nullable>enable</Nullable>
<LangVersion>10.0</LangVersion>
<UseWPF>true</UseWPF>
<UseWindowsForms>true</UseWindowsForms>
<SatelliteResourceLanguages>en;ru;de;es;fr;it;ja;ko;pt-BR;zh-Hans;zh-Hant</SatelliteResourceLanguages>
<ApplicationManifest>app.manifest</ApplicationManifest>
<ApplicationIcon>Assets\256.ico</ApplicationIcon>
<AssemblyVersion>1.3.0.0</AssemblyVersion>
<AssemblyVersion>1.3.1.0</AssemblyVersion>
<RunPostBuildEvent>OnOutputUpdated</RunPostBuildEvent>
</PropertyGroup>

Expand All @@ -19,12 +17,12 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Xaml.Behaviors.Wpf" Version="1.1.39" />
<PackageReference Include="Microsoft.Xaml.Behaviors.Wpf" Version="1.1.77" />
<PackageReference Include="WPF-UI" Version="2.0.3" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="6.0.1" />
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="8.0.0" />
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.2.2" />
<PackageReference Include="WPFLocalizeExtension" Version="3.10.0" />
<PackageReference Include="Autoupdater.NET.Official" Version="1.8.4" />
<PackageReference Include="Autoupdater.NET.Official" Version="1.8.5" />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit 8297ff7

Please sign in to comment.