mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Try Add To NH?
This commit is contained in:
parent
9e00c229c7
commit
95671923f7
22
NewHorizons.Serialization/NewHorizons.Serialization.csproj
Normal file
22
NewHorizons.Serialization/NewHorizons.Serialization.csproj
Normal file
@ -0,0 +1,22 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net48</TargetFramework>
|
||||
<LangVersion>default</LangVersion>
|
||||
<Copyright>Copyright © 2021-2023 New Horizons Team</Copyright>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
|
||||
<AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>
|
||||
<CopyLocalLockFileAssemblies>false</CopyLocalLockFileAssemblies>
|
||||
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
||||
<ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch>None</ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch>
|
||||
<NoWarn>1701;1702;1591</NoWarn>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
|
||||
<DebugType>none</DebugType>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
|
||||
<PackageReference Include="NJsonSchema.Annotations" Version="11.0.1" />
|
||||
<PackageReference Include="System.ComponentModel.Annotations" Version="5.0.0" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
35
NewHorizons.Serialization/Properties/AssemblyInfo.cs
Normal file
35
NewHorizons.Serialization/Properties/AssemblyInfo.cs
Normal file
@ -0,0 +1,35 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("NewHorizons.Serialization")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("NewHorizons.Serialization")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2024")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
// to COM components. If you need to access a type in this assembly from
|
||||
// COM, set the ComVisible attribute to true on that type.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
[assembly: Guid("9A68BD43-1C0D-431B-A5D5-76CE955E5971")]
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
@ -15,6 +15,7 @@
|
||||
<DebugType>none</DebugType>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="NJsonSchema.Annotations" Version="11.0.1" />
|
||||
<PackageReference Include="OuterWildsGameLibs" Version="1.1.15.1018" />
|
||||
<PackageReference Include="OWML" Version="2.12.1" />
|
||||
<Reference Include="../Lib/System.ComponentModel.Annotations.dll" />
|
||||
|
||||
@ -1,5 +1,8 @@
|
||||
<Project>
|
||||
<PropertyGroup>
|
||||
<OutputPath>$(AppData)\OuterWildsModManager\OWML\Mods\xen.NewHorizons</OutputPath>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(OS)' == 'Windows_NT'">
|
||||
<OutputPath>$(AppData)/OuterWildsModManager/OWML/Mods/xen.NewHorizons</OutputPath>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(OS)' == 'Unix'">
|
||||
<OutputPath>$(HOME)/.local/share/OuterWildsModManager/OWML/Mods/xen.NewHorizons</OutputPath>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
@ -4,6 +4,7 @@ using System.IO;
|
||||
using NewHorizons.External.Configs;
|
||||
using NJsonSchema;
|
||||
using NJsonSchema.Generation;
|
||||
using NJsonSchema.NewtonsoftJson.Generation;
|
||||
|
||||
namespace SchemaExporter;
|
||||
|
||||
@ -15,7 +16,7 @@ public static class SchemaExporter
|
||||
|
||||
Directory.CreateDirectory(folderName);
|
||||
Console.WriteLine("Schema Generator: We're winning!");
|
||||
var settings = new JsonSchemaGeneratorSettings
|
||||
var settings = new NewtonsoftJsonSchemaGeneratorSettings
|
||||
{
|
||||
IgnoreObsoleteProperties = true,
|
||||
DefaultReferenceTypeNullHandling = ReferenceTypeNullHandling.NotNull,
|
||||
|
||||
@ -12,14 +12,15 @@
|
||||
<DebugType>none</DebugType>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<None Include="System.Runtime.Serialization.dll">
|
||||
<None Include="System*.dll">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
<None Include="UnityEngine.CoreModule.dll">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
|
||||
<PackageReference Include="NJsonSchema" Version="10.9.0" />
|
||||
<PackageReference Include="NJsonSchema" Version="11.0.1" />
|
||||
<PackageReference Include="NJsonSchema.NewtonsoftJson" Version="11.0.1" />
|
||||
<PackageReference Include="OuterWildsGameLibs" Version="1.1.15.1018" IncludeAssets="compile" />
|
||||
<PackageReference Include="System.ComponentModel.Annotations" Version="5.0.0" />
|
||||
</ItemGroup>
|
||||
|
||||
BIN
SchemaExporter/System.Core.dll
Normal file
BIN
SchemaExporter/System.Core.dll
Normal file
Binary file not shown.
BIN
SchemaExporter/System.dll
Normal file
BIN
SchemaExporter/System.dll
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user