-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
60 lines (55 loc) · 2.4 KB
/
Directory.Build.props
File metadata and controls
60 lines (55 loc) · 2.4 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
<Project>
<PropertyGroup>
<Version>0.9.16</Version>
</PropertyGroup>
<PropertyGroup>
<Authors>XuXiaolan,loaforc</Authors>
<LangVersion>latest</LangVersion>
<IsPackable>false</IsPackable>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
<PropertyGroup>
<DebugSymbols>true</DebugSymbols>
<DebugType>embedded</DebugType>
<!--
Trim the project path to prevent players from potentially
viewing Private Information in stack traces.
-->
<PathMap>$([System.IO.Path]::GetFullPath('$(MSBuildThisFileDirectory)'))=./</PathMap>
</PropertyGroup>
<Target Name="AddGeneratedFile" BeforeTargets="BeforeCompile;CoreCompile" Inputs="$(MSBuildAllProjects)" Outputs="$(IntermediateOutputPath)MyPluginInfo.cs">
<PropertyGroup>
<BepInExPluginGuid Condition="'$(BepInExPluginGuid)' == ''">$(AssemblyName)</BepInExPluginGuid>
<BepInExPluginName Condition="'$(BepInExPluginName)' == ''">$(Product)</BepInExPluginName>
<BepInExPluginVersion Condition="'$(BepInExPluginVersion)' == ''">$(Version)</BepInExPluginVersion>
<GeneratedText><![CDATA[
namespace Dawn
{
internal static class MyPluginInfo
{
public const string PLUGIN_GUID = "$(BepInExPluginGuid)"%3B
public const string PLUGIN_NAME = "$(BepInExPluginName)"%3B
public const string PLUGIN_VERSION = "$(BepInExPluginVersion)"%3B
}
}
]]></GeneratedText>
<GeneratedFilePath>$(IntermediateOutputPath)MyPluginInfo.cs</GeneratedFilePath>
</PropertyGroup>
<ItemGroup>
<Compile Include="$(GeneratedFilePath)" />
<!-- Append to FileWrites so the file will be removed on clean -->
<FileWrites Include="$(GeneratedFilePath)" />
</ItemGroup>
<!-- Generate plugin info file here -->
<WriteLinesToFile Lines="$(GeneratedText)" File="$(GeneratedFilePath)" WriteOnlyWhenDifferent="true" Overwrite="true" />
</Target>
<PropertyGroup>
<Nullable>enable</Nullable>
</PropertyGroup>
<!-- Netcode Patcher -->
<PropertyGroup>
<NetcodePatcherUnityVersion>2022.3.62</NetcodePatcherUnityVersion>
<NetcodePatcherNetcodeVersion>1.12.2</NetcodePatcherNetcodeVersion>
<NetcodePatcherTransportVersion>1.0.0</NetcodePatcherTransportVersion>
</PropertyGroup>
</Project>