diff --git a/GameData/KSPCommunityFixes/KSPCommunityFixes.version b/GameData/KSPCommunityFixes/KSPCommunityFixes.version index b4016abd..cf0cb646 100644 --- a/GameData/KSPCommunityFixes/KSPCommunityFixes.version +++ b/GameData/KSPCommunityFixes/KSPCommunityFixes.version @@ -2,8 +2,8 @@ "NAME": "KSPCommunityFixes", "URL": "https://raw.githubusercontent.com/KSPModdingLibs/KSPCommunityFixes/master/GameData/KSPCommunityFixes/KSPCommunityFixes.version", "DOWNLOAD": "https://github.com/KSPModdingLibs/KSPCommunityFixes/releases", - "VERSION": {"MAJOR": 1, "MINOR": 40, "PATCH": 1, "BUILD": 0}, - "KSP_VERSION": {"MAJOR": 1, "MINOR": 12, "PATCH": 5}, - "KSP_VERSION_MIN": {"MAJOR": 1, "MINOR": 8, "PATCH": 0}, - "KSP_VERSION_MAX": {"MAJOR": 1, "MINOR": 12, "PATCH": 5} + "VERSION": "1.40.1", + "KSP_VERSION": "1.12.5", + "KSP_VERSION_MIN": "1.8.0", + "KSP_VERSION_MAX": "1.12.5" } diff --git a/KSPCommunityFixes/KSPCommunityFixes.csproj b/KSPCommunityFixes/KSPCommunityFixes.csproj index 29098f6b..26316f40 100644 --- a/KSPCommunityFixes/KSPCommunityFixes.csproj +++ b/KSPCommunityFixes/KSPCommunityFixes.csproj @@ -1,99 +1,97 @@ - - - - + + - Debug - AnyCPU - {4E405C02-5AEB-4975-B26C-07582BB3FB15} - Library - Properties - KSPCommunityFixes - KSPCommunityFixes - v4.7.2 - 8.0 - 512 - true + + 1.40.1 + $(Version).0 + $(Version.Split('.')[0]).$(Version.Split('.')[1]).0.0 + + net472 + 12 x64 + true + false true - - - - true - portable - false - bin\Debug\ + + TRACE;DEBUG;ENABLE_PROFILER - prompt - 4 - true - - portable - true - bin\Release\ + TRACE - prompt - 4 - true - - - - + + - KSP_x64.exe - KSP.app - KSP.x86_64 - KSP_x64_Data\Managed - KSP.app\Contents\Resources\Data\Managed - KSP_Data\Managed - $(ReferencePath)\$(ManagedRelativePath) - Program - $(ReferencePath)\$(KSPExecutable) - $(ReferencePath) + $(MSBuildThisFileDirectory)..\GameData\KSPCommunityFixes + Plugins + false + true + true + true + false - + + + $(MSBuildThisFileDirectory)..\ + KSPCommunityFixes + KSPCommunityFixes.version + false + + - - System (KSP/Mono) - False - - - System.Core (KSP/Mono) - False - - - System.Xml (KSP/Mono) - False - - - UnityEngine - False - - - Assembly-CSharp - False - - - Assembly-CSharp-firstpass - False - - - KSPAssets + + + + + + + $(KSPBT_ModRoot)\$(AVCFilename) + $(Version) + https://raw.githubusercontent.com/KSPModdingLibs/KSPCommunityFixes/master/GameData/KSPCommunityFixes/KSPCommunityFixes.version + https://github.com/KSPModdingLibs/KSPCommunityFixes/releases + 1.12.5 + 1.8.0 + 1.12.5 + + + + + + {32b601f4-b648-4c69-aa98-620fe7ba070c} + MultipleModuleInPartAPI + MultipleModulePartAPI + 1.0.0 + + + + $(MSBuildThisFileDirectory)lib\0Harmony.dll False + HarmonyKSP + 1.0.0 + true - - Harmony + + + + $(KSPBT_ManagedPath)\KSPAssets.dll False - - ModuleManager + + + + + <_ModuleManagerFiles Include="$(KSPBT_GameRoot)\GameData\ModuleManager.*.dll" /> + False + ModuleManager + 1.0.0 + true - + + @@ -127,349 +125,57 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {32b601f4-b648-4c69-aa98-620fe7ba070c} - MultipleModuleInPartAPI - - - - - - - - - $(SolutionDir) - KSPCommunityFixes - true - false - KSPCommunityFixes.version - - - - - - - - - - + + + + - + - - - - - - - $(ReferencePath)\GameData\$(GameDataFolderName)\Plugins - $(ReferencePath)\GameData\$(GameDataFolderName) - + - + <_GameDataFiles Include="$(RepoRootPath)GameData\**\*.*" /> + <_BinariesToCopy Include="$(TargetDir)*.*" /> - + + + - - $(RepoRootPath)\GameData\$(GameDataFolderName)\Plugins - $(RepoRootPath)\GameData\$(GameDataFolderName) - - + <_BinariesToCopy Include="$(TargetDir)*.*" /> - + + - $(RepoRootPath)\Releases - $(PublishFolder)\Temp - $(PublishTempFolderPath)\GameData\$(GameDataFolderName) - $(PublishPluginRootPath)\Plugins - $(PublishPluginRootPath) + <_PublishFolder>$(RepoRootPath)Releases + <_PublishTempFolderPath>$(_PublishFolder)\Temp + <_PublishPluginRootPath>$(_PublishTempFolderPath)\GameData\$(GameDataFolderName) + <_PublishBinariesPath>$(_PublishPluginRootPath)\$(KSPBT_ModPluginFolder) - + - + <_GameDataFiles Include="$(RepoRootPath)GameData\**\*.*" /> + <_BinariesToCopy Include="$(TargetDir)*.*" /> - - - - - - - - - - - - - + + + + + - - - - - - - - - - - - - = 0) - { - current += itemName.Length; - while (current < content.Length && char.IsNumber(content[current])) - { - Major += content[current]; - current++; - } - } - else - { - Major = "0"; - } - - itemName = "\"MINOR\":"; - current = content.IndexOf(itemName, StringComparison.OrdinalIgnoreCase); - if (current >= 0) - { - current += itemName.Length; - while (current < content.Length && char.IsNumber(content[current])) - { - Minor += content[current]; - current++; - } - } - else - { - Minor = "0"; - } - - itemName = "\"PATCH\":"; - current = content.IndexOf(itemName, StringComparison.OrdinalIgnoreCase); - if (current >= 0) - { - current += itemName.Length; - while (current < content.Length && char.IsNumber(content[current])) - { - Patch += content[current]; - current++; - } - } - else - { - Patch = "0"; - } - itemName = "\"BUILD\":"; - current = content.IndexOf(itemName, StringComparison.OrdinalIgnoreCase); - if (current >= 0) - { - current += itemName.Length; - while (current < content.Length && char.IsNumber(content[current])) - { - Build += content[current]; - current++; - } - } - else - { - Build = "0"; - } - - FullVersion = Major + "." + Minor + "." + Patch + "." + Build; -]]> - - - - - - - - - - - - - - - - - This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. - - - - - - \ No newline at end of file + diff --git a/KSPCommunityFixes/Properties/AssemblyInfo.cs b/KSPCommunityFixes/Properties/AssemblyInfo.cs index ddc45b1a..a39c7f02 100644 --- a/KSPCommunityFixes/Properties/AssemblyInfo.cs +++ b/KSPCommunityFixes/Properties/AssemblyInfo.cs @@ -1,38 +1,4 @@ -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("KSPCommunityFixes")] -[assembly: AssemblyDescription("MIT license")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("KSPCommunityFixes")] -[assembly: AssemblyCopyright("")] -[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("4e405c02-5aeb-4975-b26c-07582bb3fb15")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -[assembly: AssemblyVersion("1.40.0.0")] -[assembly: AssemblyFileVersion("1.40.1.0")] - -[assembly: KSPAssembly("KSPCommunityFixes", 1, 40, 1)] -[assembly: KSPAssemblyDependency("MultipleModulePartAPI", 1, 0, 0)] -[assembly: KSPAssemblyDependency("ModuleManager", 1, 0)] -[assembly: KSPAssemblyDependency("HarmonyKSP", 1, 0)] diff --git a/KSPCommunityFixes/packages.config b/KSPCommunityFixes/packages.config deleted file mode 100644 index 1b8d4960..00000000 --- a/KSPCommunityFixes/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/MultipleModuleInPartAPI/MultipleModuleInPartAPI.csproj b/MultipleModuleInPartAPI/MultipleModuleInPartAPI.csproj index 08970b54..5187bc15 100644 --- a/MultipleModuleInPartAPI/MultipleModuleInPartAPI.csproj +++ b/MultipleModuleInPartAPI/MultipleModuleInPartAPI.csproj @@ -1,62 +1,29 @@ - - - - + - KSP_x64_Data\Managed - KSP.app\Contents\Resources\Data\Managed - KSP_Data\Managed - $(ReferencePath)\$(ManagedRelativePath) - - - Debug - AnyCPU - {32B601F4-B648-4C69-AA98-620FE7BA070C} - Library - Properties - MultipleModuleInPartAPI + 1.0.0 + $(Version).0 + $(Version.Split('.')[0]).$(Version.Split('.')[1]).0.0 + + net472 0_MultipleModuleInPartAPI - v4.7.2 - 512 - true - true - - - - - true - portable - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 + false - - portable - true - bin\Release\ - TRACE - prompt - 4 + + + + + + + false + false + + false + false + false + - - System (KSP/Mono) - False - - - System.Core (KSP/Mono) - False - - - Assembly-CSharp - False - - - - - + - - \ No newline at end of file + diff --git a/MultipleModuleInPartAPI/Properties/AssemblyInfo.cs b/MultipleModuleInPartAPI/Properties/AssemblyInfo.cs index c0cf57e9..15569670 100644 --- a/MultipleModuleInPartAPI/Properties/AssemblyInfo.cs +++ b/MultipleModuleInPartAPI/Properties/AssemblyInfo.cs @@ -1,38 +1,6 @@ -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("IMultipleModuleInPart")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("IMultipleModuleInPart")] -[assembly: AssemblyCopyright("Copyright © 2021")] -[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("32b601f4-b648-4c69-aa98-620fe7ba070c")] -// 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")] - -[assembly: KSPAssembly("MultipleModulePartAPI", 1, 0, 0)] \ No newline at end of file +[assembly: KSPAssembly("MultipleModulePartAPI", 1, 0, 0)] diff --git a/README.md b/README.md index 5f01cc67..fec66947 100644 --- a/README.md +++ b/README.md @@ -234,7 +234,7 @@ Then close / re-open the solution. Building in the `Debug` configuration will update the `GameData` folder in your KSP install, building in the `Release` configuration will additionally create a zipped release in the `Releases` repository root folder. -For incrementing the version, edit the `KSPCommunityFixes.version` KSP-AVC file, changes will be propagated to `AssemblyInfo.cs` when building in the `Release` configuration. +To increment the version change the `` property in `KSPCommunityFixes.csproj` then build. Changes will be automatically updated everywhere else. The `Start` action of the IDE will trigger a build, update the `GameData` files in the KSP install and launch KSP. If doing so in the `Debug` configuration and if your KSP install is modified to be debuggable, you will be able to debug the code from within your IDE (if your IDE provides Unity debugging support).