-
Notifications
You must be signed in to change notification settings - Fork 1
/
Directory.Build.props
48 lines (42 loc) · 2.08 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
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Sdk Name="DotNet.ReproducibleBuilds.Isolated" Version="1.1.1" />
<PropertyGroup Label="General">
<Authors>Xavier John</Authors>
<Company>$(Authors)</Company>
<Copyright>Copyright © $(Company) 2022. All rights reserved.</Copyright>
<NeutralLanguage>en</NeutralLanguage>
<DefaultLanguage>en-US</DefaultLanguage>
<SolutionDir Condition=" '$(SolutionDir)' == '' OR '$(SolutionDir)' == '*Undefined if not building a solution or within Visual Studio*' ">$(MSBuildThisFileDirectory)</SolutionDir>
<IsTestProject>$(MSBuildProjectName.EndsWith('.Tests'))</IsTestProject>
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<LangVersion>Latest</LangVersion>
<AnalysisLevel>latest-Recommended</AnalysisLevel>
<RepositoryType>git</RepositoryType>
</PropertyGroup>
<PropertyGroup Label="nuget">
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<RepositoryUrl>https://github.com/xavierjohn/FunctionalDDD.git</RepositoryUrl>
<PackageProjectUrl>https://xavierjohn.github.io/FunctionalDDD/</PackageProjectUrl>
</PropertyGroup>
<PropertyGroup Label="Build">
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
<!-- Enable linter -->
</PropertyGroup>
<ItemGroup>
<InternalsVisibleTo Include="$(MSBuildProjectName).Tests" />
<PackageReference Include="Nerdbank.GitVersioning" PrivateAssets="all" />
<PackageReference Include="DotNet.ReproducibleBuilds" PrivateAssets="All"/>
</ItemGroup>
<PropertyGroup Condition=" '$(IsTestProject)' == 'false' ">
<RootNamespace>FunctionalDdd</RootNamespace>
<AssemblyName>FunctionalDdd.$(MSBuildProjectName)</AssemblyName>
</PropertyGroup>
<!-- Test projects. -->
<ImportGroup Condition=" '$(IsTestProject)' == 'true' ">
<Import Project="$(MSBuildThisFileDirectory)build/test.props"/>
</ImportGroup>
</Project>