|
1 | | -<?xml version="1.0" encoding="utf-8"?> |
2 | | -<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
| 1 | +<Project Sdk="Microsoft.NET.Sdk"> |
3 | 2 | <PropertyGroup> |
4 | 3 | <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> |
5 | 4 | <Platform Condition=" '$(Platform)' == '' ">x64</Platform> |
|
13 | 12 | <RootNamespace>COM3D2.LiveLink.Plugin</RootNamespace> |
14 | 13 | <AssemblyName>COM3D2.LiveLink.Plugin</AssemblyName> |
15 | 14 | <LangVersion>latest</LangVersion> |
16 | | - <TargetFrameworkVersion>v3.5</TargetFrameworkVersion> |
17 | | - <FileAlignment>512</FileAlignment> |
| 15 | + <TargetFramework>net35</TargetFramework> |
18 | 16 | <COM3D2InstallPath>C:\DJN\KISS\COM3D2</COM3D2InstallPath> |
19 | 17 | <OutputPath>bin\$(Configuration)\$(Platform)</OutputPath> |
20 | 18 | <StartProgram>$(COM3D2InstallPath)\COM3D2x64.exe</StartProgram> |
| 19 | + <Configurations>Debug;Release;Debug_UnityEditor</Configurations> |
21 | 20 | </PropertyGroup> |
22 | 21 | <PropertyGroup Condition=" '$(Configuration)' == 'Debug' "> |
23 | 22 | <DebugSymbols>true</DebugSymbols> |
24 | 23 | <DebugType>full</DebugType> |
25 | 24 | <Optimize>false</Optimize> |
26 | 25 | <DefineConstants>DEBUG;TRACE</DefineConstants> |
27 | | - <ErrorReport>prompt</ErrorReport> |
28 | | - <WarningLevel>4</WarningLevel> |
29 | | - <OutputPath>bin\Debug\AnyCPU\</OutputPath> |
30 | | - <AllowUnsafeBlocks>false</AllowUnsafeBlocks> |
| 26 | + </PropertyGroup> |
| 27 | + <PropertyGroup Condition="'$(Configuration)'=='Debug_UnityEditor'"> |
| 28 | + <DebugSymbols>true</DebugSymbols> |
| 29 | + <DebugType>full</DebugType> |
| 30 | + <Optimize>false</Optimize> |
| 31 | + <DefineConstants>DEBUG;TRACE</DefineConstants> |
| 32 | + </PropertyGroup> |
| 33 | + <PropertyGroup Condition=" '$(Configuration)' == 'Debug_UnityEditor' "> |
| 34 | + <DebugSymbols>true</DebugSymbols> |
| 35 | + <DebugType>full</DebugType> |
| 36 | + <Optimize>false</Optimize> |
| 37 | + <DefineConstants>DEBUG;TRACE;UNITY_EDITOR</DefineConstants> |
31 | 38 | </PropertyGroup> |
32 | 39 | <PropertyGroup Condition=" '$(Configuration)' == 'Release' "> |
33 | 40 | <DebugType>none</DebugType> |
34 | 41 | <Optimize>true</Optimize> |
35 | 42 | <DefineConstants>TRACE</DefineConstants> |
36 | | - <ErrorReport>prompt</ErrorReport> |
37 | | - <WarningLevel>4</WarningLevel> |
38 | | - <AllowUnsafeBlocks>false</AllowUnsafeBlocks> |
39 | 43 | </PropertyGroup> |
40 | 44 | <PropertyGroup> |
41 | 45 | <RestoreSources>$(RestoreSources);https://nuget.bepinex.dev/v3/index.json</RestoreSources> |
|
44 | 48 | <PackageReference Include="BepInEx.Analyzers" Version="1.0.8" targetFramework="net35" developmentDependency="true"> |
45 | 49 | <PrivateAssets>all</PrivateAssets> |
46 | 50 | </PackageReference> |
47 | | - <PackageReference Include="BepInEx.BaseLib" Version="5.4.19" targetFramework="net35" /> |
| 51 | + <PackageReference Include="BepInEx.BaseLib" Version="5.4.21" targetFramework="net35" /> |
48 | 52 | <PackageReference Include="BepInEx.Core" Version="5.4.19" targetFramework="net35" /> |
| 53 | + <PackageReference Include="COM3D2.GameLibs" Version="2.24.0-r.0" /> |
49 | 54 | <PackageReference Include="HarmonyX" Version="2.7.0" targetFramework="net35" /> |
| 55 | + <PackageReference Include="LuVoid.CM3D2.UGUI" Version="0.1.4-alpha.1" /> |
50 | 56 | <PackageReference Include="Mono.Cecil" Version="0.10.4" targetFramework="net35" /> |
51 | 57 | <PackageReference Include="MonoMod.RuntimeDetour" Version="21.12.13.1" targetFramework="net35" /> |
52 | 58 | <PackageReference Include="MonoMod.Utils" Version="21.12.13.1" targetFramework="net35" /> |
53 | 59 | </ItemGroup> |
54 | 60 | <ItemGroup> |
55 | 61 | <Reference Include="COM3D2.API, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL" /> |
56 | | - <Reference Include="System"> |
57 | | - <Private>False</Private> |
58 | | - </Reference> |
59 | | - <Reference Include="System.Core"> |
60 | | - <Private>False</Private> |
61 | | - </Reference> |
62 | | - <Reference Include="System.Xml.Linq"> |
63 | | - <Private>False</Private> |
64 | | - </Reference> |
65 | | - <Reference Include="System.Data.DataSetExtensions"> |
66 | | - <Private>False</Private> |
67 | | - </Reference> |
68 | | - <Reference Include="System.Data"> |
69 | | - <Private>False</Private> |
70 | | - </Reference> |
71 | | - <Reference Include="System.Xml"> |
72 | | - <Private>False</Private> |
73 | | - </Reference> |
74 | 62 | <Reference Include="Assembly-CSharp"> |
75 | 63 | <HintPath>$(COM3D2InstallPath)\COM3D2x64_Data\Managed\Assembly-CSharp.dll</HintPath> |
76 | 64 | <Private>False</Private> |
|
95 | 83 | <ReferencePath>$(ReferencePath);$(COM3D2InstallPath)\Sybaris</ReferencePath> |
96 | 84 | <ReferencePath>$(ReferencePath);$(COM3D2InstallPath)\Sybaris\UnityInjector</ReferencePath> |
97 | 85 | </PropertyGroup> |
98 | | - <ItemGroup> |
99 | | - <Compile Include="CodeMatcherExtensions.cs" /> |
100 | | - <Compile Include="ImportCMExtensions.cs" /> |
101 | | - <Compile Include="LiveLinkModelViewer.cs" /> |
102 | | - <Compile Include="SystemDialogExtensions.cs" /> |
103 | | - <Compile Include="Tests\PluginTests.cs" /> |
104 | | - <Compile Include="LiveLinkAnimator.cs" /> |
105 | | - <Compile Include="LiveLinkPluginConfig.cs" /> |
106 | | - <Compile Include="InternalSingleton.cs" /> |
107 | | - <Compile Include="Properties\AssemblyInfo.cs" /> |
108 | | - <Compile Include="LiveLinkPlugin.cs" /> |
109 | | - <Compile Include="Tests\PluginTestHelper.cs" /> |
110 | | - <Compile Include="Tests\PluginTestLogListener.cs" /> |
111 | | - <Compile Include="Tests\SafeExitHelper.cs" /> |
112 | | - <Compile Include="Tests\TestRecieveMessageHelper.cs" /> |
113 | | - </ItemGroup> |
114 | 86 | <ItemGroup> |
115 | 87 | <ProjectReference Include="..\..\CM3D2.Serialization\CM3D2.Serialization\CM3D2.Serialization.csproj"> |
116 | 88 | <Project>{59786FC6-0C86-495E-AB89-7CFABCC966E6}</Project> |
|
125 | 97 | <Name>LiveLink</Name> |
126 | 98 | </ProjectReference> |
127 | 99 | </ItemGroup> |
128 | | - <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> |
129 | 100 | <PropertyGroup> |
130 | | - <PostBuildEvent> |
| 101 | + <PostBuildEvent Condition=" '$(Configuration)' != 'Debug_UnityEditor' "> |
131 | 102 | for /f "usebackq delims=|" %25%25f in (`dir /b *.dll`) do "$(ProjectDir)\pdb2mdb.exe" "%25%25f" 1>nul |
132 | 103 | rd "$(COM3D2InstallPath)\BepinEx\plugins\vsout_$(ProjectName)" |
133 | 104 | mklink /J "$(COM3D2InstallPath)\BepinEx\plugins\vsout_$(ProjectName)" . |
134 | | -</PostBuildEvent> |
| 105 | + </PostBuildEvent> |
| 106 | + </PropertyGroup> |
| 107 | + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'"> |
| 108 | + <GenerateAssemblyInfo>False</GenerateAssemblyInfo> |
| 109 | + <Deterministic>False</Deterministic> |
135 | 110 | </PropertyGroup> |
| 111 | + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug_UnityEditor|AnyCPU'"> |
| 112 | + <GenerateAssemblyInfo>False</GenerateAssemblyInfo> |
| 113 | + <Deterministic>False</Deterministic> |
| 114 | + </PropertyGroup> |
| 115 | + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'"> |
| 116 | + <GenerateAssemblyInfo>False</GenerateAssemblyInfo> |
| 117 | + <Deterministic>False</Deterministic> |
| 118 | + </PropertyGroup> |
| 119 | + <Target Name="CreateMonoDebugSymbols" AfterTargets="build" Condition="'$(Configuration)' == 'Debug_UnityEditor'"> |
| 120 | + <Exec Command="for /f "usebackq delims=|" %25%25f in (`dir /b *.dll`) do "$(ProjectDir)lib\pdb2mdb.exe" %25%25f" WorkingDirectory="$(OutputPath)" /> |
| 121 | + </Target> |
136 | 122 | <!-- To modify your build process, add your task inside one of the targets below and uncomment it. |
137 | 123 | Other similar extension points exist, see Microsoft.Common.targets. |
138 | 124 | <Target Name="BeforeBuild"> |
|
0 commit comments