Repository navigation
Expand file tree
/
Copy pathProjectMER.csproj
More file actions
67 lines (60 loc) · 3.75 KB
/
Copy pathProjectMER.csproj
File metadata and controls
67 lines (60 loc) · 3.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<LangVersion>12</LangVersion>
<TargetFramework>net4.8</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
<ItemGroup>
<Compile Remove="SL-CustomObjects\**" />
<None Remove="SL-CustomObjects\**" />
</ItemGroup>
<ItemGroup>
<Reference Include="UnityEngine" HintPath="$(SL_REFERENCES)\UnityEngine.dll" />
<Reference Include="UnityEngine.AnimationModule" HintPath="$(SL_REFERENCES)\UnityEngine.AnimationModule.dll" />
<Reference Include="UnityEngine.CoreModule" HintPath="$(SL_REFERENCES)\UnityEngine.CoreModule.dll" />
<Reference Include="UnityEngine.AssetBundleModule" HintPath="$(SL_REFERENCES)\UnityEngine.AssetBundleModule.dll" />
<Reference Include="UnityEngine.PhysicsModule" HintPath="$(SL_REFERENCES)\UnityEngine.PhysicsModule.dll" />
<Reference Include="Unity.TextMeshPro" HintPath="$(SL_REFERENCES)\Unity.TextMeshPro.dll" />
<Reference Include="Mirror" HintPath="$(SL_REFERENCES)\Mirror.dll" />
<Reference Include="Assembly-CSharp" HintPath="$(SL_REFERENCES)\Assembly-CSharp-Publicized.dll" />
<Reference Include="Assembly-CSharp-firstpass" HintPath="$(SL_REFERENCES)\Assembly-CSharp-firstpass.dll" />
<Reference Include="CommandSystem.Core" HintPath="$(SL_REFERENCES)\CommandSystem.Core.dll" />
<Reference Include="YamlDotNet" HintPath="$(SL_REFERENCES)\YamlDotNet.dll" />
<Reference Include="NorthwoodLib" HintPath="$(SL_REFERENCES)\NorthwoodLib.dll" />
<Reference Include="Pooling" HintPath="$(SL_REFERENCES)\Pooling.dll" />
<Reference Include="LabApi" HintPath="$(SL_REFERENCES)\LabApi.dll" />
<Reference Include="HintServiceMeow-Exiled" HintPath="$(SL_REFERENCES)\HintServiceMeow-Exiled.dll">
<Private>False</Private>
</Reference>
</ItemGroup>
<!--
Unity 版のコア アセンブリ。Windows では HintPath がそのまま採用されるが、
Linux の SDK は mscorlib だけを NuGet の net48 参照アセンブリへ差し替えてしまい、
「Unity 版 System/netstandard + .NET Framework 版 mscorlib」という
食い違った組み合わせになって CS1069 (Queue<> 等) で失敗する。
Windows のビルドを一切変えずに Linux でもビルドできるよう、Windows 限定にしている。
Linux では SDK 既定の net48 参照アセンブリが使われる。
-->
<ItemGroup Condition="'$(OS)' == 'Windows_NT'">
<Reference Include="mscorlib" HintPath="$(SL_REFERENCES)\mscorlib.dll" Private="false" />
<Reference Include="System" HintPath="$(SL_REFERENCES)\System.dll" Private="false" />
<Reference Include="netstandard" HintPath="$(SL_REFERENCES)\netstandard.dll" Private="false" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="ExMod.Exiled" Version="9.14.2" />
<PackageReference Include="Lib.Harmony" Version="2.3.6" />
</ItemGroup>
<Target Name="CopyReleaseToLabApiAndReferences" AfterTargets="Build" Condition="'$(Configuration)' == 'Release'">
<PropertyGroup>
<SLReferencesDir>$(SL_References)</SLReferencesDir>
<LabApiPluginsDir>$(APPDATA)\SCP Secret Laboratory\LabAPI\plugins\7777</LabApiPluginsDir>
</PropertyGroup>
<Error Condition="'$(SLReferencesDir)' == ''" Text="The SL_References environment variable is not set." />
<Error Condition="'$(APPDATA)' == ''" Text="The APPDATA environment variable is not set." />
<MakeDir Directories="$(SLReferencesDir);$(LabApiPluginsDir)" />
<Copy SourceFiles="$(TargetPath)" DestinationFolder="$(SLReferencesDir)" SkipUnchangedFiles="false" />
<Copy SourceFiles="$(TargetPath)" DestinationFolder="$(LabApiPluginsDir)" SkipUnchangedFiles="false" />
</Target>
</Project>