From 32fc39deb868e739bc8a12eb224b9847013b87ee Mon Sep 17 00:00:00 2001 From: StalkR Date: Sun, 21 Apr 2024 11:24:54 +0200 Subject: [PATCH] upgrade csproj to new .NET SDK syntax, remove sln --- .gitignore | 2 +- Properties/AssemblyInfo.cs | 36 ------------------ Setup (run before opening solution).bat | 7 ++-- TimeoutFix.csproj | 50 +++++++------------------ TimeoutFix.sln | 25 ------------- 5 files changed, 19 insertions(+), 101 deletions(-) delete mode 100644 Properties/AssemblyInfo.cs delete mode 100644 TimeoutFix.sln diff --git a/.gitignore b/.gitignore index edec55d..a94e0a8 100644 --- a/.gitignore +++ b/.gitignore @@ -388,4 +388,4 @@ FodyWeavers.xsd *.sln.iml # Junction to SpaceEngineers -GameBinaries +.GameBinaries diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs deleted file mode 100644 index 37cd241..0000000 --- a/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("TimeoutFix")] -[assembly: AssemblyDescription("A plugin to fix the server is not responding error")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("TimeoutFix")] -[assembly: AssemblyCopyright("Copyright © 2023")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("D3C01D03-D271-4840-9C08-A86420E04606")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Setup (run before opening solution).bat b/Setup (run before opening solution).bat index 7ec5a75..5cec28a 100755 --- a/Setup (run before opening solution).bat +++ b/Setup (run before opening solution).bat @@ -1,11 +1,12 @@ -:: This script creates a symlink to the game binaries to account for different installation directories on different systems. +:: Create junctions (symlinks) to binary references to account for different installation directories on different systems. +:: Use the dot (.) prefix so dotnet ignores the folder during build. @echo off set /p path="Please enter the folder location of your SpaceEngineers.exe or SpaceEngineersDedicated.exe: " cd %~dp0 -rmdir GameBinaries > nul 2>&1 -mklink /J GameBinaries "%path%" +rmdir .GameBinaries > nul 2>&1 +mklink /J .GameBinaries "%path%" if errorlevel 1 goto Error echo Done! diff --git a/TimeoutFix.csproj b/TimeoutFix.csproj index 2ad8892..c8b3dca 100644 --- a/TimeoutFix.csproj +++ b/TimeoutFix.csproj @@ -1,66 +1,44 @@ - - - + + net48 Release - AnyCPU - {D3C01D03-D271-4840-9C08-A86420E04606} Library - Properties - TimeoutFix - TimeoutFix - v4.8 - 512 - true + true x64 - true - full - false bin\Debug\ - DEBUG;TRACE - prompt - 4 - true x64 - none - true bin\Release\ - TRACE - prompt - 4 + none none - true - - - - - - GameBinaries\Sandbox.Game.dll + .GameBinaries\Sandbox.Game.dll - GameBinaries\Sandbox.Graphics.dll + .GameBinaries\Sandbox.Graphics.dll - GameBinaries\VRage.dll + .GameBinaries\VRage.dll + False - GameBinaries\VRage.Game.dll + .GameBinaries\VRage.Game.dll + False - GameBinaries\VRage.Library.dll + .GameBinaries\VRage.Library.dll + False - GameBinaries\VRage.Math.dll + .GameBinaries\VRage.Math.dll + False - \ No newline at end of file diff --git a/TimeoutFix.sln b/TimeoutFix.sln deleted file mode 100644 index cd63ed1..0000000 --- a/TimeoutFix.sln +++ /dev/null @@ -1,25 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 16 -VisualStudioVersion = 16.0.29215.179 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TimeoutFix", "TimeoutFix.csproj", "{D3C01D03-D271-4840-9C08-A86420E04606}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {D3C01D03-D271-4840-9C08-A86420E04606}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {D3C01D03-D271-4840-9C08-A86420E04606}.Debug|Any CPU.Build.0 = Debug|Any CPU - {D3C01D03-D271-4840-9C08-A86420E04606}.Release|Any CPU.ActiveCfg = Release|Any CPU - {D3C01D03-D271-4840-9C08-A86420E04606}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {363806C1-5B50-4D2A-B17D-8F738ABE3DC1} - EndGlobalSection -EndGlobal