-
Notifications
You must be signed in to change notification settings - Fork 1
/
Directory.Build.props
47 lines (40 loc) · 1.72 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
<Project>
<!-- Authorship -->
<PropertyGroup>
<Company>LanguageWire</Company>
<Product>Project Api Sample App</Product>
<Copyright>LanguageWire, 2023–$([System.DateTime]::Today.Year)</Copyright>
</PropertyGroup>
<!-- Build -->
<PropertyGroup>
<Version>0.1.0</Version> <!-- Can be suffixed with pre-release annotations -->
<TargetFramework>net7.0</TargetFramework>
<AssemblyName>LanguageWire.$(MSBuildProjectName)</AssemblyName>
<RootNamespace>$(AssemblyName)</RootNamespace>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<DebugType>embedded</DebugType>
</PropertyGroup>
<ItemGroup>
<InternalsVisibleTo Include="$(AssemblyName).UnitTests"/>
<InternalsVisibleTo Include="$(AssemblyName).IntegrationTests"/>
<InternalsVisibleTo Include="DynamicProxyGenAssembly2"/> <!-- Needed by Moq -->
</ItemGroup>
<!-- Language features -->
<PropertyGroup>
<LangVersion>latest</LangVersion>
<CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<!-- Code analyzers -->
<PropertyGroup>
<AnalysisLevel>latest</AnalysisLevel>
<EnableNETAnalyzers>True</EnableNETAnalyzers>
<RunAnalyzersDuringLiveAnalysis>True</RunAnalyzersDuringLiveAnalysis>
<RunAnalyzersDuringBuild>True</RunAnalyzersDuringBuild>
<EnforceCodeStyleInBuild>True</EnforceCodeStyleInBuild>
</PropertyGroup>
<PropertyGroup Condition="$(Configuration) == 'Release'">
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>
</Project>