Repository navigation
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
39 lines (33 loc) · 1.66 KB
/
Copy pathDirectory.Build.props
File metadata and controls
39 lines (33 loc) · 1.66 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
<Project>
<!--
Shared MSBuild settings for every FiveM project in this repo (MenuAPI, TestMenu). RedM has its
own in redm/, which does not import this one.
OutputPath is deliberately NOT set here. CI zips MenuAPI/bin/Release/<framework>, so moving
the output would break the workflow. The framework is set per project, because MenuAPI and
TestMenu build for both net10.0 (Enhanced) and net452 (Legacy).
-->
<PropertyGroup>
<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<Configurations>Release;Debug;NativeHooks</Configurations>
<DebugType>embedded</DebugType>
<Authors>Tom Grobbe</Authors>
<Copyright>Copyright (C) 2018-2026 Tom Grobbe</Copyright>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)' == 'NativeHooks'">
<NativeHooks>true</NativeHooks>
<Optimize>true</Optimize>
<DefineConstants>$(DefineConstants);NATIVE_HOOKS</DefineConstants>
<EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>
</PropertyGroup>
<ItemGroup Condition="'$(NativeHooks)' == 'true'
And '$(MSBuildProjectName)' != 'MenuAPI.NativeHooks'
And '$(MSBuildProjectName)' != 'MenuAPI.NativeHooks.Generator'">
<ProjectReference Include="$(MSBuildThisFileDirectory)MenuAPI.NativeHooks.Generator\MenuAPI.NativeHooks.Generator.csproj"
OutputItemType="Analyzer"
ReferenceOutputAssembly="false" />
<ProjectReference Include="$(MSBuildThisFileDirectory)MenuAPI.NativeHooks\MenuAPI.NativeHooks.csproj"
PrivateAssets="all" />
</ItemGroup>
</Project>