-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDirectory.Build.props
44 lines (40 loc) · 2.11 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
<Project>
<PropertyGroup>
<TargetFramework>net48</TargetFramework>
<LangVersion>10.0</LangVersion>
<BaseOutputPath>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('C:\Neos\app\')">C:\Neos\app\</NeosPath>
<NeosPath Condition="Exists('C:\ProgramData\Neos\app\')">C:\ProgramData\Neos\app\</NeosPath>
<NeosPath Condition="Exists('..\..\..\Games\Neos\app\')">..\..\..\Games\Neos\app\</NeosPath>
<NeosPath Condition="Exists('$(HOME)/.steam/steam/steamapps/common/NeosVR/')">$(HOME)/.steam/steam/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="FrooxEngine">
<HintPath>$(GameRefsPath)FrooxEngine.dll</HintPath>
</Reference>
<Reference Include="NeosModLoader">
<HintPath>$(NeosPath)Libraries\NeosModLoader.dll</HintPath>
</Reference>
<PackageReference Include="Lib.Harmony" Version="2.2.1" />
</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>