forked from Eventuous/eventuous
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
84 lines (84 loc) · 4.67 KB
/
Copy pathDirectory.Build.props
File metadata and controls
84 lines (84 loc) · 4.67 KB
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<Project>
<PropertyGroup>
<TargetFrameworks>net10.0;net9.0;net8.0</TargetFrameworks>
<LangVersion>preview</LangVersion>
<NoWarn>$(NoWarn);CS1591;CS0618;</NoWarn>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<RepoRoot>$([System.IO.Directory]::GetParent($(MSBuildThisFileDirectory)).Parent.FullName)</RepoRoot>
<SrcRoot>$(RepoRoot)\src</SrcRoot>
<CoreRoot>$(SrcRoot)\Core\src</CoreRoot>
<CoreTestRoot>$(SrcRoot)\Core\test</CoreTestRoot>
<DiagRoot>$(SrcRoot)\Diagnostics\src</DiagRoot>
<KurrentDBRoot>$(SrcRoot)\KurrentDB\src</KurrentDBRoot>
<ExtRoot>$(SrcRoot)\Extensions\src</ExtRoot>
<GatewayRoot>$(SrcRoot)\Shovel\src</GatewayRoot>
<LocalRoot>..\..\src</LocalRoot>
<LocalGenRoot>..\..\gen</LocalGenRoot>
<Configurations>Debug;Release;Debug CI</Configurations>
<Platforms>AnyCPU</Platforms>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug CI' ">
<DebugSymbols Condition=" '$(DebugSymbols)' == '' ">true</DebugSymbols>
<Optimize Condition=" '$(Optimize)' == '' ">false</Optimize>
</PropertyGroup>
<Import Project="$(RepoRoot)\props\Common.props"/>
<PropertyGroup Condition="$(MSBuildProjectName.StartsWith('Eventuous.Tests'))">
<IsPackable>false</IsPackable>
<IsTestProject>true</IsTestProject>
<TestingPlatformDotnetTestSupport>true</TestingPlatformDotnetTestSupport>
<TestingPlatformCommandLineArguments>--report-trx --results-directory $(RepoRoot)/test-results/$(TargetFramework)</TestingPlatformCommandLineArguments>
<TestingPlatformCaptureOutput>false</TestingPlatformCaptureOutput>
</PropertyGroup>
<PropertyGroup Condition="!($(MSBuildProjectName.StartsWith('Eventuous.Tests')))">
<IsPackable>true</IsPackable>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<UpdateVersionProperties>true</UpdateVersionProperties>
<PackageIcon>e-logo.png</PackageIcon>
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
<RepositoryUrl>https://github.com/eventuous/Eventuous.git</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<Description>Production-grade Event Sourcing library</Description>
<Authors>Alexey Zimarev and Eventuous community</Authors>
<Copyright>Eventuous HQ OÜ</Copyright>
<PackageProjectUrl>https://eventuous.dev</PackageProjectUrl>
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\$(MSBuildProjectName).xml</DocumentationFile>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<PackageTags>CQRS ES Event Sourcing EventSourcing EventStore DDD ESDB EventStoreDB</PackageTags>
</PropertyGroup>
<ItemGroup Condition="'$(IsPackable)' == 'true'">
<None Include="$(RepoRoot)\e-logo.png" Pack="true" PackagePath="\"/>
<PackageReference Include="JetBrains.Annotations" PrivateAssets="All"/>
<PackageReference Include="Microsoft.SourceLink.GitHub" PrivateAssets="All"/>
<PackageReference Include="MinVer" PrivateAssets="All"/>
<Using Include="Eventuous"/>
<Using Include="JetBrains.Annotations"/>
<Using Include="System.Diagnostics.CodeAnalysis"/>
</ItemGroup>
<ItemGroup Condition="'$(IsTestProject)' == 'true'">
<PackageReference Include="Bogus"/>
<PackageReference Include="coverlet.collector"/>
<PackageReference Include="Microsoft.Testing.Extensions.TrxReport"/>
<PackageReference Include="TUnit"/>
<Using Include="Microsoft.Extensions.Logging"/>
</ItemGroup>
<ItemGroup Condition="'$(IncludeTestHost)' == 'true'">
<PackageReference Include="Microsoft.AspNetCore.TestHost"/>
</ItemGroup>
<ItemGroup Condition="'$(IncludeSutApp)' == 'true'">
<ProjectReference Include="$(RepoRoot)\test\Eventuous.Sut.App\Eventuous.Sut.App.csproj"/>
<ProjectReference Include="$(RepoRoot)\test\Eventuous.Sut.Domain\Eventuous.Sut.Domain.csproj"/>
</ItemGroup>
<ItemGroup Condition="'$(IncludeTestHelpers)' == 'true'">
<ProjectReference Include="$(RepoRoot)\test\Eventuous.TestHelpers\Eventuous.TestHelpers.csproj"/>
</ItemGroup>
<Target Name="CustomVersion" AfterTargets="MinVer">
<PropertyGroup>
<FileVersion>$(MinVerMajor).$(MinVerMinor).$(MinVerPatch)</FileVersion>
<AssemblyVersion>$(MinVerMajor).$(MinVerMinor).$(MinVerPatch)</AssemblyVersion>
</PropertyGroup>
</Target>
</Project>