-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reworked as a SpaceWarp.Template project with better build process
- Loading branch information
Showing
212 changed files
with
484 additions
and
711 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,64 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project> | ||
<PropertyGroup> | ||
<SpaceWarpVersion>1.6.0</SpaceWarpVersion> | ||
<PropertyGroup Label="Framework and language configuration"> | ||
<TargetFramework>netstandard2.1</TargetFramework> | ||
<RootNamespace>SpaceWarp</RootNamespace> | ||
<LangVersion>11</LangVersion> | ||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> | ||
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath> | ||
<CopyLocalLockFileAssemblies>false</CopyLocalLockFileAssemblies> | ||
<!-- Disabled warning for publicizer attribute until the NuGet exists for KSP2, | ||
and for missing documentation comments for public types and members --> | ||
<NoWarn>$(NoWarn),CS0436,CS1591</NoWarn> | ||
<LangVersion>latest</LangVersion> | ||
<ImplicitUsings>true</ImplicitUsings> | ||
<GenerateDocumentationFile>true</GenerateDocumentationFile> | ||
</PropertyGroup> | ||
|
||
<!-- | ||
Allows use of some newer C# language features that have compiler gates normally. | ||
Do not modify the included types without checking that they don't require runtime support that doesn't exist. | ||
--> | ||
<PropertyGroup Label="Game folder configuration"> | ||
<!-- Set this to the path to your KSP 2 folder if you don't have the KSP2DIR environmental variable set --> | ||
<KSP2DIR Condition="'$(KSP2DIR)' == ''">C:/Program Files (x86)/Steam/steamapps/common/Kerbal Space Program 2</KSP2DIR> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="PolySharp" Version="1.12.1" PrivateAssets="all"/> | ||
</ItemGroup> | ||
<PropertyGroup> | ||
<PolySharpIncludeGeneratedTypes> | ||
System.Index; | ||
System.Range; | ||
System.Diagnostics.CodeAnalysis.NotNullWhenAttribute; | ||
System.Diagnostics.CodeAnalysis.DoesNotReturnAttribute; | ||
</PolySharpIncludeGeneratedTypes> | ||
<PropertyGroup Label="Build and namespace configuration"> | ||
<SolutionDir Condition="'$(SolutionDir)'==''">$(MSBuildThisFileDirectory)</SolutionDir> | ||
<PluginBinPath>$(SolutionDir)build/bin/plugin/$(Configuration)</PluginBinPath> | ||
<PluginObjPath>$(SolutionDir)build/obj/plugin/$(Configuration)</PluginObjPath> | ||
<ModulesBinPath>$(SolutionDir)build/bin/modules/$(Configuration)</ModulesBinPath> | ||
<ModulesObjPath>$(SolutionDir)build/obj/modules/$(Configuration)</ModulesObjPath> | ||
<PatcherBinPath>$(SolutionDir)build/bin/patcher/$(Configuration)</PatcherBinPath> | ||
<PatcherObjPath>$(SolutionDir)build/obj/patcher/$(Configuration)</PatcherObjPath> | ||
<BaseOutputPath>$(ModulesBinPath)/$(MSBuildProjectName)</BaseOutputPath> | ||
<BaseIntermediateOutputPath>$(ModulesObjPath)/$(MSBuildProjectName)</BaseIntermediateOutputPath> | ||
<AssemblyName>$(MSBuildProjectName)</AssemblyName> | ||
<RootNamespace>$(AssemblyName)</RootNamespace> | ||
<Configurations>Debug;Release;Deploy;DeployAndRun</Configurations> | ||
<Platforms>AnyCPU</Platforms> | ||
<NoWarn>$(NoWarn);CS0436</NoWarn> | ||
</PropertyGroup> | ||
|
||
<!-- <ItemGroup Label="Dependencies for build targets">--> | ||
<!-- <PackageReference Include="JsonPeek" Version="1.2.0" PrivateAssets="all"/>--> | ||
<!-- </ItemGroup>--> | ||
<PropertyGroup Label="Package source configuration"> | ||
<RestoreAdditionalProjectSources> | ||
https://nuget.spacewarp.org/v3/index.json | ||
</RestoreAdditionalProjectSources> | ||
</PropertyGroup> | ||
|
||
<ItemGroup Label="Dependencies for build targets"> | ||
<PackageReference Include="JsonPeek" Version="1.2.0" PrivateAssets="all"/> | ||
</ItemGroup> | ||
|
||
<!-- <!– Define the main target –>--> | ||
<!-- <Target Label="Reading properties from swinfo.json" Name="ReadPropertiesFromJson" BeforeTargets="PreBuildEvent">--> | ||
<!-- <JsonPeek ContentPath="$(SolutionDir)/SpaceWarpBuildTemplate/swinfo.json" Query="$">--> | ||
<!-- <Output TaskParameter="Result" ItemName="Swinfo"/>--> | ||
<!-- </JsonPeek>--> | ||
<!-- <JsonPeek ContentPath="$(SolutionDir)/SpaceWarpBuildTemplate/swinfo.json" Query="$.dependencies">--> | ||
<!-- <Output TaskParameter="Result" ItemName="Dependencies"/>--> | ||
<!-- </JsonPeek>--> | ||
<!-- Define the main target --> | ||
<Target Label="Reading properties from swinfo.json" Name="ReadPropertiesFromJson" BeforeTargets="PreBuildEvent;AddGeneratedFile"> | ||
<JsonPeek ContentPath="$(SolutionDir)/plugin_template/BepInEx/plugins/SpaceWarp/swinfo.json" Query="$"> | ||
<Output TaskParameter="Result" ItemName="Swinfo"/> | ||
</JsonPeek> | ||
|
||
<!-- <!– Extract properties from the JSON –>--> | ||
<!-- <PropertyGroup>--> | ||
<!-- <SpaceWarpVersion>@(Swinfo -> '%(version)')</SpaceWarpVersion>--> | ||
<!-- </PropertyGroup>--> | ||
<!-- </Target>--> | ||
<!-- Extract properties from the JSON --> | ||
<PropertyGroup> | ||
<ModId>@(Swinfo -> '%(mod_id)')</ModId> | ||
<Version>@(Swinfo -> '%(version)')</Version> | ||
<Version Condition="$(Version.Contains('-'))">$(Version.Substring(0, $(Version.IndexOf('-'))))</Version> | ||
<Product>@(Swinfo -> '%(name)')</Product> | ||
<Authors>@(Swinfo -> '%(author)')</Authors> | ||
<Description>@(Swinfo -> '%(description)')</Description> | ||
<RepositoryType>git</RepositoryType> | ||
<RepositoryUrl>@(Swinfo -> '%(source)')</RepositoryUrl> | ||
<BepInExPluginGuid>$(ModId)</BepInExPluginGuid> | ||
<BepInExPluginName>$(Product)</BepInExPluginName> | ||
<BepInExPluginVersion>$(Version)</BepInExPluginVersion> | ||
</PropertyGroup> | ||
</Target> | ||
</Project> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,26 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd"> | ||
<metadata> | ||
<id>SpaceWarp</id> | ||
<version>1.6.0</version> | ||
<authors>SpaceWarp contributors</authors> | ||
<id>$id$</id> | ||
<version>$version$</version> | ||
<authors>$authors$</authors> | ||
<requireLicenseAcceptance>false</requireLicenseAcceptance> | ||
<licenseUrl>https://raw.githubusercontent.com/SpaceWarp/SpaceWarp/main/LICENSE</licenseUrl> | ||
<description>A C# modding API for KSP2</description> | ||
<tags>spacewarp ksp2 modding</tags> | ||
<icon>icon.png</icon> | ||
<licenseUrl>https://raw.githubusercontent.com/SpaceWarpDev/SpaceWarp/main/LICENSE</licenseUrl> | ||
<description>$description$</description> | ||
<tags>ksp2 mod library api spacewarp</tags> | ||
<projectUrl>https://spacewarp.org</projectUrl> | ||
<repository type="git" url="https://github.com/SpaceWarpDev/SpaceWarp" /> | ||
<repository type="$repositoryType$" url="$repositoryUrl$" /> | ||
<readme>README.md</readme> | ||
<icon>icon.png</icon> | ||
<dependencies> | ||
<group targetFramework=".NETStandard2.1" /> | ||
</dependencies> | ||
</metadata> | ||
<files> | ||
<file src=".github\README.md" target="README.md" /> | ||
<file src="images\icon.png" target="icon.png" /> | ||
<file src="LICENSE" target="LICENSE" /> | ||
<file src="build\nuget_temp\*.dll" target="lib/netstandard2.1/" /> | ||
<file src="build\nuget_temp\*.xml" target="lib/netstandard2.1/" /> | ||
<file src="images\icon.png" target="icon.png" /> | ||
<file src="temp_nuget\*.dll" target="lib/netstandard2.1/" /> | ||
<file src="temp_nuget\*.xml" target="lib/netstandard2.1/" /> | ||
</files> | ||
</package> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Space Warp | ||
Space Warp is an API for KSP 2 mod developers. |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
SpaceWarp.VersionChecking/SpaceWarp.VersionChecking.csproj
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.