-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
103 lines (91 loc) · 4.31 KB
/
Directory.Build.props
File metadata and controls
103 lines (91 loc) · 4.31 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
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
92
93
94
95
96
97
98
99
100
101
102
103
<Project>
<PropertyGroup>
<TargetFramework>net48</TargetFramework>
<OutputType>Library</OutputType>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<LangVersion>latest</LangVersion>
<AppOutputBase>$(MSBuildProjectDirectory)\</AppOutputBase>
<Nullable>enable</Nullable>
<Company />
<Authors>nanikit</Authors>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/nanikit/BetterSorts.git</RepositoryUrl>
<Platforms>x64</Platforms>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<Configurations>Debug-1.29.1;Release-1.29.1;Debug-1.34.2;Release-1.34.2;Debug-1.36.2;Release-1.36.2;Debug-1.37.5;Release-1.37.5</Configurations>
<OutputPath>bin\$(Configuration)</OutputPath>
</PropertyGroup>
<ItemGroup>
<Compile Include="..\BetterSort.Common\Compatibility\BreakingTypes.cs" Link="External\BreakingTypes.cs" />
</ItemGroup>
<PropertyGroup Condition="$(Configuration.Contains('Debug'))">
<DebugSymbols>true</DebugSymbols>
<DebugType>portable</DebugType>
</PropertyGroup>
<PropertyGroup Condition="$(Configuration.Contains('Release'))">
<DebugType>none</DebugType>
<Optimize Condition=" '$(Optimize)' == '' ">true</Optimize>
</PropertyGroup>
<Sdk Name="DotNet.ReproducibleBuilds.Isolated" Version="1.2.4" />
<ItemGroup>
<PackageReference Include="DotNet.ReproducibleBuilds" Version="1.2.4" PrivateAssets="All" />
</ItemGroup>
<ItemGroup Condition="'$(OutputType)' == 'Library'">
<PackageReference Include="Nanikit.BeatSaberModdingTools.Tasks">
<Version>2.0.0-beta9-g99d7dd8810</Version>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>
<ItemGroup>
<OutputCopy Include="$(OutputPath)\Merged\$(AssemblyName).dll" OutputPath="Plugins\$(AssemblyName).dll" />
</ItemGroup>
<PropertyGroup>
<GameVersion>$([System.Text.RegularExpressions.Regex]::Match($(Configuration), `[0-9.]+`))</GameVersion>
<BSMTProjectType>BSIPA</BSMTProjectType>
<Authors>nanikit</Authors>
<ProjectHome>https://github.com/nanikit/BetterSorts</ProjectHome>
<ProjectSource>$(RepositoryUrl)</ProjectSource>
<BeatmodsPatchNumber>0</BeatmodsPatchNumber>
</PropertyGroup>
<PropertyGroup>
<StartAction>Program</StartAction>
<StartProgram>C:\Program Files %28x86%29\Steam\steam.exe</StartProgram>
<StartArguments>-applaunch 620980 --verbose fpfc</StartArguments>
</PropertyGroup>
<!-- For vscode language server -->
<PropertyGroup Condition="'$(GameVersion)' == ''">
<GameVersion>1.29.1</GameVersion>
</PropertyGroup>
<PropertyGroup Condition="$([MSBuild]::VersionGreaterThanOrEquals('$(GameVersion)', '1.29.1'))">
<DefineConstants>$(DefineConstants);NOT_BEFORE_1_20</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="$([MSBuild]::VersionGreaterThanOrEquals('$(GameVersion)', '1.34.2'))">
<DefineConstants>$(DefineConstants);NOT_BEFORE_1_34</DefineConstants>
<BeatmodsPatchNumber>1</BeatmodsPatchNumber>
</PropertyGroup>
<PropertyGroup Condition="$([MSBuild]::VersionGreaterThanOrEquals('$(GameVersion)', '1.36.2'))">
<DefineConstants>$(DefineConstants);NOT_BEFORE_1_36_2</DefineConstants>
<BeatmodsPatchNumber>2</BeatmodsPatchNumber>
</PropertyGroup>
<PropertyGroup Condition="$([MSBuild]::VersionGreaterThanOrEquals('$(GameVersion)', '1.37.5'))">
<DefineConstants>$(DefineConstants);NOT_BEFORE_1_37_5</DefineConstants>
<BeatmodsPatchNumber>3</BeatmodsPatchNumber>
</PropertyGroup>
<Target Name="AddToSearchPaths" BeforeTargets="ResolveAssemblyReferences">
<PropertyGroup>
<ReferencePath>
$(SolutionDir)beatsaber-stripped\versions\$(GameVersion)\Plugins;
$(SolutionDir)beatsaber-stripped\versions\$(GameVersion)\Libs;
$(SolutionDir)beatsaber-stripped\versions\$(GameVersion)\Beat Saber_Data\Managed;
</ReferencePath>
<AssemblySearchPaths>$(AssemblySearchPaths);$(ReferencePath)</AssemblySearchPaths>
</PropertyGroup>
</Target>
<Target Name="MoveZips" AfterTargets="BSMT_ZipRelease">
<ItemGroup>
<ZipFile Include="$(ZipDestinationDirectory)*.zip" />
</ItemGroup>
<Move SourceFiles="@(ZipFile)" DestinationFolder="$(SolutionDir)zip" />
</Target>
</Project>