-
-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathPolyMod.csproj
More file actions
45 lines (43 loc) · 1.83 KB
/
PolyMod.csproj
File metadata and controls
45 lines (43 loc) · 1.83 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
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<Configurations>IL2CPP</Configurations>
<Version>1.2.7</Version>
<PolytopiaVersion>2.16.0.15379</PolytopiaVersion>
<Authors>PolyModdingTeam</Authors>
<Description>The Battle of Polytopia's mod loader.</Description>
<NoWarn>IDE0130</NoWarn>
<NoWarn>NU5104</NoWarn>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="BepInEx.Unity.IL2CPP" Version="6.0.0-be.752" />
<PackageReference Include="Costura.Fody" Version="6.0.0">
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Scriban" Version="6.2.1" />
<PackageReference Include="TheBattleOfPolytopia" Version="$(PolytopiaVersion)" />
<EmbeddedResource Include="resources\*.*" />
</ItemGroup>
<Target Name="AddGeneratedFile" BeforeTargets="BeforeCompile;CoreCompile" Inputs="$(MSBuildAllProjects)" Outputs="$(IntermediateOutputPath)GeneratedFile.cs">
<PropertyGroup>
<GeneratedText><![CDATA[
namespace PolyMod
{
public partial class Plugin
{
internal const string VERSION = "$(Version)"%3B
internal static readonly Version POLYTOPIA_VERSION = new("$(PolytopiaVersion)")%3B
}
}
]]></GeneratedText>
<GeneratedFilePath>$(IntermediateOutputPath)Props.cs</GeneratedFilePath>
</PropertyGroup>
<ItemGroup>
<Compile Include="$(GeneratedFilePath)" />
<FileWrites Include="$(GeneratedFilePath)" />
</ItemGroup>
<WriteLinesToFile Lines="$(GeneratedText)" File="$(GeneratedFilePath)" WriteOnlyWhenDifferent="true" Overwrite="true" />
</Target>
</Project>