From 36cd555193f0ec569b41324909f70768d970c3e1 Mon Sep 17 00:00:00 2001 From: Martin Renner Date: Thu, 5 Sep 2024 20:06:20 +0200 Subject: [PATCH] Upgrade from .NET 6.0 to .NET 8.0 Issue #131 --- README.adoc | 2 +- StreamDeckSimHub.Plugin/StreamDeckSimHub.Plugin.csproj | 4 ++-- .../StreamDeckSimHub.PluginTests.csproj | 2 +- release.bat | 3 ++- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/README.adoc b/README.adoc index 0bdf9ba..cd376f3 100644 --- a/README.adoc +++ b/README.adoc @@ -51,7 +51,7 @@ WARNING: To download, do not use the green button! Instead, click on "Releases" Be sure to have the SimHub Property Server plugin installed into SimHub (see above). When updating this plugin, be sure to also check the SimHub Property Server plugin for updates. -TIP: For the usage of this plugin, the https://dotnet.microsoft.com/en-us/download/dotnet/6.0[.NET Runtime 6.0] has to be installed. Without this, the plugin won't even start. +TIP: For the usage of this plugin, the https://dotnet.microsoft.com/en-us/download/dotnet/8.0[.NET Runtime 8.0] has to be installed. Without this, the plugin won't even start. Download ".NET Desktop Runtime 8.0.x (x64)" from Microsoft. Download the file `net.planetrenner.simhub.streamDeckPlugin` from the GitHub "Releases" page and double-click it to install it into Stream Deck. diff --git a/StreamDeckSimHub.Plugin/StreamDeckSimHub.Plugin.csproj b/StreamDeckSimHub.Plugin/StreamDeckSimHub.Plugin.csproj index f8d3470..2a12f4b 100644 --- a/StreamDeckSimHub.Plugin/StreamDeckSimHub.Plugin.csproj +++ b/StreamDeckSimHub.Plugin/StreamDeckSimHub.Plugin.csproj @@ -2,14 +2,14 @@ Exe - net6.0 + net8.0 true false win-x64 enable enable StreamDeckSimHub - 11 + 12 diff --git a/StreamDeckSimHub.PluginTests/StreamDeckSimHub.PluginTests.csproj b/StreamDeckSimHub.PluginTests/StreamDeckSimHub.PluginTests.csproj index 2a40787..6c815e2 100644 --- a/StreamDeckSimHub.PluginTests/StreamDeckSimHub.PluginTests.csproj +++ b/StreamDeckSimHub.PluginTests/StreamDeckSimHub.PluginTests.csproj @@ -1,7 +1,7 @@ - net6.0 + net8.0 enable enable diff --git a/release.bat b/release.bat index 5822712..2ff5183 100644 --- a/release.bat +++ b/release.bat @@ -9,11 +9,12 @@ echo Building for configuration: %CONFIG% echo. dotnet publish StreamDeckSimHub.Plugin\StreamDeckSimHub.Plugin.csproj -c %CONFIG% -r win-x64 +if %errorlevel% neq 0 goto :endFailure if exist build rmdir /s /q build if exist build goto :endFailure mkdir build -xcopy StreamDeckSimHub.Plugin\bin\%CONFIG%\net6.0\win-x64\publish build\net.planetrenner.simhub.sdPlugin /e /i /q +xcopy StreamDeckSimHub.Plugin\bin\%CONFIG%\net8.0\win-x64\publish build\net.planetrenner.simhub.sdPlugin /e /i /q cd build ..\..\DistributionTool.exe -b -i net.planetrenner.simhub.sdPlugin -o .