Repository navigation
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
34 lines (34 loc) · 2.79 KB
/
Copy pathDirectory.Build.props
File metadata and controls
34 lines (34 loc) · 2.79 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
<!-- Contains required properties for osu!framework projects. -->
<Project>
<PropertyGroup>
<ApplicationManifest>$(MSBuildThisFileDirectory)app.manifest</ApplicationManifest>
</PropertyGroup>
<PropertyGroup Label="Documentation">
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<NoWarn>$(NoWarn);CS1591</NoWarn>
</PropertyGroup>
<PropertyGroup Condition="'$(O2JamSyncDiagnostics)' == 'true'">
<DefineConstants>$(DefineConstants);O2JAM_SYNC_DIAGNOSTICS</DefineConstants>
</PropertyGroup>
<PropertyGroup Label="Osu dependency">
<!-- Host compatibility is independent of the ruleset's semantic release version. -->
<OsuBase Condition="'$(OsuBase)' == ''">2026.1005</OsuBase>
<OsuRevision Condition="'$(OsuRevision)' == ''">0</OsuRevision>
<OsuVersion>$(OsuBase).$(OsuRevision)</OsuVersion>
<!-- Reference an explicit binary directory so a clone never builds or modifies sibling
checkouts and never depends on ignored reference artifacts from another machine. -->
<UseLocalOsu Condition="'$(UseLocalOsu)' == ''">true</UseLocalOsu>
<OsuGameProjectPath Condition="'$(OsuGameProjectPath)' == '' and '$(OsuBinaryDirectory)' != ''">$([System.IO.Path]::Combine('$(OsuBinaryDirectory)', 'osu.Game.dll'))</OsuGameProjectPath>
<UseLocalOsuBinary Condition="'$(UseLocalOsu)' == 'true'">true</UseLocalOsuBinary>
<OsuManiaAssemblyPath Condition="'$(UseLocalOsuBinary)' == 'true' and '$(OsuManiaAssemblyPath)' == '' and '$(OsuGameProjectPath)' != ''">$([System.IO.Path]::Combine($([System.IO.Path]::GetDirectoryName('$(OsuGameProjectPath)')), 'osu.Game.Rulesets.Mania.dll'))</OsuManiaAssemblyPath>
</PropertyGroup>
<Target Name="ValidateO2LazerReferences" BeforeTargets="ResolveAssemblyReferences" Condition="'$(UseLocalOsuBinary)' == 'true' and '$(RequiresOsuReferences)' != 'false'">
<PropertyGroup>
<_O2LazerGameReferenceExtension>$([System.IO.Path]::GetExtension('$(OsuGameProjectPath)'))</_O2LazerGameReferenceExtension>
</PropertyGroup>
<Error Condition="'$(OsuGameProjectPath)' == ''" Text="Set OsuBinaryDirectory to the matching osu!lazer binary directory. See docs/development.md." />
<Error Condition="'$(OsuGameProjectPath)' != '' and '$(_O2LazerGameReferenceExtension)' != '.dll'" Text="OsuGameProjectPath must reference an existing DLL, not a project. Sibling checkouts are read-only references." />
<Error Condition="!Exists('$(OsuGameProjectPath)')" Text="osu.Game.dll was not found at $(OsuGameProjectPath)." />
<Error Condition="!Exists('$(OsuManiaAssemblyPath)')" Text="osu.Game.Rulesets.Mania.dll was not found at $(OsuManiaAssemblyPath). Set OsuManiaAssemblyPath if it is not beside osu.Game.dll." />
</Target>
</Project>