-
Notifications
You must be signed in to change notification settings - Fork 0
/
EIV_Game.csproj
91 lines (91 loc) · 4.26 KB
/
EIV_Game.csproj
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
<Project Sdk="Godot.NET.Sdk/4.3.0">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<EnableDynamicLoading>true</EnableDynamicLoading>
<RootNamespace>ExtractIntoVoid</RootNamespace>
<GenerateAssemblyInfo>False</GenerateAssemblyInfo>
<GenerateDocumentationFile>False</GenerateDocumentationFile>
<Configurations>Debug;ExportDebug;ExportRelease;DebugClient;DebugServer</Configurations>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Debug'">
<DefineConstants>$(DefineConstants);GAME;TESTING</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='DebugServer'">
<DefineConstants>$(DefineConstants);SERVER;TESTING</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='DebugClient'">
<DefineConstants>$(DefineConstants);CLIENT;TESTING</DefineConstants>
</PropertyGroup>
<PropertyGroup>
<GodotExportConstants>GODOT_EXPORT</GodotExportConstants>
<DefineConstants>$(GodotExportConstants);$(DefineConstants)</DefineConstants>
<Version>0.0.1-alpha2</Version>
<Title>Extract Into Void Game Base</Title>
<Authors>Extract Into Void</Authors>
<Description>$(Title)</Description>
<Copyright>Extract Into Void</Copyright>
<PackageProjectUrl>https://github.com/ExtractIntoVoid/EIV_Game</PackageProjectUrl>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageLicenseFile>license.txt</PackageLicenseFile>
</PropertyGroup>
<ItemGroup>
<Compile Remove="libs\**" />
<EmbeddedResource Remove="libs\**" />
</ItemGroup>
<ItemGroup>
<Compile Update="csharp\Properties\Resource.Designer.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>Resource.resx</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Update="csharp\Properties\Resource.resx">
<Generator>PublicResXFileCodeGenerator</Generator>
<LastGenOutput>Resource.Designer.cs</LastGenOutput>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<PackageReference Include="EIV_Common" Version="0.0.1.3" />
<PackageReference Include="EIV_DataPack" Version="1.0.3.1" />
<PackageReference Include="EIV_JsonLib" Version="2.0.1" />
<PackageReference Include="ini-parser-netstandard" Version="2.5.2" />
<PackageReference Include="ModAPI" Version="0.0.1.1" />
<PackageReference Include="SemanticVersioning" Version="2.0.2" />
</ItemGroup>
<ItemGroup>
<Folder Include="csharp\Modding\Item\" />
</ItemGroup>
<ItemGroup>
<None Include="license.txt">
<Pack>True</Pack>
<PackagePath>\</PackagePath>
</None>
<None Include="README.md">
<Pack>True</Pack>
<PackagePath>\</PackagePath>
</None>
</ItemGroup>
<Target Name="PreBuild" BeforeTargets="Build" Condition="'$(OS)' == 'Windows_NT'">
<Exec Command="git branch --show-current > "$(ProjectDir)/csharp/Properties/BuildDate.txt"
echo $([System.DateTime]::UtcNow.ToString("s"))>> "$(ProjectDir)/csharp/Properties/BuildDate.txt"
git rev-parse --short HEAD >> "$(ProjectDir)/csharp/Properties/BuildDate.txt"" />
</Target>
<!-- INI placement. (So we dont need to do manually) -->
<ItemGroup>
<Content Include="resources/ini/Client.ini" Condition="$([System.Text.RegularExpressions.Regex]::IsMatch($(DefineConstants), '^(.*;)*CLIENT(;.*)*$'))">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<TargetPath>Client.ini</TargetPath>
</Content>
<Content Include="resources/ini/Server.ini" Condition="$([System.Text.RegularExpressions.Regex]::IsMatch($(DefineConstants), '^(.*;)*SERVER(;.*)*$'))">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<TargetPath>Server.ini</TargetPath>
</Content>
<Content Include="resources/ini/Game.ini" Condition="$([System.Text.RegularExpressions.Regex]::IsMatch($(DefineConstants), '^(.*;)*GAME(;.*)*$'))">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<TargetPath>Game.ini</TargetPath>
</Content>
<!-- This here because we can see the dll in VS (if you remove it still works.) -->
<None Include="resources/ini/Client.ini" />
<None Include="resources/ini/Game.ini" />
<None Include="resources/ini/Server.ini" />
</ItemGroup>
</Project>