-
Notifications
You must be signed in to change notification settings - Fork 0
/
Directory.Build.props
68 lines (63 loc) · 3 KB
/
Directory.Build.props
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
<Project>
<!-- Nuget metadata -->
<PropertyGroup>
<Version>2023.0.0.0-preview</Version>
<Copyright>Copyright (c) Evergine 2024</Copyright>
<Authors>Evergine Team</Authors>
<Company>Plain Concepts</Company>
<Product>XRV</Product>
<PackageProjectUrl>https://evergine.com/</PackageProjectUrl>
<RepositoryUrl>https://github.com/EvergineTeam/</RepositoryUrl>
<PackageIcon>icon.png</PackageIcon>
<PackageTags>Evergine;C#;3D;AR;VR</PackageTags>
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
<!--
This one indicates that required projects should reference MRTK NuGet package.
When false, it will reference MRTK project file.
-->
<UseMRTKNuget Condition="'$(UseMRTKNuget)'==''">false</UseMRTKNuget>
<!-- This one indicates that target project should actually include a direct reference to MRTK.-->
<ReferenceMRTK Condition="'$(ReferenceMRTK)'==''">false</ReferenceMRTK>
</PropertyGroup>
<!-- Nuget packaging assets -->
<ItemGroup>
<None Include="$(MSBuildThisFileDirectory)packaging\resources\LICENSE.txt" Pack="true" PackagePath="\" Visible="false"/>
<None Include="$(MSBuildThisFileDirectory)packaging\resources\icon.png" Pack="true" PackagePath="\" Visible="false"/>
</ItemGroup>
<ItemGroup Condition="'$(UseMRTKNuget)'=='false' And '$(ReferenceMRTK)'=='true'">
<ProjectReference Include="$(MSBuildThisFileDirectory)submodules\MRTK\Source\Evergine.MRTK\Evergine.MRTK.csproj" />
</ItemGroup>
<ItemGroup Condition="'$(UseMRTKNuget)'=='true' And '$(ReferenceMRTK)'=='true'">
<PackageReference Include="Evergine.MRTK" Version="2024.10.23.1" />
</ItemGroup>
<!-- Add-ons packaging -->
<PropertyGroup>
<!-- This one is intended to be used in Asset projects only.-->
<IsAddOnProject Condition="'$(IsAddOnProject)'==''">false</IsAddOnProject>
</PropertyGroup>
<ItemGroup Condition="'$(IsAddOnProject)'=='true'">
<PackageReference Include="Evergine.Packages.Targets" Version="2024.10.24.7" />
</ItemGroup>
<!-- Stylecop -->
<PropertyGroup Condition="'$(Configuration)'=='Release'">
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<StyleCopTreatErrorsAsWarnings>false</StyleCopTreatErrorsAsWarnings>
</PropertyGroup>
<PropertyGroup>
<LangVersion>latest</LangVersion>
<CodeAnalysisRuleSet>$(MSBuildThisFileDirectory)\stylecop.ruleset</CodeAnalysisRuleSet>
<!-- Fix some rules not being checked by MSBuild
https://github.com/DotNetAnalyzers/StyleCopAnalyzers/issues/1721 -->
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<!-- Other rules like IDE0005 neither evaluated
https://github.com/dotnet/roslyn/issues/41640#issuecomment-985780130 -->
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
</PropertyGroup>
<ItemGroup>
<AdditionalFiles Include="$(MSBuildThisFileDirectory)\stylecop.json" />
<PackageReference Include="StyleCop.Analyzers" Version="1.1.118">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
</ItemGroup>
</Project>