Skip to content

Commit 9243d0a

Browse files
committed
switch KSPBT to nuget
1 parent ebcbbab commit 9243d0a

File tree

10 files changed

+25
-2160
lines changed

10 files changed

+25
-2160
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,13 @@ on:
55
branches: [ master ]
66
paths:
77
- '**/*.cs'
8+
- '**/*.csproj'
9+
- '**/*.props'
810
pull_request:
911
paths:
1012
- '**/*.cs'
13+
- '**/*.csproj'
14+
- '**/*.props'
1115
workflow_dispatch:
1216
workflow_call:
1317

.gitmodules

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

KSPBuildTools

Lines changed: 0 additions & 1 deletion
This file was deleted.

RasterPropMonitor/Core/RPMVCVariableToObject.cs

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

RasterPropMonitor/Properties/AssemblyInfo.cs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
using System.Reflection;
1+
using System.Reflection;
22
using System.Runtime.CompilerServices;
33

4+
[assembly: AssemblyCopyright ("Copyright ©2013-2018 by Mihara, MOARdV, and other contributors, released under the terms of GNU GPLv3")]
5+
[assembly: AssemblyTrademark("")]
6+
[assembly: AssemblyCulture("")]
7+
48
// Information about this assembly is defined by the following attributes.
59
// Change them to the values specific to your project.
6-
[assembly: AssemblyTitle ("RasterPropMonitor")]
7-
[assembly: AssemblyDescription ("RasterPropMonitor plugin for Kerbal Space Program")]
10+
[assembly: AssemblyDescription("RasterPropMonitor plugin for Kerbal Space Program")]
811

9-
// This supposedly helps avoid plugin depencency problems.
10-
[assembly: KSPAssembly("RasterPropMonitor", 0, 18)]
Lines changed: 9 additions & 157 deletions
Original file line numberDiff line numberDiff line change
@@ -1,169 +1,21 @@
1-
<?xml version="1.0" encoding="utf-8"?>
2-
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3-
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" />
4-
<Import Project="..\packages\Krafs.Publicizer.1.0.3\build\Krafs.Publicizer.props" Condition="Exists('..\packages\Krafs.Publicizer.1.0.3\build\Krafs.Publicizer.props')" />
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
<Import Project="RasterPropMonitor.version.props" />
53
<PropertyGroup>
6-
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
7-
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
8-
<ProjectGuid>{F19C7AB4-50C2-4378-9673-CC039CA12E10}</ProjectGuid>
94
<OutputType>Library</OutputType>
105
<RootNamespace>JSI</RootNamespace>
116
<AssemblyName>RasterPropMonitor</AssemblyName>
12-
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
13-
<CodePage>65001</CodePage>
14-
<TargetFrameworkProfile />
15-
<NuGetPackageImportStamp>
16-
</NuGetPackageImportStamp>
17-
</PropertyGroup>
18-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
19-
<DebugSymbols>true</DebugSymbols>
20-
<DebugType>portable</DebugType>
21-
<Optimize>false</Optimize>
22-
<OutputPath>bin\Debug</OutputPath>
23-
<DefineConstants>DEBUG;</DefineConstants>
24-
<ErrorReport>prompt</ErrorReport>
25-
<WarningLevel>4</WarningLevel>
26-
<ConsolePause>false</ConsolePause>
27-
<PlatformTarget>AnyCPU</PlatformTarget>
28-
<Prefer32Bit>false</Prefer32Bit>
29-
</PropertyGroup>
30-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
31-
<Optimize>true</Optimize>
32-
<OutputPath>bin\Release</OutputPath>
33-
<ErrorReport>prompt</ErrorReport>
34-
<WarningLevel>4</WarningLevel>
35-
<ConsolePause>false</ConsolePause>
36-
<PlatformTarget>AnyCPU</PlatformTarget>
37-
<Prefer32Bit>false</Prefer32Bit>
38-
<DebugType>portable</DebugType>
39-
<DebugSymbols>true</DebugSymbols>
40-
</PropertyGroup>
41-
<PropertyGroup>
42-
<RunPostBuildEvent>Always</RunPostBuildEvent>
43-
</PropertyGroup>
44-
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Profile|AnyCPU'">
45-
<DebugSymbols>true</DebugSymbols>
46-
<OutputPath>bin\Profile\</OutputPath>
47-
<DefineConstants>ENABLE_PROFILER</DefineConstants>
48-
<Optimize>true</Optimize>
49-
<DebugType>portable</DebugType>
50-
<PlatformTarget>AnyCPU</PlatformTarget>
51-
<ErrorReport>prompt</ErrorReport>
52-
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
7+
<TargetFramework>net4.8</TargetFramework>
538
</PropertyGroup>
549
<PropertyGroup>
5510
<BinariesOutputRelativePath>GameData\JSI\RasterPropMonitor\Plugins</BinariesOutputRelativePath>
11+
<GenerateKSPAssemblyAttribute>true</GenerateKSPAssemblyAttribute>
12+
<GenerateKSPAssemblyDependencyAttributes>true</GenerateKSPAssemblyDependencyAttributes>
5613
</PropertyGroup>
5714
<ItemGroup>
58-
<Compile Include="Auxiliary modules\JSICallbackAnimator.cs" />
59-
<Compile Include="Auxiliary modules\JSIFlashModule.cs" />
60-
<Compile Include="Auxiliary modules\JSILabel.cs" />
61-
<Compile Include="Auxiliary modules\JSINavBall.cs" />
62-
<Compile Include="Auxiliary modules\JSINumericInput.cs" />
63-
<Compile Include="Auxiliary modules\JSIRadar.cs" />
64-
<Compile Include="Auxiliary modules\JSIThrustReverser.cs" />
65-
<Compile Include="Auxiliary modules\PropBatcher.cs" />
66-
<Compile Include="Core\ConfigNodeHolder.cs" />
67-
<Compile Include="Core\DefaultableDictionary.cs" />
68-
<Compile Include="Core\JSIVesselRecovery.cs" />
69-
<Compile Include="Core\AeroExtensions.cs" />
70-
<Compile Include="Core\CustomVariable.cs" />
71-
<Compile Include="Core\JSITextMesh.cs" />
72-
<Compile Include="Core\MathVariable.cs" />
73-
<Compile Include="Core\PersistentVariableCollection.cs" />
74-
<Compile Include="Core\RPMCEvaluators.cs" />
75-
<Compile Include="Core\RPMCPersistence.cs" />
76-
<Compile Include="Core\RPMGlobals.cs" />
77-
<Compile Include="Core\RPMShaderLoader.cs" />
78-
<Compile Include="Core\RPMVCEvaluators.cs" />
79-
<Compile Include="Core\RPMCTriggeredEvent.cs" />
80-
<Compile Include="Core\RPMVCPerModule.cs" />
81-
<Compile Include="Core\RPMVesselComputer.cs" />
82-
<Compile Include="Core\MappedVariable.cs" />
83-
<Compile Include="Core\Protractor.cs" />
84-
<Compile Include="Core\SelectVariable.cs" />
85-
<Compile Include="Core\TextRenderer.cs" />
86-
<Compile Include="Core\VariableCollection.cs" />
87-
<Compile Include="Core\VisibilityEnabler.cs" />
88-
<Compile Include="Core\DynamicMethodDelegateFactory.cs" />
89-
<Compile Include="Core\IJSIModule.cs" />
90-
<Compile Include="Handlers\JSIChatterer.cs" />
91-
<Compile Include="Handlers\JSIEngine.cs" />
92-
<Compile Include="Handlers\JSIFAR.cs" />
93-
<Compile Include="Handlers\JSIGraphingBackground.cs" />
94-
<Compile Include="Handlers\JSIKAC.cs" />
95-
<Compile Include="Handlers\JSIMechJeb.cs" />
96-
<Compile Include="Handlers\JSIParachute.cs" />
97-
<Compile Include="Handlers\JSIPilotAssistant.cs" />
98-
<Compile Include="Handlers\JSISASMenu.cs" />
99-
<Compile Include="Handlers\JSIScienceDisplay.cs" />
100-
<Compile Include="Handlers\KACWrapper.cs" />
101-
<Compile Include="Handlers\MechJebRPM.cs" />
102-
<Compile Include="Handlers\SCANsat.cs" />
103-
<Compile Include="Properties\AssemblyInfo.cs" />
104-
<Compile Include="Core\ButtonHandler.cs" />
105-
<Compile Include="Core\FlyingCamera.cs" />
106-
<Compile Include="Auxiliary modules\InternalCameraTargetHelper.cs" />
107-
<Compile Include="Auxiliary modules\JSIActionGroupSwitch.cs" />
108-
<Compile Include="Auxiliary modules\JSIExternalCameraSelector.cs" />
109-
<Compile Include="Auxiliary modules\JSIPropTextureShift.cs" />
110-
<Compile Include="Auxiliary modules\JSIVariableAnimator.cs" />
111-
<Compile Include="Core\MonitorPage.cs" />
112-
<Compile Include="Core\SIFormatter.cs" />
113-
<Compile Include="Core\UtilityFunctions.cs" />
114-
<Compile Include="Core\RasterPropMonitorComputer.cs" />
115-
<Compile Include="Core\RasterPropMonitor.cs" />
116-
<Compile Include="Auxiliary modules\JSIInternalBackgroundNoise.cs" />
117-
<Compile Include="Auxiliary modules\JSIVariableLabel.cs" />
118-
<Compile Include="Core\StringProcessor.cs" />
119-
<Compile Include="Handlers\JSIFlightLog.cs" />
120-
<Compile Include="Handlers\JSIPrimaryFlightDisplay.cs" />
121-
<Compile Include="..\SharedAssemblyInfo.cs">
122-
<Link>Properties\SharedAssemblyInfo.cs</Link>
123-
</Compile>
124-
<Compile Include="Auxiliary modules\JSISetInternalCameraFOV.cs" />
125-
<Compile Include="Handlers\JSITargetMenu.cs" />
126-
<Compile Include="Handlers\JSIVariableGraph.cs" />
127-
<Compile Include="Handlers\JSIVariablePageTextSwitcher.cs" />
128-
<Compile Include="Core\VariableOrNumber.cs" />
129-
<Compile Include="Handlers\JSISteerableCamera.cs" />
130-
<Compile Include="Core\TextMenu.cs" />
131-
<Compile Include="Auxiliary modules\JSIInternalFlagDecal.cs" />
132-
<Compile Include="Auxiliary modules\JSIInternalEVAHatch.cs" />
133-
<Compile Include="Auxiliary modules\JSIPropIDFinder.cs" />
134-
<Compile Include="Handlers\JSIHeadsUpDisplay.cs" />
135-
<Compile Include="Core\OrbitExtensions.cs" />
136-
<Compile Include="Core\MathExtensions.cs" />
137-
<Compile Include="Core\CelestialBodyExtensions.cs" />
138-
<Compile Include="Handlers\JSIOrbitDisplay.cs" />
139-
<Compile Include="Auxiliary modules\JSISwitchableVariableLabel.cs" />
140-
<Compile Include="Core\ResourceDataStorage.cs" />
141-
<Compile Include="Core\VariableHandler.cs" />
142-
<Compile Include="Handlers\JSIInternalRPMButtons.cs" />
143-
<Compile Include="Handlers\JSIOdometer.cs" />
144-
<Compile Include="Auxiliary modules\JSISelectivelyVisibleProp.cs" />
145-
</ItemGroup>
146-
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
147-
<Import Project="$(SolutionDir)KSPBuildTools\KSPCommon.targets" />
148-
<ItemGroup>
149-
<None Include=".editorconfig" />
150-
<None Include="packages.config" />
151-
<None Include="Shaders\RPM-DisplayShader-compiled.shader" />
152-
<None Include="Shaders\RPM-CroppedDisplayShader-compiled.shader" />
153-
<None Include="Shaders\RPM-CroppedDisplayShader.shader" />
154-
<None Include="Shaders\RPM-DisplayShader.shader" />
155-
<None Include="Shaders\RPM-FontShader-compiled.shader" />
156-
<None Include="Shaders\RPM-FontShader.shader" />
15+
<Publicize Include="Assembly-CSharp" />
15716
</ItemGroup>
15817
<ItemGroup>
159-
<Publicize Include="Assembly-CSharp" />
18+
<PackageReference Include="KSPBuildTools" Version="0.0.4" />
19+
<PackageReference Include="Krafs.Publicizer" Version="1.0.3" />
16020
</ItemGroup>
161-
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
162-
<PropertyGroup>
163-
<ErrorText>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}.</ErrorText>
164-
</PropertyGroup>
165-
<Error Condition="!Exists('..\packages\Krafs.Publicizer.1.0.3\build\Krafs.Publicizer.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Krafs.Publicizer.1.0.3\build\Krafs.Publicizer.props'))" />
166-
<Error Condition="!Exists('..\packages\Krafs.Publicizer.1.0.3\build\Krafs.Publicizer.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Krafs.Publicizer.1.0.3\build\Krafs.Publicizer.targets'))" />
167-
</Target>
168-
<Import Project="..\packages\Krafs.Publicizer.1.0.3\build\Krafs.Publicizer.targets" Condition="Exists('..\packages\Krafs.Publicizer.1.0.3\build\Krafs.Publicizer.targets')" />
169-
</Project>
21+
</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>1.0.2</Version>
5+
</PropertyGroup>
6+
</Project>

RasterPropMonitor/packages.config

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

SharedAssemblyInfo.cs

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

SharedAssemblyInfo.cs.versiontemplate

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

0 commit comments

Comments
 (0)