-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDirectory.Build.props
59 lines (50 loc) · 1.98 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
<Project>
<!-- Project Metadata -->
<PropertyGroup>
<Description>Tool for repackaging pre-release NuGet packages as release versions without rebuilding.</Description>
<Product>NugetRepack</Product>
<Company>Oak Aged LLC</Company>
<Copyright>Copyright (c) Oak Aged LLC. All rights reserved.</Copyright>
</PropertyGroup>
<!-- Lanugage Features -->
<PropertyGroup>
<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>
<Features>strict</Features>
<DefineConstants>CODE_ANALYSIS</DefineConstants>
</PropertyGroup>
<!-- Debugging -->
<PropertyGroup>
<DebugType>portable</DebugType>
<DebugSymbols>true</DebugSymbols>
<EmbedAllSources>true</EmbedAllSources>
</PropertyGroup>
<!-- Packaging -->
<PropertyGroup Condition="'$(DebugType)' == 'portable'">
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
</PropertyGroup>
<!-- Coding Standards -->
<PropertyGroup>
<GenerateDocumentationFile>True</GenerateDocumentationFile>
<CodeAnalysisRuleSet>$(MSBuildThisFileDirectory)NugetRepack.ruleset</CodeAnalysisRuleSet>
<!--
Document any disabled warnings here.
NU5105: Don't warn about SemVer 2.0.0 version number.
-->
<NoWarn>$(NoWarn),NU5105</NoWarn>
</PropertyGroup>
<ItemGroup>
<AdditionalFiles Include="$(MSBuildThisFileDirectory)/.stylecop.json" Link=".stylecop.json" />
</ItemGroup>
<!--
Only turn on TreatWarningsAsErrors for builds outside of an IDE.
This way we can benefit from it but not be annoyed while we develop! :)
-->
<PropertyGroup Condition="'$(BuildingInsideVisualStudio)' != 'true' And '$(DoNotEnforceStyle)' != 'true'">
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>
<!-- Common Nuget references -->
<ItemGroup>
<PackageReference Include="StyleCop.Analyzers" Version="1.1.118" PrivateAssets="all" />
</ItemGroup>
</Project>