generated from ljoonal/Neos-Mods-Template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDirectory.Build.props
60 lines (56 loc) · 2.7 KB
/
Directory.Build.props
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
<Project>
<PropertyGroup>
<LangVersion>9.0</LangVersion>
<TargetFramework>net472</TargetFramework>
<BaseOutputPath>$(MSBuildThisFileDirectory)bin</BaseOutputPath>
<BuildProjectReferences>false</BuildProjectReferences>
<Deterministic>true</Deterministic>
<CopyLocal>false</CopyLocal>
<CopyToMods Condition="'$(CopyToMods)'==''">false</CopyToMods>
<NeosPath>$(MSBuildThisFileDirectory)NeosVR</NeosPath>
<NeosPath Condition="Exists('C:\Program Files (x86)\Steam\steamapps\common\NeosVR\')">C:\Program Files (x86)\Steam\steamapps\common\NeosVR\</NeosPath>
<NeosPath Condition="Exists('$(HOME)/.steam/steam/steamapps/common/NeosVR/')">$(HOME)/.steam/steam/steamapps/common/NeosVR/</NeosPath>
<NeosPath Condition="Exists('D:\SteamLibrary\steamapps\common\NeosVR\')">D:\SteamLibrary\steamapps\common\NeosVR\</NeosPath>
<GameRefsPath>$(NeosPath)Neos_Data\Managed\</GameRefsPath>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<DebugSymbols Condition="'$(Configuration)'=='Release'">false</DebugSymbols>
<DebugType Condition="'$(Configuration)'=='Release'">None</DebugType>
</PropertyGroup>
<ItemGroup>
<Reference Include="NeosModLoader">
<HintPath>$(NeosPath)Libraries\NeosModLoader.dll</HintPath>
<HintPath>D:\Games\NeosVR_Data\Saves\Plugins\NeosModLoader.dll</HintPath>
</Reference>
<Reference Include="HarmonyLib">
<HintPath>$(NeosPath)0Harmony.dll</HintPath>
</Reference>
<Reference Include="Assembly-CSharp">
<HintPath>$(GameRefsPath)Assembly-CSharp.dll</HintPath>
</Reference>
<Reference Include="BaseX">
<HintPath>$(GameRefsPath)BaseX.dll</HintPath>
</Reference>
<Reference Include="FrooxEngine">
<HintPath>$(GameRefsPath)FrooxEngine.dll</HintPath>
</Reference>
<Reference Include="UnityEngine">
<HintPath>$(GameRefsPath)UnityEngine.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.CoreModule">
<HintPath>$(GameRefsPath)UnityEngine.CoreModule.dll</HintPath>
</Reference>
<Reference Include="CloudX.Shared">
<HintPath>$(GameRefsPath)CloudX.Shared.dll</HintPath>
</Reference>
</ItemGroup>
<!-- make all references non-private, so they won't be copied to the output folder -->
<Target Name="ClearReferenceCopyLocalPaths" AfterTargets="ResolveAssemblyReferences">
<ItemGroup>
<ReferenceCopyLocalPaths Remove="@(ReferenceCopyLocalPaths)" />
</ItemGroup>
</Target>
<Target Name="PostBuild" AfterTargets="PostBuildEvent" Condition="'$(CopyToMods)'=='true'">
<Copy SourceFiles="$(TargetPath)" DestinationFolder="$(NeosPath)nml_mods" />
</Target>
</Project>