-
Notifications
You must be signed in to change notification settings - Fork 9
/
Directory.Build.props
93 lines (86 loc) · 4.12 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<Project>
<!-- Language Metadata -->
<PropertyGroup>
<Nullable>enable</Nullable>
<OutputType>Library</OutputType>
<LangVersion>latest</LangVersion>
<TargetFramework>net48</TargetFramework>
</PropertyGroup>
<!-- Assembly Metadata -->
<PropertyGroup>
<Authors>SirRandoo</Authors>
<Product>ToolkitUtils</Product>
<RepositoryType>git</RepositoryType>
<RootNamespace>SirRandoo.$(MsBuildProjectName)</RootNamespace>
<InformationalVersion>7.0.6.0-RC1</InformationalVersion>
<RepositoryUrl>https://github.com/sirrandoo/toolkit-utils</RepositoryUrl>
<Copyright>AGPL3 Copyright (c) $([System.DateTime]::Now.ToString("yyyy")) SirRandoo</Copyright>
</PropertyGroup>
<!-- Build Metadata -->
<PropertyGroup>
<RimWorldVersion>1.5</RimWorldVersion>
<GenerateAssemblyInfo>true</GenerateAssemblyInfo>
<AssemblyName>$(MSBuildProjectName)</AssemblyName>
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>
</PropertyGroup>
<!-- Steam Paths -->
<PropertyGroup>
<MainWorkshopRoot>C:\Program Files (x86)\Steam\steamapps\workshop\content\294100</MainWorkshopRoot>
<AltWorkshopRoot>D:\SteamLibrary\steamapps\workshop\content\294100</AltWorkshopRoot>
<RimWorldWorkshopRoot Condition="Exists('$(MainWorkshopRoot)')">$(MainWorkshopRoot)</RimWorldWorkshopRoot>
<RimWorldWorkshopRoot Condition="Exists('$(AltWorkshopRoot)')">$(AltWorkshopRoot)</RimWorldWorkshopRoot>
</PropertyGroup>
<Choose>
<When Condition="$([MSBuild]::VersionLessThan('$(RimWorldVersion)', '1.4'))">
<PropertyGroup>
<ToolkitCoreId>2018368654</ToolkitCoreId>
<TwitchToolkitId>1718525787</TwitchToolkitId>
</PropertyGroup>
</When>
<Otherwise>
<PropertyGroup>
<ToolkitCoreId>3013877477</ToolkitCoreId>
<TwitchToolkitId>3013874066</TwitchToolkitId>
</PropertyGroup>
</Otherwise>
</Choose>
<!-- Local dependencies -->
<ItemGroup>
<Reference Include="TwitchToolkit">
<HintPath>$(RimWorldWorkshopRoot)\$(TwitchToolkitId)\v$(RimWorldVersion)\Assemblies\TwitchToolkit.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="ToolkitCore">
<HintPath>$(RimWorldWorkshopRoot)\$(ToolkitCoreId)\v$(RimWorldVersion)\Assemblies\ToolkitCore.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="Newtonsoft.Json">
<HintPath>$(RimWorldWorkshopRoot)\$(ToolkitCoreId)\Assemblies\Newtonsoft.Json.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="TwitchLib.Client">
<HintPath>$(RimWorldWorkshopRoot)\$(ToolkitCoreId)\Assemblies\TwitchLib.Client.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="TwitchLib.Client.Enums">
<HintPath>$(RimWorldWorkshopRoot)\$(ToolkitCoreId)\Assemblies\TwitchLib.Client.Enums.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="TwitchLib.Client.Models">
<HintPath>$(RimWorldWorkshopRoot)\$(ToolkitCoreId)\Assemblies\TwitchLib.Client.Models.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="TwitchLib.Communication">
<HintPath>$(RimWorldWorkshopRoot)\$(ToolkitCoreId)\Assemblies\TwitchLib.Communication.dll</HintPath>
<Private>False</Private>
</Reference>
</ItemGroup>
<!-- NuGet dependencies -->
<ItemGroup>
<PackageReference Include="PolySharp" Version="1.14.1"/>
<PackageReference Include="Lib.Harmony" Version="2.3.3" ExcludeAssets="runtime"/>
<PackageReference Include="Krafs.Rimworld.Ref" Version="$(RimWorldVersion).*" ExcludeAssets="runtime"/>
</ItemGroup>
</Project>