-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathExtraLib.csproj
More file actions
76 lines (59 loc) · 2.79 KB
/
Copy pathExtraLib.csproj
File metadata and controls
76 lines (59 loc) · 2.79 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
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Library</OutputType>
<TargetFramework>net472</TargetFramework>
<Configurations>Debug;Release</Configurations> <!---->
<!--<Version>1.3.0</Version>--> <!--Can't change or break mod using ExtraLib-->
<!--The folder where Game.dll is located. Set it only if the game is not installed in the default location, otherwise keep it empty-->
<CustomManagedPath>E:\SteamLibrary\steamapps\common\Cities Skylines II\Cities2_Data\Managed</CustomManagedPath>
<CustomManagedPath>C:\Program Files (x86)\Steam\steamapps\common\Cities Skylines II\Cities2_Data\Managed</CustomManagedPath>
<AdditionalFilesDirectory>Resources</AdditionalFilesDirectory>
</PropertyGroup>
<ItemGroup>
<EmbeddedResource Include="embedded\**\*.*" />
</ItemGroup>
<!--Imports must be after PropertyGroup block-->
<Import Project="$([System.Environment]::GetEnvironmentVariable('CSII_TOOLPATH', 'EnvironmentVariableTarget.User'))\Mod.props" />
<Import Project="$([System.Environment]::GetEnvironmentVariable('CSII_TOOLPATH', 'EnvironmentVariableTarget.User'))\Mod.targets" />
<ItemGroup>
<Reference Include="$(CustomManagedPath)\Colossal.*.dll" Private="False" />
<Reference Include="$(CustomManagedPath)\Game*.dll" Private="False" />
<Reference Include="$(CustomManagedPath)\Unity*.dll" Private="False" />
<Reference Include="$(CustomManagedPath)\cohtml.Net.dll" Private="False" />
<Reference Include="$(CustomManagedPath)\PDX.*.dll" Private="False" />
</ItemGroup>
<ItemGroup>
<Compile Remove="UI\node_modules\**" />
<EmbeddedResource Remove="UI\node_modules\**" />
<None Remove="UI\node_modules\**" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Lib.Harmony" Version="2.2.2" />
</ItemGroup>
<ItemGroup>
<Reference Update="System">
<Private>false</Private>
</Reference>
<Reference Update="System.Core">
<Private>false</Private>
</Reference>
<Reference Update="System.Data">
<Private>false</Private>
</Reference>
</ItemGroup>
<Target Name="BuildUI" BeforeTargets="AfterBuild">
<Exec Command="npm run build" WorkingDirectory="$(ProjectDir)/UI" />
</Target>
<Target Name="CopyUIFiles" AfterTargets="DeployWIP">
<ItemGroup>
<UIFiles Include="bin\UI\**\*.*" />
</ItemGroup>
<Copy SourceFiles="@(UIFiles)" DestinationFiles="@(UIFiles->'$(DeployDir)\%(RecursiveDir)%(Filename)%(Extension)')" />
</Target>
<Target Name="GetAdditionalFiles" AfterTargets="DeployWIP">
<ItemGroup>
<AdditionalFilesToDeploy Include="$(AdditionalFilesDirectory)\**\*.*" />
</ItemGroup>
<Copy SourceFiles="@(AdditionalFilesToDeploy)" DestinationFiles="@(AdditionalFilesToDeploy->'$(DeployDir)\%(AdditionalFilesDirectory)\%(RecursiveDir)%(Filename)%(Extension)')" />
</Target>
</Project>