-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDirectory.Build.props
20 lines (19 loc) · 1.06 KB
/
Directory.Build.props
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<RepoRoot>$(MSBuildThisFileDirectory)</RepoRoot>
<SrcRoot>$(RepoRoot)src\</SrcRoot>
<Configuration Condition="'$(Configuration)' == ''">Debug</Configuration>
</PropertyGroup>
<!-- Redirecting output paths -->
<PropertyGroup>
<OutputRoot>$(RepoRoot)\out\$(Configuration)</OutputRoot>
<ObjRoot>$(RepoRoot)\obj\$(Configuration)</ObjRoot>
<RelativeProjectDirectory>$([MSBuild]::MakeRelative($(RepoRoot), $(MSBuildProjectDirectory)))</RelativeProjectDirectory>
<OutDir>$(OutputRoot)\$(RelativeProjectDirectory)</OutDir>
<IntermediateRelativeProjectDirectory>$([MSBuild]::MakeRelative($(RepoRoot), $(MSBuildProjectDirectory)))</IntermediateRelativeProjectDirectory>
<BaseIntermediateOutputPath>$(ObjRoot)\$(IntermediateRelativeProjectDirectory)</BaseIntermediateOutputPath>
<PublishDir>$(OutDir)\Published</PublishDir>
<PackageOutputPath>$(OutputRoot)\Packages</PackageOutputPath>
</PropertyGroup>
</Project>