forked from BAndysc/WoWDatabaseEditor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDirectory.Build.props
42 lines (38 loc) · 3.54 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
<?xml version="1.0" encoding="utf-8"?>
<Project>
<PropertyGroup>
<DirectoryBuildPropsPath>$(MSBuildThisFileDirectory)..\</DirectoryBuildPropsPath>
<DirectoryBuildPropsFilePath>$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(DirectoryBuildPropsPath)'))</DirectoryBuildPropsFilePath>
<DirectoryBuildPropsExists Condition="Exists('$(DirectoryBuildPropsFilePath)')">true</DirectoryBuildPropsExists>
</PropertyGroup>
<Import Project="$(DirectoryBuildPropsFilePath)" Condition="'$(DirectoryBuildPropsExists)' == 'true'" />
<PropertyGroup>
<RestoreAdditionalProjectSources>
https://nuget-feed-all.avaloniaui.net/v3/index.json;https://www.myget.org/F/xamlbehaviors-nightly/api/v3/index.json
</RestoreAdditionalProjectSources>
<NoWarn>CS0067,CS3021,CS1998,CA1416,CS1591</NoWarn>
<NoWarn>$(NoWarn),CS0649</NoWarn> <!-- The private field 'field' is never used - this is fine to me -->
<NoWarn>$(NoWarn),NUnit2005,NUnit2049</NoWarn> <!-- I don't mind old NUnit syntax -->
<NoWarn>$(NoWarn),CS0436</NoWarn> <!-- PropertChanged.SourceGenerator issue with InternalsVisibleTo when both assemblies use PropertChanged.SourceGenerator -->
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<WarningsNotAsErrors>CS0414</WarningsNotAsErrors> <!-- The private field 'field' is assigned but its value is never used - this fine to me -->
<WarningsNotAsErrors>$(WarningsNotAsErrors),CS0169</WarningsNotAsErrors> <!-- The private field 'class member' is never used - this is perfectly fine to me -->
<WarningsNotAsErrors>$(WarningsNotAsErrors),NUnit2005</WarningsNotAsErrors> <!-- I don't mind old NUnit syntax -->
<WarningsNotAsErrors>$(WarningsNotAsErrors),CS0436</WarningsNotAsErrors> <!-- PropertChanged.SourceGenerator issue with InternalsVisibleTo when both assemblies use PropertChanged.SourceGenerator -->
<WarningsNotAsErrors>$(WarningsNotAsErrors),NU5104</WarningsNotAsErrors> <!-- I am not producing any nuget packages, so I don't care -->
<WarningsNotAsErrors>$(WarningsNotAsErrors),CS1574</WarningsNotAsErrors> <!-- Antlr4 generates invalid XML comments, but I don't generate docs, so I don't care -->
<WarningsAsErrors>$(WarningsAsErrors),AVP1000, AVP1001, AVP1002, AVP1010, AVP1011, AVP1012, AVP1013, AVP1020, AVP1021, AVP1022, AVP1030, AVP1031, AVP1032, AVP1040, AVA2001</WarningsAsErrors>
<LangVersion>preview</LangVersion>
</PropertyGroup>
<PropertyGroup>
<!-- SolutionDir is not defined when building projects explicitly -->
<SolutionDir Condition=" '$(SolutionDir)' == '' ">$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildProjectDirectory), WoWDatabaseEditor.sln))\</SolutionDir>
<!-- Output paths -->
<BaseIntermediateOutputPath Condition="'$(WDEPropertiesSet)' == ''">$(SolutionDir)bin\obj\$(Configuration)\$(MSBuildProjectName)\</BaseIntermediateOutputPath>
<IntermediateOutputPath Condition="'$(WDEPropertiesSet)' == ''">$(SolutionDir)bin\obj\$(Configuration)\$(MSBuildProjectName)\</IntermediateOutputPath>
<MSBuildProjectExtensionsPath Condition="'$(WDEPropertiesSet)' == ''">$(IntermediateOutputPath)\</MSBuildProjectExtensionsPath>
<!-- <OutputPath>$(SolutionDir)bin\out\$(Configuration)\</OutputPath>-->
<OutDir Condition="'$(WDEPropertiesSet)' == ''">$(OutputPath)</OutDir>
<DocumentationFile Condition="'$(WDEPropertiesSet)' == ''">$(SolutionDir)bin\doc\$(Configuration)\$(MSBuildProjectName).xml</DocumentationFile>
</PropertyGroup>
</Project>