Skip to content

Commit f290302

Browse files
committed
use KSPBuildTools
1 parent 1c2fc24 commit f290302

File tree

5 files changed

+42
-289
lines changed

5 files changed

+42
-289
lines changed
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio Version 17
44
VisualStudioVersion = 17.2.32526.322
55
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RocketSoundEnhancement", "RocketSoundEnhancement\RocketSoundEnhancement.csproj", "{BBC72A52-EE4F-4DC0-9845-4350A54AC1CD}"
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RocketSoundEnhancement", "Source\RocketSoundEnhancement\RocketSoundEnhancement.csproj", "{BBC72A52-EE4F-4DC0-9845-4350A54AC1CD}"
77
EndProject
8-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RocketSoundEnhancement.Unity", "RocketSoundEnhancement.Unity\RocketSoundEnhancement.Unity.csproj", "{5DFF0176-7BA8-49F4-8155-F5D9B37D7D3D}"
8+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RocketSoundEnhancement.Unity", "Source\RocketSoundEnhancement.Unity\RocketSoundEnhancement.Unity.csproj", "{5DFF0176-7BA8-49F4-8155-F5D9B37D7D3D}"
99
EndProject
1010
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{23E94561-E5A6-43BE-90D8-A93E167D6A5F}"
1111
ProjectSection(SolutionItems) = preProject
12-
..\changelog.md = ..\changelog.md
13-
..\GameData\RocketSoundEnhancement\RocketSoundEnhancement.version = ..\GameData\RocketSoundEnhancement\RocketSoundEnhancement.version
14-
..\GameData\RocketSoundEnhancement\Settings.cfg = ..\GameData\RocketSoundEnhancement\Settings.cfg
12+
changelog.md = changelog.md
13+
GameData\RocketSoundEnhancement\RocketSoundEnhancement.version = GameData\RocketSoundEnhancement\RocketSoundEnhancement.version
14+
GameData\RocketSoundEnhancement\Settings.cfg = GameData\RocketSoundEnhancement\Settings.cfg
1515
EndProjectSection
1616
EndProject
1717
Global

Source/RocketSoundEnhancement.Unity/Properties/AssemblyInfo.cs

Lines changed: 0 additions & 37 deletions
This file was deleted.
Lines changed: 14 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -1,75 +1,16 @@
1-
<?xml version="1.0" encoding="utf-8"?>
2-
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3-
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFramework>net4.8</TargetFramework>
5+
</PropertyGroup>
6+
47
<PropertyGroup>
5-
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6-
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7-
<ProjectGuid>{5DFF0176-7BA8-49F4-8155-F5D9B37D7D3D}</ProjectGuid>
8-
<OutputType>Library</OutputType>
9-
<AppDesignerFolder>Properties</AppDesignerFolder>
10-
<RootNamespace>RocketSoundEnhancement.Unity</RootNamespace>
11-
<AssemblyName>RocketSoundEnhancement.Unity</AssemblyName>
12-
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
13-
<FileAlignment>512</FileAlignment>
14-
<Deterministic>true</Deterministic>
8+
<BinariesOutputRelativePath>GameData\RocketSoundEnhancement\Plugins</BinariesOutputRelativePath>
9+
<GenerateKSPAssemblyAttribute>true</GenerateKSPAssemblyAttribute>
1510
</PropertyGroup>
16-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
17-
<DebugSymbols>true</DebugSymbols>
18-
<DebugType>portable</DebugType>
19-
<Optimize>false</Optimize>
20-
<OutputPath>..\..\GameData\RocketSoundEnhancement\Plugins\</OutputPath>
21-
<DefineConstants>TRACE;DEBUG;ENABLE_PROFILER;DEVELOPMENT</DefineConstants>
22-
<ErrorReport>prompt</ErrorReport>
23-
<WarningLevel>4</WarningLevel>
24-
</PropertyGroup>
25-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
26-
<DebugType>portable</DebugType>
27-
<Optimize>true</Optimize>
28-
<OutputPath>..\..\GameData\RocketSoundEnhancement\Plugins\</OutputPath>
29-
<DefineConstants>TRACE</DefineConstants>
30-
<ErrorReport>prompt</ErrorReport>
31-
<WarningLevel>4</WarningLevel>
32-
<DebugSymbols>true</DebugSymbols>
33-
</PropertyGroup>
34-
<ItemGroup>
35-
<Reference Include="System" />
36-
<Reference Include="System.Core" />
37-
<Reference Include="System.Xml.Linq" />
38-
<Reference Include="System.Data.DataSetExtensions" />
39-
<Reference Include="Microsoft.CSharp" />
40-
<Reference Include="System.Data" />
41-
<Reference Include="System.Net.Http" />
42-
<Reference Include="System.Xml" />
43-
<Reference Include="UnityEngine">
44-
<HintPath>..\..\..\..\Kerbal Space Program\KSP 1.12.3\KSP_x64_Data\Managed\UnityEngine.dll</HintPath>
45-
<Private>False</Private>
46-
</Reference>
47-
<Reference Include="UnityEngine.CoreModule">
48-
<HintPath>..\..\..\..\Kerbal Space Program\KSP 1.12.3\KSP_x64_Data\Managed\UnityEngine.CoreModule.dll</HintPath>
49-
<Private>False</Private>
50-
</Reference>
51-
<Reference Include="UnityEngine.UI">
52-
<HintPath>..\..\..\..\Kerbal Space Program\KSP 1.12.3\KSP_x64_Data\Managed\UnityEngine.UI.dll</HintPath>
53-
<Private>False</Private>
54-
</Reference>
55-
<Reference Include="UnityEngine.UIModule">
56-
<HintPath>..\..\..\..\Kerbal Space Program\KSP 1.12.3\KSP_x64_Data\Managed\UnityEngine.UIModule.dll</HintPath>
57-
<Private>False</Private>
58-
</Reference>
59-
<Reference Include="Assembly-CSharp">
60-
<Private>False</Private>
61-
</Reference>
62-
</ItemGroup>
63-
<ItemGroup>
64-
<Compile Include="ISettingsPanel.cs" />
65-
<Compile Include="MathHelper.cs" />
66-
<Compile Include="RSE_Panel.cs" />
67-
<Compile Include="Properties\AssemblyInfo.cs" />
68-
<Compile Include="SliderValueDisplay.cs" />
69-
</ItemGroup>
70-
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
71-
<PropertyGroup>
72-
<PostBuildEvent>
73-
</PostBuildEvent>
74-
</PropertyGroup>
75-
</Project>
11+
12+
<ItemGroup>
13+
<PackageReference Include="KSPBuildTools" Version="0.0.4" />
14+
</ItemGroup>
15+
16+
</Project>

Source/RocketSoundEnhancement/Properties/AssemblyInfo.cs

Lines changed: 0 additions & 34 deletions
This file was deleted.
Lines changed: 23 additions & 140 deletions
Original file line numberDiff line numberDiff line change
@@ -1,149 +1,32 @@
1-
<Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Build">
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFramework>net4.8</TargetFramework>
5+
</PropertyGroup>
6+
<ItemGroup>
7+
<Publicize Include="Assembly-CSharp" IncludeCompilerGeneratedMembers="false" />
8+
</ItemGroup>
9+
210
<PropertyGroup>
3-
<ProjectGuid>{BBC72A52-EE4F-4DC0-9845-4350A54AC1CD}</ProjectGuid>
4-
<ProjectTypeGuids>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
5-
<Configuration Condition=" '$(Configuration)' == '' ">Release</Configuration>
6-
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7-
<OutputType>Library</OutputType>
8-
<RootNamespace>RocketSoundEnhancement</RootNamespace>
9-
<AssemblyName>RocketSoundEnhancement</AssemblyName>
10-
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
11-
<AppDesignerFolder>Properties</AppDesignerFolder>
12-
<NoWin32Manifest>False</NoWin32Manifest>
13-
<AllowUnsafeBlocks>False</AllowUnsafeBlocks>
14-
<NoStdLib>False</NoStdLib>
15-
<TreatWarningsAsErrors>False</TreatWarningsAsErrors>
16-
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
17-
<WarningLevel>4</WarningLevel>
18-
<NuGetPackageImportStamp>
19-
</NuGetPackageImportStamp>
11+
<BinariesOutputRelativePath>GameData\RocketSoundEnhancement\Plugins</BinariesOutputRelativePath>
12+
<GenerateKSPAssemblyAttribute>true</GenerateKSPAssemblyAttribute>
13+
<GenerateKSPAssemblyDependencyAttributes>true</GenerateKSPAssemblyDependencyAttributes>
2014
</PropertyGroup>
21-
<PropertyGroup Condition=" '$(Platform)' == 'AnyCPU' ">
22-
<PlatformTarget>AnyCPU</PlatformTarget>
23-
<BaseAddress>4194304</BaseAddress>
24-
<RegisterForComInterop>False</RegisterForComInterop>
25-
<GenerateSerializationAssemblies>Auto</GenerateSerializationAssemblies>
26-
<FileAlignment>4096</FileAlignment>
27-
</PropertyGroup>
28-
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
29-
<OutputPath>..\GameData\RocketSoundEnhancement\Plugins\</OutputPath>
30-
<DebugSymbols>True</DebugSymbols>
31-
<DebugType>pdbonly</DebugType>
32-
<Optimize>False</Optimize>
33-
<CheckForOverflowUnderflow>True</CheckForOverflowUnderflow>
34-
<DefineConstants>DEBUG;TRACE;ENABLE_PROFILER;DEVELOPMENT</DefineConstants>
35-
<BaseIntermediateOutputPath>obj\</BaseIntermediateOutputPath>
36-
</PropertyGroup>
37-
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
38-
<OutputPath>..\GameData\RocketSoundEnhancement\Plugins\</OutputPath>
39-
<DebugSymbols>False</DebugSymbols>
40-
<DebugType>None</DebugType>
41-
<Optimize>True</Optimize>
42-
<CheckForOverflowUnderflow>False</CheckForOverflowUnderflow>
43-
<DefineConstants>TRACE</DefineConstants>
44-
</PropertyGroup>
45-
<PropertyGroup>
46-
<!--<PostBuildEvent>copy "$(TargetDir)*" "D:\Games\Kerbal Space Program\KSP 1.12.3\GameData\RocketSoundEnhancement\Plugins\"</PostBuildEvent>-->
47-
</PropertyGroup>
48-
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|AnyCPU'">
49-
<OutputPath>..\..\GameData\RocketSoundEnhancement\Plugins\</OutputPath>
50-
<DebugType>portable</DebugType>
51-
<DebugSymbols>true</DebugSymbols>
52-
</PropertyGroup>
53-
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'">
54-
<OutputPath>..\..\GameData\RocketSoundEnhancement\Plugins\</OutputPath>
55-
<DebugType>portable</DebugType>
56-
</PropertyGroup>
57-
<ItemGroup>
58-
<Reference Include="Assembly-CSharp">
59-
<HintPath>..\..\..\..\Kerbal Space Program\KSP 1.12.3\KSP_x64_Data\Managed\Assembly-CSharp.dll</HintPath>
60-
<Private>False</Private>
61-
</Reference>
62-
<Reference Include="Assembly-CSharp-firstpass">
63-
<HintPath>..\..\..\..\Kerbal Space Program\KSP 1.12.3\KSP_x64_Data\Managed\Assembly-CSharp-firstpass.dll</HintPath>
64-
<Private>False</Private>
65-
</Reference>
66-
<Reference Include="System" />
67-
<Reference Include="System.Core">
68-
<RequiredTargetFramework>3.5</RequiredTargetFramework>
69-
</Reference>
70-
<Reference Include="System.Xml" />
71-
<Reference Include="System.Xml.Linq">
72-
<RequiredTargetFramework>3.5</RequiredTargetFramework>
73-
</Reference>
74-
<Reference Include="UnityEngine">
75-
<HintPath>..\..\..\..\Kerbal Space Program\KSP 1.12.3\KSP_x64_Data\Managed\UnityEngine.dll</HintPath>
76-
<Private>False</Private>
77-
</Reference>
78-
<Reference Include="UnityEngine.AnimationModule">
79-
<HintPath>..\..\..\..\Kerbal Space Program\KSP 1.12.3\KSP_x64_Data\Managed\UnityEngine.AnimationModule.dll</HintPath>
80-
<Private>False</Private>
81-
</Reference>
82-
<Reference Include="UnityEngine.AssetBundleModule">
83-
<HintPath>..\..\..\..\Kerbal Space Program\KSP 1.12.3\KSP_x64_Data\Managed\UnityEngine.AssetBundleModule.dll</HintPath>
84-
<Private>False</Private>
85-
</Reference>
86-
<Reference Include="UnityEngine.AudioModule">
87-
<HintPath>..\..\..\..\Kerbal Space Program\KSP 1.12.3\KSP_x64_Data\Managed\UnityEngine.AudioModule.dll</HintPath>
88-
<Private>False</Private>
89-
</Reference>
90-
<Reference Include="UnityEngine.CoreModule">
91-
<HintPath>..\..\..\..\Kerbal Space Program\KSP 1.12.3\KSP_x64_Data\Managed\UnityEngine.CoreModule.dll</HintPath>
92-
<Private>False</Private>
93-
</Reference>
94-
<Reference Include="UnityEngine.IMGUIModule">
95-
<HintPath>..\..\..\..\Kerbal Space Program\KSP 1.12.3\KSP_x64_Data\Managed\UnityEngine.IMGUIModule.dll</HintPath>
96-
<Private>False</Private>
97-
</Reference>
98-
<Reference Include="UnityEngine.PhysicsModule">
99-
<HintPath>..\..\..\..\Kerbal Space Program\KSP 1.12.3\KSP_x64_Data\Managed\UnityEngine.PhysicsModule.dll</HintPath>
100-
<Private>False</Private>
101-
</Reference>
102-
<Reference Include="UnityEngine.UI">
103-
<HintPath>..\..\..\..\Kerbal Space Program\KSP 1.12.3\KSP_x64_Data\Managed\UnityEngine.UI.dll</HintPath>
104-
<Private>False</Private>
105-
</Reference>
106-
<Reference Include="UnityEngine.UIModule">
107-
<HintPath>..\..\..\..\Kerbal Space Program\KSP 1.12.3\KSP_x64_Data\Managed\UnityEngine.UIModule.dll</HintPath>
108-
<Private>False</Private>
109-
</Reference>
110-
<Reference Include="UnityEngine.VehiclesModule">
111-
<HintPath>..\..\..\..\Kerbal Space Program\KSP 1.12.3\KSP_x64_Data\Managed\UnityEngine.VehiclesModule.dll</HintPath>
112-
<Private>False</Private>
113-
</Reference>
114-
</ItemGroup>
115-
<ItemGroup>
116-
<Compile Include="AudioFilters\AirSimulationFilter.cs" />
117-
<Compile Include="EffectBehaviours\RSE_AudioEffects.cs" />
118-
<Compile Include="PartModules\RSE_KerbalEVA.cs" />
119-
<Compile Include="PartModules\RSE_Module.cs" />
120-
<Compile Include="PartModules\RSE_RotorEngines.cs" />
121-
<Compile Include="PartModules\RSE_Coupler.cs" />
122-
<Compile Include="PartModules\RSE_Engines.cs" />
123-
<Compile Include="PartModules\RSE_Wheels.cs" />
124-
<Compile Include="PartModules\RSE_RCS.cs" />
125-
<Compile Include="PartModules\ShipEffectsCollisions.cs" />
126-
<Compile Include="AudioUtility.cs" />
127-
<Compile Include="RocketSoundEnhancement.cs" />
128-
<Compile Include="Settings.cs" />
129-
<Compile Include="SettingsPanel.cs" />
130-
<Compile Include="ShipEffectsConfig.cs" />
131-
<Compile Include="Startup.cs" />
132-
<Compile Include="ShipEffects.cs" />
133-
<Compile Include="Properties\AssemblyInfo.cs" />
134-
</ItemGroup>
135-
<ItemGroup>
136-
<Publicize Include="Assembly-CSharp" />
137-
</ItemGroup>
138-
<ItemGroup>
139-
<PackageReference Include="Krafs.Publicizer" Version="1.0.2" />
140-
</ItemGroup>
15+
14116
<ItemGroup>
14217
<ProjectReference Include="..\RocketSoundEnhancement.Unity\RocketSoundEnhancement.Unity.csproj">
14318
<Project>{5dff0176-7ba8-49f4-8155-f5d9b37d7d3d}</Project>
14419
<Name>RocketSoundEnhancement.Unity</Name>
14520
<Private>False</Private>
14621
</ProjectReference>
14722
</ItemGroup>
148-
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
149-
</Project>
23+
24+
<ItemGroup>
25+
<PackageReference Include="Krafs.Publicizer" Version="2.3.0">
26+
<PrivateAssets>all</PrivateAssets>
27+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
28+
</PackageReference>
29+
<PackageReference Include="KSPBuildTools" Version="0.0.4" />
30+
</ItemGroup>
31+
32+
</Project>

0 commit comments

Comments
 (0)