-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathTemplateExample.csproj
More file actions
79 lines (68 loc) · 3.86 KB
/
Copy pathTemplateExample.csproj
File metadata and controls
79 lines (68 loc) · 3.86 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
68
69
70
71
72
73
74
75
76
77
78
79
<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net35</TargetFramework>
<AssemblyName>TemplateExample</AssemblyName>
<RootNamespace>Ostranauts.TemplateExample</RootNamespace>
<LangVersion>latest</LangVersion>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<DebugType>embedded</DebugType>
<Nullable>enable</Nullable>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<!-- Ostranauts installation directory - tries common Steam locations -->
<OstranautsPath Condition="'$(OstranautsPath)' == '' AND Exists('D:\Steam\steamapps\common\Ostranauts')">D:\Steam\steamapps\common\Ostranauts</OstranautsPath>
<OstranautsPath Condition="'$(OstranautsPath)' == '' AND Exists('C:\Steam\steamapps\common\Ostranauts')">C:\Steam\steamapps\common\Ostranauts</OstranautsPath>
<OstranautsPath Condition="'$(OstranautsPath)' == '' AND Exists('C:\Program Files (x86)\Steam\steamapps\common\Ostranauts')">C:\Program Files (x86)\Steam\steamapps\common\Ostranauts</OstranautsPath>
<OstranautsPath Condition="'$(OstranautsPath)' == '' AND Exists('$(USERPROFILE)\.steam\steam\steamapps\common\Ostranauts')">$(USERPROFILE)\.steam\steam\steamapps\common\Ostranauts</OstranautsPath>
<OstranautsPath Condition="'$(OstranautsPath)' == ''">C:\Program Files (x86)\Steam\steamapps\common\Ostranauts</OstranautsPath>
<GameManagedPath>$(OstranautsPath)\Ostranauts_Data\Managed</GameManagedPath>
<BepInExPath>$(OstranautsPath)\BepInEx</BepInExPath>
<!-- Output to BepInEx plugins folder -->
<OutputPath>$(BepInExPath)\plugins\MyCoolMod\</OutputPath>
</PropertyGroup>
<ItemGroup>
<!-- BepInEx and HarmonyX from NuGet -->
<PackageReference Include="BepInEx.Core" Version="5.*">
<IncludeAssets>compile</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<!-- Harmony from BepInEx installation -->
<Reference Include="0Harmony">
<HintPath>$(BepInExPath)\core\0Harmony.dll</HintPath>
<Private>False</Private>
</Reference>
<!-- LaunchControl dependency - check multiple locations -->
<!-- 1. Direct project reference (local development) -->
<ProjectReference Include="..\LaunchControl\LaunchControl.csproj" Condition="Exists('..\LaunchControl\LaunchControl.csproj')">
<Private>False</Private>
</ProjectReference>
<!-- 2. CI downloaded from Thunderstore dependencies -->
<Reference Include="LaunchControl" Condition="!Exists('..\LaunchControl\LaunchControl.csproj') AND Exists('vendor\refs\plugins\LaunchControl.dll')">
<HintPath>vendor\refs\plugins\LaunchControl.dll</HintPath>
<Private>False</Private>
</Reference>
<!-- 3. Local game install -->
<Reference Include="LaunchControl" Condition="!Exists('..\LaunchControl\LaunchControl.csproj') AND !Exists('vendor\refs\plugins\LaunchControl.dll') AND Exists('$(BepInExPath)\plugins\LaunchControl\LaunchControl.dll')">
<HintPath>$(BepInExPath)\plugins\LaunchControl\LaunchControl.dll</HintPath>
<Private>False</Private>
</Reference>
<!-- Ostranauts Game Assembly -->
<Reference Include="Assembly-CSharp">
<HintPath>$(GameManagedPath)\Assembly-CSharp.dll</HintPath>
<Private>False</Private>
</Reference>
<!-- Unity Engine References -->
<Reference Include="UnityEngine">
<HintPath>$(GameManagedPath)\UnityEngine.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.UI">
<HintPath>$(GameManagedPath)\UnityEngine.UI.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="TextMeshPro">
<HintPath>$(GameManagedPath)\TextMeshPro-5.6-Runtime.dll</HintPath>
<Private>False</Private>
</Reference>
</ItemGroup>
</Project>