-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathProjectSettings.shared.props
More file actions
26 lines (25 loc) · 1.29 KB
/
ProjectSettings.shared.props
File metadata and controls
26 lines (25 loc) · 1.29 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
<Project>
<PropertyGroup>
<MinVerTagPrefix>v</MinVerTagPrefix>
<WarningsAsErrors>$(WarningsAsErrors);NU1605</WarningsAsErrors>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="MinVer" Version="6.*" PrivateAssets="All" />
</ItemGroup>
<!-- MinVer 和 BepInEx.PluginInfoProps 都 BeforeTargets="BeforeCompile;CoreCompile",
但 PluginInfoProps 的 AddGeneratedFile 先执行,读到的 $(Version) 还是默认值。
此桥接 target 强制 MinVer 在 AddGeneratedFile 之前完成。 -->
<Target Name="_EnsureMinVerBeforePluginInfo" BeforeTargets="AddGeneratedFile" DependsOnTargets="MinVer" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<TargetFramework>net6.0</TargetFramework>
<DefineConstants>IL2CPP,BIE,BIE6</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='BIE6_IL2CPP|AnyCPU'">
<TargetFramework>net6.0</TargetFramework>
<DefineConstants>IL2CPP,BIE,BIE6</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='BIE6_Mono|AnyCPU'">
<TargetFramework>netstandard2.1</TargetFramework>
<DefineConstants>MONO,BIE,BIE6</DefineConstants>
</PropertyGroup>
</Project>