-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMain.props
More file actions
26 lines (26 loc) · 2.35 KB
/
Copy pathMain.props
File metadata and controls
26 lines (26 loc) · 2.35 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
<?xml version="1.0"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<!-- Adapt this path if Stationeers is not found automatically -->
<StationeersDllDir>C:\Program Files (x86)\Steam\steamapps\common\Stationeers\rocketstation_Data\Managed</StationeersDllDir>
<!-- Default Steam installation paths for Windows -->
<DllSubDirW>steamapps\common\Stationeers\rocketstation_Data\Managed</DllSubDirW>
<StationeersDllDir Condition="Exists('C:\Program Files (x86)\Steam\$(DllSubDirW)')">C:\Program Files (x86)\Steam\$(DllSubDirW)</StationeersDllDir>
<StationeersDllDir Condition="Exists('C:\Program Files\Steam\$(DllSubDirW)')">C:\Program Files\Steam\$(DllSubDirW)</StationeersDllDir>
<StationeersDllDir Condition="Exists('D:\Program Files (x86)\Steam\$(DllSubDirW)')">D:\Program Files (x86)\Steam\$(DllSubDirW)</StationeersDllDir>
<StationeersDllDir Condition="Exists('D:\Program Files\Steam\$(DllSubDirW)')">D:\Program Files\Steam\$(DllSubDirW)</StationeersDllDir>
<StationeersDllDir Condition="Exists('C:\Steam\$(DllSubDirW)')">C:\Steam\$(DllSubDirW)</StationeersDllDir>
<StationeersDllDir Condition="Exists('D:\Steam\$(DllSubDirW)')">D:\Steam\$(DllSubDirW)</StationeersDllDir>
<StationeersDllDir Condition="Exists('E:\Steam\$(DllSubDirW)')">E:\Steam\$(DllSubDirW)</StationeersDllDir>
<!-- Check for Linux Steam paths using environment variables or known directories -->
<DllSubDirL>steamapps/common/Stationeers/rocketstation_Data/Managed</DllSubDirL>
<StationeersDllDir Condition="Exists('$(HOME)/.steam/steam/$(DllSubDirL)')">$(HOME)/.steam/steam/$(DllSubDirL)</StationeersDllDir>
<StationeersDllDir Condition="Exists('$(HOME)/Steam/$(DllSubDirL)')">$(HOME)/Steam/$(DllSubDirL)</StationeersDllDir>
<StationeersDllDir Condition="Exists('$(STEAMROOT)/$(DllSubDirL)')">$(STEAMROOT)/$(DllSubDirL)</StationeersDllDir>
<StationeersDllDir Condition="Exists('$(STATIONEERS_DLL_DIR)')">$(STATIONEERS_DLL_DIR)</StationeersDllDir>
</PropertyGroup>
<Target Name="PrintPaths" BeforeTargets="Build">
<Message Importance="High" Text="StationeersDllDir: $(StationeersDllDir)"/>
<Error Condition="!Exists('$(StationeersDllDir)/Assembly-CSharp.dll')" Text="Could not find Stationeers automatically, set it manually in Main.props Line 4, or set STATIONEERS_DLL_DIR environment variable"/>
</Target>
</Project>