forked from git-ecosystem/git-credential-manager
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Directory.Build.props
30 lines (27 loc) · 1.31 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
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!-- This is the root Directory.Build.props file -->
<PropertyGroup>
<!--
Set helpful property for detecting the current OS platform.
We can't use the built-in $(OS) because it returns 'Unix' on macOS when run under Mono.
-->
<OSPlatform Condition="$([MSBuild]::IsOsPlatform('windows'))">windows</OSPlatform>
<OSPlatform Condition="$([MSBuild]::IsOsPlatform('osx'))">osx</OSPlatform>
<OSPlatform Condition="$([MSBuild]::IsOsPlatform('linux'))">linux</OSPlatform>
<IsUnixLike>true</IsUnixLike>
<IsUnixLike Condition="'$(OSPlatform)'=='windows'">false</IsUnixLike>
<!-- Define the root of the repository as a property - it's very useful! -->
<RepoPath>$(MSBuildThisFileDirectory)</RepoPath>
<RepoSrcPath>$(RepoPath)src\</RepoSrcPath>
<RepoOutPath>$(RepoPath)out\</RepoOutPath>
<RepoAssetsPath>$(RepoPath)assets\</RepoAssetsPath>
</PropertyGroup>
<ItemGroup>
<!-- All projects should use Nerdbank.GitVersioning for consistent version numbers -->
<PackageReference Include="Nerdbank.GitVersioning">
<Version>3.4.231</Version>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>
</Project>