Skip to content

Commit 6e7f9e5

Browse files
committed
use kspbuildtools for KSPAssembly attributes
1 parent 22b5a31 commit 6e7f9e5

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

Source/Properties/AssemblyInfo.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,3 @@
1818
// The following GUID is for the ID of the typelib if this project is exposed to COM
1919
[assembly: Guid("02efb286-38a9-47c4-83cd-6dd59077aa2f")]
2020

21-
[assembly: KSPAssembly("TUFX", 1, 1, 0)]
22-
23-
[assembly: KSPAssemblyDependency("ClickThroughBlocker", 1, 0)]
24-
[assembly: KSPAssemblyDependency("ToolbarController", 1, 0)]

Source/TUFX.csproj

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project Sdk="Microsoft.NET.Sdk">
33
<PropertyGroup>
4-
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
5-
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
6-
<ProjectGuid>{02EFB286-38A9-47C4-83CD-6DD59077AA2F}</ProjectGuid>
74
<OutputType>Library</OutputType>
8-
<AppDesignerFolder>Properties</AppDesignerFolder>
95
<RootNamespace>TUFX</RootNamespace>
106
<AssemblyName>TUFX</AssemblyName>
117
<TargetFramework>net4.8</TargetFramework>
@@ -29,15 +25,21 @@
2925
</PropertyGroup>
3026
<PropertyGroup>
3127
<BinariesOutputRelativePath>GameData\TUFX\Plugins</BinariesOutputRelativePath>
28+
<GenerateKSPAssemblyAttribute>true</GenerateKSPAssemblyAttribute>
29+
<GenerateKSPAssemblyDependencyAttributes>true</GenerateKSPAssemblyDependencyAttributes>
3230
</PropertyGroup>
3331
<ItemGroup>
34-
<Reference Include="$(KSPRoot)\GameData\000_ClickThroughBlocker\Plugins\ClickThroughBlocker.dll">
32+
<Reference Include="ClickThroughBlocker">
33+
<HintPath>$(KSPRoot)\GameData\000_ClickThroughBlocker\Plugins\ClickThroughBlocker.dll</HintPath>
3534
<Private>false</Private>
3635
<CKANIdentifier>ClickThroughBlocker</CKANIdentifier>
36+
<KSPAssemblyVersion>1.0</KSPAssemblyVersion>
3737
</Reference>
38-
<Reference Include="$(KSPRoot)\GameData\001_ToolbarControl\Plugins\ToolbarControl.dll">
38+
<Reference Include="ToolbarControl">
39+
<HintPath>$(KSPRoot)\GameData\001_ToolbarControl\Plugins\ToolbarControl.dll</HintPath>
3940
<Private>false</Private>
4041
<CKANIdentifier>ToolbarController</CKANIdentifier>
42+
<KSPAssemblyVersion>1.0</KSPAssemblyVersion>
4143
</Reference>
4244
</ItemGroup>
4345
<ItemGroup>
@@ -60,6 +62,6 @@
6062
<PrivateAssets>all</PrivateAssets>
6163
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
6264
</PackageReference>
63-
<PackageReference Include="KSPBuildTools" Version="0.0.3" />
65+
<PackageReference Include="KSPBuildTools" Version="0.0.3-alpha.4" />
6466
</ItemGroup>
6567
</Project>

0 commit comments

Comments
 (0)