Converting to VS

This commit is contained in:
Lachlan Leone
2022-11-23 13:21:40 +11:00
parent c81ae1fd15
commit a013c771bc
4 changed files with 162 additions and 118 deletions
+17 -16
View File
@@ -1,30 +1,31 @@
Microsoft Visual Studio Solution File, Format Version 12.00 Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16 # Visual Studio Version 17
VisualStudioVersion = 16.0.30114.105 VisualStudioVersion = 17.3.32811.315
MinimumVisualStudioVersion = 10.0.40219.1 MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MMOKitchen", "MMOKitchen\MMOKitchen.csproj", "{03768998-4709-4988-B37F-ECC5D44DF280}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MMOKitchen", "MMOKitchen\MMOKitchen.csproj", "{C98403A1-AA47-4987-94FE-C1CEF2E5CC85}"
EndProject EndProject
Global Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
BepInEx|Any CPU = BepInEx|Any CPU BepInEx|Any CPU = BepInEx|Any CPU
Debug|Any CPU = Debug|Any CPU
MelonLoader|Any CPU = MelonLoader|Any CPU MelonLoader|Any CPU = MelonLoader|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{C98403A1-AA47-4987-94FE-C1CEF2E5CC85}.BepInEx|Any CPU.ActiveCfg = BepInEx|Any CPU
{C98403A1-AA47-4987-94FE-C1CEF2E5CC85}.BepInEx|Any CPU.Build.0 = BepInEx|Any CPU
{C98403A1-AA47-4987-94FE-C1CEF2E5CC85}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C98403A1-AA47-4987-94FE-C1CEF2E5CC85}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C98403A1-AA47-4987-94FE-C1CEF2E5CC85}.MelonLoader|Any CPU.ActiveCfg = MelonLoader|Any CPU
{C98403A1-AA47-4987-94FE-C1CEF2E5CC85}.MelonLoader|Any CPU.Build.0 = MelonLoader|Any CPU
{C98403A1-AA47-4987-94FE-C1CEF2E5CC85}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C98403A1-AA47-4987-94FE-C1CEF2E5CC85}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection EndGlobalSection
GlobalSection(SolutionProperties) = preSolution GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE HideSolutionNode = FALSE
EndGlobalSection EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution GlobalSection(ExtensibilityGlobals) = postSolution
{03768998-4709-4988-B37F-ECC5D44DF280}.Debug|Any CPU.ActiveCfg = Debug|Any CPU SolutionGuid = {8C16E17F-BB46-4E9D-8899-92D742896BFB}
{03768998-4709-4988-B37F-ECC5D44DF280}.Debug|Any CPU.Build.0 = Debug|Any CPU
{03768998-4709-4988-B37F-ECC5D44DF280}.Release|Any CPU.ActiveCfg = Release|Any CPU
{03768998-4709-4988-B37F-ECC5D44DF280}.Release|Any CPU.Build.0 = Release|Any CPU
{03768998-4709-4988-B37F-ECC5D44DF280}.BepInEx|Any CPU.ActiveCfg = BepInEx|Any CPU
{03768998-4709-4988-B37F-ECC5D44DF280}.BepInEx|Any CPU.Build.0 = BepInEx|Any CPU
{03768998-4709-4988-B37F-ECC5D44DF280}.MelonLoader|Any CPU.ActiveCfg = MelonLoader|Any CPU
{03768998-4709-4988-B37F-ECC5D44DF280}.MelonLoader|Any CPU.Build.0 = MelonLoader|Any CPU
EndGlobalSection EndGlobalSection
EndGlobal EndGlobal
+102 -78
View File
@@ -1,97 +1,121 @@
<Project Sdk="Microsoft.NET.Sdk"> <?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{C98403A1-AA47-4987-94FE-C1CEF2E5CC85}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>MMOKitchen</RootNamespace>
<AssemblyName>MMOKitchen</AssemblyName>
<TargetFrameworkVersion>v4.7.1</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<Deterministic>true</Deterministic>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'MelonLoader|AnyCPU'"> <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'MelonLoader|AnyCPU'">
<TargetFramework>net4.7.1</TargetFramework> <DebugSymbols>true</DebugSymbols>
<DefineConstants>MelonLoader</DefineConstants>
<OutputPath>bin\MelonLoader\</OutputPath> <OutputPath>bin\MelonLoader\</OutputPath>
<DefineConstants>TRACE;DEBUG;MELONLOADER</DefineConstants>
<DebugType>full</DebugType>
<PlatformTarget>AnyCPU</PlatformTarget>
<LangVersion>7.3</LangVersion>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'BepInEx|AnyCPU'"> <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'BepInEx|AnyCPU'">
<TargetFramework>net4.7.1</TargetFramework> <DebugSymbols>true</DebugSymbols>
<DefineConstants>BepInEx</DefineConstants>
<OutputPath>bin\BepInEx\</OutputPath> <OutputPath>bin\BepInEx\</OutputPath>
<DefineConstants>TRACE;DEBUG;BEPINEX</DefineConstants>
<DebugType>full</DebugType>
<PlatformTarget>AnyCPU</PlatformTarget>
<LangVersion>7.3</LangVersion>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="$(os)=='Windows_NT'">
<PlateUpGameFolder>..\..\..\..\Libraries</PlateUpGameFolder>
</PropertyGroup>
<PropertyGroup Condition="$(os)=='UNIX'">
<PlateUpGameFolder>/Users/lachlanleone/Desktop/PlateUp</PlateUpGameFolder>
</PropertyGroup>
<ItemGroup> <ItemGroup>
<Reference Include="0Harmony"> <Reference Include="0Harmony">
<HintPath>$(PlateUpGameFolder)\MelonLoader\0Harmony.dll</HintPath> <HintPath>..\..\..\..\Libraries\BepInEx\core\0Harmony.dll</HintPath>
</Reference>
<Reference Include="Kitchen.RestaurantMode">
<HintPath>$(PlateUpGameFolder)\PlateUp_Data\Managed\Kitchen.RestaurantMode.dll</HintPath>
</Reference>
<Reference Include="KitchenMode">
<HintPath>$(PlateUpGameFolder)\PlateUp_Data\Managed\KitchenMode.dll</HintPath>
</Reference>
<Reference Include="Discord">
<HintPath>$(PlateUpGameFolder)\PlateUp_Data\Managed\Discord.dll</HintPath>
</Reference>
<Reference Include="MelonLoader">
<HintPath>$(PlateUpGameFolder)\MelonLoader\MelonLoader.dll</HintPath>
</Reference> </Reference>
<Reference Include="BepInEx"> <Reference Include="BepInEx">
<HintPath>$(PlateUpGameFolder)\BepInEx\core\BepInEx.dll</HintPath> <HintPath>..\..\..\..\Libraries\BepInEx\core\BepInEx.dll</HintPath>
</Reference> </Reference>
<Reference Include="Kitchen"> <Reference Include="Discord">
<HintPath>$(PlateUpGameFolder)\PlateUp_Data\Managed\Kitchen.Common.dll</HintPath> <HintPath>..\..\..\..\Libraries\PlateUp_Data\Managed\Discord.dll</HintPath>
</Reference>
<Reference Include="Kitchen">
<HintPath>$(PlateUpGameFolder)\PlateUp_Data\Managed\Kitchen.Networking.dll</HintPath>
</Reference>
<Reference Include="Kitchen.GameData">
<HintPath>$(PlateUpGameFolder)\PlateUp_Data\Managed\Kitchen.GameData.dll</HintPath>
</Reference>
<Reference Include="Sirenix.Serialization">
<HintPath>$(PlateUpGameFolder)\PlateUp_Data\Managed\Sirenix.Serialization.dll</HintPath>
</Reference>
<Reference Include="Kitchen.FranchiseMode">
<HintPath>$(PlateUpGameFolder)\PlateUp_Data\Managed\Kitchen.FranchiseMode.dll</HintPath>
</Reference>
<Reference Include="Kitchen">
<HintPath>$(PlateUpGameFolder)\PlateUp_Data\Managed\Kitchen.Layouts.dll</HintPath>
</Reference>
<Reference Include="Unity.Entities">
<HintPath>$(PlateUpGameFolder)\PlateUp_Data\Managed\Unity.Entities.dll</HintPath>
</Reference>
<Reference Include="UnityEngine">
<HintPath>$(PlateUpGameFolder)\PlateUp_Data\Managed\UnityEngine.dll</HintPath>
</Reference>
<Reference Include="UnityEngine">
<HintPath>$(PlateUpGameFolder)\PlateUp_Data\Managed\UnityEngine.PhysicsModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.AssetBundleModule">
<HintPath>$(PlateUpGameFolder)\PlateUp_Data\Managed\UnityEngine.AssetBundleModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.CoreModule">
<HintPath>$(PlateUpGameFolder)\PlateUp_Data\Managed\UnityEngine.CoreModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.InputLegacyModule">
<HintPath>$(PlateUpGameFolder)\PlateUp_Data\Managed\UnityEngine.InputLegacyModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine">
<HintPath>$(PlateUpGameFolder)\PlateUp_Data\Managed\UnityEngine.ImageConversionModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.InputModule">
<HintPath>$(PlateUpGameFolder)\PlateUp_Data\Managed\UnityEngine.InputModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.AudioModule">
<HintPath>$(PlateUpGameFolder)\PlateUp_Data\Managed\UnityEngine.AudioModule.dll</HintPath>
</Reference> </Reference>
<Reference Include="Facepunch.Steamworks.Win64"> <Reference Include="Facepunch.Steamworks.Win64">
<HintPath>$(PlateUpGameFolder)\PlateUp_Data\Managed\Facepunch.Steamworks.Win64.dll</HintPath> <HintPath>..\..\..\..\Libraries\PlateUp_Data\Managed\Facepunch.Steamworks.Win64.dll</HintPath>
</Reference>
<Reference Include="Kitchen.Common">
<HintPath>..\..\..\..\Libraries\PlateUp_Data\Managed\Kitchen.Common.dll</HintPath>
</Reference>
<Reference Include="Kitchen.FranchiseMode">
<HintPath>..\..\..\..\Libraries\PlateUp_Data\Managed\Kitchen.FranchiseMode.dll</HintPath>
</Reference>
<Reference Include="Kitchen.GameData">
<HintPath>..\..\..\..\Libraries\PlateUp_Data\Managed\Kitchen.GameData.dll</HintPath>
</Reference>
<Reference Include="Kitchen.Layouts">
<HintPath>..\..\..\..\Libraries\PlateUp_Data\Managed\Kitchen.Layouts.dll</HintPath>
</Reference>
<Reference Include="Kitchen.Networking">
<HintPath>..\..\..\..\Libraries\PlateUp_Data\Managed\Kitchen.Networking.dll</HintPath>
</Reference> </Reference>
<Reference Include="KitchenLib"> <Reference Include="KitchenLib">
<HintPath>$(PlateUpGameFolder)\Mods\KitchenLib-MelonLoader.dll</HintPath> <HintPath>..\..\..\..\Libraries\Mods\KitchenLib.dll</HintPath>
</Reference> </Reference>
<Reference Include="KitchenLib"> <Reference Include="KitchenMode">
<HintPath>$(PlateUpGameFolder)\BepInEx\plugins\KitchenLib-BepInEx.dll</HintPath> <HintPath>..\..\..\..\Libraries\PlateUp_Data\Managed\KitchenMode.dll</HintPath>
</Reference>
<Reference Include="MelonLoader">
<HintPath>..\..\..\..\Libraries\MelonLoader\MelonLoader.dll</HintPath>
</Reference>
<Reference Include="Sirenix.Serialization">
<HintPath>..\..\..\..\Libraries\PlateUp_Data\Managed\Sirenix.Serialization.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
<Reference Include="Unity.Entities">
<HintPath>..\..\..\..\Libraries\PlateUp_Data\Managed\Unity.Entities.dll</HintPath>
</Reference>
<Reference Include="UnityEngine">
<HintPath>..\..\..\..\Libraries\PlateUp_Data\Managed\UnityEngine.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.CoreModule">
<HintPath>..\..\..\..\Libraries\PlateUp_Data\Managed\UnityEngine.CoreModule.dll</HintPath>
</Reference> </Reference>
</ItemGroup> </ItemGroup>
<ItemGroup>
<Compile Include="Mod.cs" />
<Compile Include="Patches\CreateBedrooms_Patch.cs" />
<Compile Include="Patches\CreateGarage_Patch.cs" />
<Compile Include="Patches\FeaturesFromTexture_Patch.cs" />
<Compile Include="Patches\LayoutBuilder_Patch.cs" />
<Compile Include="Patches\LobbyTransaction_Patch.cs" />
<Compile Include="Patches\NewFromTexture_Patch.cs" />
<Compile Include="Patches\SteamPlatform_Patch.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project> </Project>
-17
View File
@@ -1,29 +1,12 @@
using KitchenLib; using KitchenLib;
using System.Reflection; using System.Reflection;
#if BepInEx
using BepInEx; using BepInEx;
#endif
#if MelonLoader
using MelonLoader;
#endif
#if MelonLoader
[assembly: MelonInfo(typeof(MMOKitchen.Mod), "MMO Kitchen", "0.1.3", "StarFluxGames")]
[assembly: MelonGame("It's Happening", "PlateUp")]
#endif
namespace MMOKitchen namespace MMOKitchen
{ {
#if BepInEx
[BepInProcess("PlateUp.exe")] [BepInProcess("PlateUp.exe")]
[BepInPlugin("starfluxgames.mmokitchen", "MMO Kitchen", "0.1.3")] [BepInPlugin("starfluxgames.mmokitchen", "MMO Kitchen", "0.1.3")]
#endif
public class Mod : BaseMod public class Mod : BaseMod
{ {
#if MelonLoader
public Mod() : base("mmokitchen", "1.1.0") { }
#endif
#if BepInEx
public Mod() : base("1.1.0", Assembly.GetExecutingAssembly()) { } public Mod() : base("1.1.0", Assembly.GetExecutingAssembly()) { }
#endif
} }
} }
+36
View File
@@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
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("MMOKitchen")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("MMOKitchen")]
[assembly: AssemblyCopyright("Copyright © 2022")]
[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("c98403a1-aa47-4987-94fe-c1cef2e5cc85")]
// 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")]