Skip to content

Commit 8e5f6e0

Browse files
committed
set up auto versioning with KSPBT
1 parent 432c45d commit 8e5f6e0

7 files changed

Lines changed: 40 additions & 55 deletions

File tree

GameData/RocketSoundEnhancement/RocketSoundEnhancement.version

Lines changed: 0 additions & 34 deletions
This file was deleted.

RocketSoundEnhancement.props

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="Source/RocketSoundEnhancement.version.props" />
4+
<PropertyGroup>
5+
<BinariesOutputRelativePath>GameData\RocketSoundEnhancement\Plugins</BinariesOutputRelativePath>
6+
<GenerateKSPAssemblyAttribute>true</GenerateKSPAssemblyAttribute>
7+
</PropertyGroup>
8+
</Project>

Source/RocketSoundEnhancement.Unity/RocketSoundEnhancement.Unity.csproj

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@
44
<TargetFramework>net4.8</TargetFramework>
55
</PropertyGroup>
66

7-
<PropertyGroup>
8-
<BinariesOutputRelativePath>GameData\RocketSoundEnhancement\Plugins</BinariesOutputRelativePath>
9-
<GenerateKSPAssemblyAttribute>true</GenerateKSPAssemblyAttribute>
10-
</PropertyGroup>
11-
127
<ItemGroup>
138
<PackageReference Include="KSPBuildTools" Version="0.0.4" />
149
</ItemGroup>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"NAME":"Rocket Sound Enhancement",
3+
"URL": "https://github.com/KSPModStewards/RocketSoundEnhancement/releases/latest/download/RocketSoundEnhancement.version",
4+
"DOWNLOAD":"https://github.com/KSPModStewards/RocketSoundEnhancement/releases"
5+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup>
4+
<Version>0.9.12.0</Version>
5+
</PropertyGroup>
6+
</Project>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup>
4+
<Version>@VERSION_FULL@</Version>
5+
</PropertyGroup>
6+
</Project>

Source/RocketSoundEnhancement/RocketSoundEnhancement.csproj

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,6 @@
33
<PropertyGroup>
44
<TargetFramework>net4.8</TargetFramework>
55
</PropertyGroup>
6-
<ItemGroup>
7-
<Publicize Include="Assembly-CSharp" IncludeCompilerGeneratedMembers="false" />
8-
</ItemGroup>
9-
10-
<PropertyGroup>
11-
<BinariesOutputRelativePath>GameData\RocketSoundEnhancement\Plugins</BinariesOutputRelativePath>
12-
<GenerateKSPAssemblyAttribute>true</GenerateKSPAssemblyAttribute>
13-
<GenerateKSPAssemblyDependencyAttributes>true</GenerateKSPAssemblyDependencyAttributes>
14-
</PropertyGroup>
156

167
<ItemGroup>
178
<ProjectReference
@@ -20,6 +11,20 @@
2011
<Name>RocketSoundEnhancement.Unity</Name>
2112
<Private>False</Private>
2213
</ProjectReference>
14+
<Reference Include="HarmonyKSP">
15+
<HintPath>$(KSPRoot)/GameData/000_Harmony/0Harmony.dll</HintPath>
16+
<Private>false</Private>
17+
<KSPAssembly>HarmonyKSP</KSPAssembly>
18+
<KSPAssemblyVersion>1.0.0</KSPAssemblyVersion>
19+
<CKANIdentifier>Harmony2</CKANIdentifier>
20+
</Reference>
21+
</ItemGroup>
22+
23+
<ItemGroup>
24+
<KSPVersionFile Include="$(MSBuildProjectDirectory)/../RocketSoundEnhancement.version">
25+
<Destination>$(RepoRootPath)/GameData/RocketSoundEnhancement/RocketSoundEnhancement.version</Destination>
26+
<KSP_Version_Min>1.12.3</KSP_Version_Min>
27+
</KSPVersionFile>
2328
</ItemGroup>
2429

2530
<ItemGroup>
@@ -29,13 +34,7 @@
2934
</PackageReference>
3035
<PackageReference Include="KSPBuildTools" Version="0.0.4" />
3136

32-
<Reference Include="HarmonyKSP">
33-
<HintPath>$(KSPRoot)/GameData/000_Harmony/0Harmony.dll</HintPath>
34-
<Private>false</Private>
35-
<KSPAssembly>HarmonyKSP</KSPAssembly>
36-
<KSPAssemblyVersion>1.0.0</KSPAssemblyVersion>
37-
<CKANIdentifier>Harmony2</CKANIdentifier>
38-
</Reference>
37+
<Publicize Include="Assembly-CSharp" IncludeCompilerGeneratedMembers="false" />
3938
</ItemGroup>
4039

4140
</Project>

0 commit comments

Comments
 (0)