generated from dailydevops/dotnet-template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Directory.Build.props
45 lines (35 loc) · 2.09 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
<Project>
<PropertyGroup>
<DirEngineering>$([MSBuild]::NormalizeDirectory('$(MSBuildThisFileDirectory)', 'eng'))</DirEngineering>
<DirEngineeringSettings>$([MSBuild]::NormalizeDirectory('$(DirEngineering)', 'settings'))</DirEngineeringSettings>
</PropertyGroup>
<Import Project="$(DirEngineeringSettings)sln.build.props" />
<Import Project="$(DirEngineeringSettings)src.build.props" Condition=" '$(IsTestableProject)' == 'false' " />
<Import Project="$(DirEngineeringSettings)tests.build.props" Condition=" '$(IsTestableProject)' == 'true' " />
<PropertyGroup Label="General settings for all projects">
<_ProjectTargetFrameworks>net8.0;net9.0</_ProjectTargetFrameworks>
<_TestTargetFrameworks>net8.0;net9.0</_TestTargetFrameworks>
<_TestTargetFrameworks Condition=" '$(BuildingInsideVisualStudio)' == 'true' ">net8.0</_TestTargetFrameworks>
</PropertyGroup>
<PropertyGroup>
<!-- Workaround, until https://github.com/GitTools/GitVersion/pull/4206 is released -->
<GitVersionTargetFramework>net8.0</GitVersionTargetFramework>
</PropertyGroup>
<PropertyGroup Label="Settings for non test projects" Condition=" '$(IsTestableProject)' == 'false' ">
<Title>$(MSBuildProjectName)</Title>
<RepositoryUrl>https://github.com/dailydevops/healthchecks.git</RepositoryUrl>
<PackageProjectUrl>https://github.com/dailydevops/healthchecks</PackageProjectUrl>
<PackageTags>healthcheck;healthchecks;health;diagnostics;</PackageTags>
<PackageReleaseNotes>$(PackageProjectUrl)/releases/</PackageReleaseNotes>
<CopyrightYearStart>2023</CopyrightYearStart>
</PropertyGroup>
<ItemGroup Label="Test compability" Condition=" '$(IsTestableProject)' == 'false' ">
<InternalsVisibleTo Include="NetEvolve.HealthChecks.Abstractions.Tests.Architecture" />
</ItemGroup>
<PropertyGroup Label="Settings for test projects" Condition=" '$(IsTestableProject)' == 'true' ">
<NoWarn>$(NoWarn);CS8604;CA2007;</NoWarn>
</PropertyGroup>
<ItemGroup Condition=" '$(IsTestableProject)' == 'false' ">
<FrameworkReference Include="Microsoft.AspNetCore.App" />
</ItemGroup>
</Project>