-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathPolyMod.csproj
47 lines (45 loc) · 1.92 KB
/
PolyMod.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
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<RestoreAdditionalProjectSources>
https://api.nuget.org/v3/index.json;
https://nuget.bepinex.dev/v3/index.json;
https://nuget.samboy.dev/v3/index.json;
https://polymod.dev/nuget/v3/index.json;
</RestoreAdditionalProjectSources>
<Configurations>IL2CPP</Configurations>
<Version>1.1.6</Version>
<PolytopiaVersion>2.12.2.13970</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.725" />
<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>