Skip to content

Commit ea44756

Browse files
committed
add version.props; use kspbt to generate .version file
1 parent e38f9c6 commit ea44756

File tree

6 files changed

+29
-89
lines changed

6 files changed

+29
-89
lines changed

GameData/TUFX/TUFX.version

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,10 @@
11
{
2-
"NAME": "TUFX",
3-
"URL": "https://raw.githubusercontent.com/KSPModStewards/TUFX/main/GameData/TUFX/TUFX.version",
4-
"DOWNLOAD": "https://github.com/KSPModStewards/TUFX/releases",
5-
"CHANGE_LOG_URL": "https://github.com/KSPModStewards/TUFX/blob/main/CHANGELOG.md",
6-
"VERSION": {
7-
"MAJOR": "1",
8-
"MINOR": "1",
9-
"PATCH": "0"
10-
},
11-
"KSP_VERSION_MIN": {
12-
"MAJOR": 1,
13-
"MINOR": 12,
14-
"PATCH": 3
15-
},
16-
"KSP_VERSION_MAX": {
17-
"MAJOR": 1,
18-
"MINOR": 12,
19-
"PATCH": 99
20-
}
2+
"NAME": "TUFX",
3+
"URL": "https://github.com/KSPModStewards/TUFX/releases/latest/download/TUFX.version",
4+
"DOWNLOAD": "https://github.com/KSPModStewards/TUFX/releases",
5+
"CHANGE_LOG_URL": "https://github.com/KSPModStewards/TUFX/blob/main/CHANGELOG.md",
6+
"VERSION": "1.1.0.0",
7+
"KSP_VERSION_MIN": "1.12.3",
8+
"KSP_VERSION_MAX": "'1.12'",
9+
"KSP_VERSION": "1.12"
2110
}

GameData/TUFX/TUFX.version.versiontemplate

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

Source/Properties/AssemblyInfo.cs.versiontemplate

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

Source/TUFX.csproj

Lines changed: 9 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,24 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project Sdk="Microsoft.NET.Sdk">
3+
<Import Project="TUFX.version.props" />
34
<PropertyGroup>
45
<OutputType>Library</OutputType>
56
<RootNamespace>TUFX</RootNamespace>
67
<AssemblyName>TUFX</AssemblyName>
78
<TargetFramework>net4.8</TargetFramework>
8-
</PropertyGroup>
9-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
10-
<DebugSymbols>true</DebugSymbols>
11-
<DebugType>portable</DebugType>
12-
<Optimize>false</Optimize>
13-
<OutputPath>bin\Debug\</OutputPath>
14-
<DefineConstants>TRACE;DEBUG;UNITY_STANDALONE, UNITY_2017_1_OR_NEWER, UNITY_2017_2_OR_NEWER, UNITY_2017_3_OR_NEWER, UNITY_2018_1_OR_NEWER, UNITY_2018_2_OR_NEWER, UNITY_2018_3_OR_NEWER, UNITY_2019_1_OR_NEWER, UNITY_2019_2_OR_NEWER, UNITY_2019_3_OR_NEWER, ENABLE_VR_MODULE, ENABLE_VR</DefineConstants>
15-
<ErrorReport>prompt</ErrorReport>
16-
<WarningLevel>4</WarningLevel>
17-
</PropertyGroup>
18-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
19-
<DebugType>portable</DebugType>
20-
<Optimize>true</Optimize>
21-
<OutputPath>bin\Release\</OutputPath>
229
<DefineConstants>UNITY_STANDALONE, UNITY_2017_1_OR_NEWER, UNITY_2017_2_OR_NEWER, UNITY_2017_3_OR_NEWER, UNITY_2018_1_OR_NEWER, UNITY_2018_2_OR_NEWER, UNITY_2018_3_OR_NEWER, UNITY_2019_1_OR_NEWER, UNITY_2019_2_OR_NEWER, UNITY_2019_3_OR_NEWER, ENABLE_VR_MODULE, ENABLE_VR</DefineConstants>
23-
<ErrorReport>prompt</ErrorReport>
24-
<WarningLevel>4</WarningLevel>
2510
</PropertyGroup>
2611
<PropertyGroup>
2712
<BinariesOutputRelativePath>GameData\TUFX\Plugins</BinariesOutputRelativePath>
2813
<GenerateKSPAssemblyAttribute>true</GenerateKSPAssemblyAttribute>
2914
<GenerateKSPAssemblyDependencyAttributes>true</GenerateKSPAssemblyDependencyAttributes>
3015
</PropertyGroup>
16+
<ItemGroup>
17+
<KSPVersionFile Include="$(RepoRootPath)\GameData\TUFX\TUFX.version">
18+
<Destination>$(RepoRootPath)\GameData\TUFX\TUFX.version</Destination>
19+
<KSP_Version_Min>1.12.3</KSP_Version_Min>
20+
</KSPVersionFile>
21+
</ItemGroup>
3122
<ItemGroup>
3223
<Reference Include="ClickThroughBlocker">
3324
<HintPath>$(KSPRoot)\GameData\000_ClickThroughBlocker\Plugins\ClickThroughBlocker.dll</HintPath>
@@ -39,7 +30,7 @@
3930
<HintPath>$(KSPRoot)\GameData\001_ToolbarControl\Plugins\ToolbarControl.dll</HintPath>
4031
<Private>false</Private>
4132
<CKANIdentifier>ToolbarController</CKANIdentifier>
42-
<KSPAssemblyName>ToolbarController</KSPAssemblyName>
33+
<KSPAssemblyName>ToolbarController</KSPAssemblyName>
4334
<KSPAssemblyVersion>1.0</KSPAssemblyVersion>
4435
</Reference>
4536
</ItemGroup>
@@ -49,7 +40,6 @@
4940
</None>
5041
<None Include="PostProcessing\.editorconfig" />
5142
<None Include="PostProcessing\Unity.Postprocessing.Runtime.asmdef" />
52-
<None Include="Properties\AssemblyInfo.cs.versiontemplate" />
5343
</ItemGroup>
5444
<ItemGroup>
5545
<Publicize Include="Assembly-CSharp" IncludeCompilerGeneratedMembers="false" />
@@ -63,6 +53,6 @@
6353
<PrivateAssets>all</PrivateAssets>
6454
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
6555
</PackageReference>
66-
<PackageReference Include="KSPBuildTools" Version="0.0.3-alpha.4" />
56+
<PackageReference Include="KSPBuildTools" Version="0.0.4" />
6757
</ItemGroup>
6858
</Project>

Source/TUFX.version.props

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 ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup>
4+
<Version>1.1.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 ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup>
4+
<Version>@VERSION_FULL@</Version>
5+
</PropertyGroup>
6+
</Project>

0 commit comments

Comments
 (0)