-
Notifications
You must be signed in to change notification settings - Fork 0
/
directory.build.props
33 lines (27 loc) · 1.55 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
<?xml version="1.0" encoding="utf-8"?>
<Project>
<!-- Saving some paths that are used elsewhere in MSBuild settings and targets -->
<PropertyGroup>
<OutputSubdir Condition=" '$(OutputSubDir)' == ''">$(MSBuildProjectName)</OutputSubdir>
<EnlistmentRoot>$(MSBuildThisFileDirectory)</EnlistmentRoot>
<EnlistmentRoot Condition="!HasTrailingSlash('$(EnlistmentRoot)')">$(EnlistmentRoot)\</EnlistmentRoot>
<MSBuildOverrides>$(MSBuildToolsPath)</MSBuildOverrides>
<!-- setup intermediate folder to be root\Intermedia\ with unique subfolder paths -->
<IntermediateRootPath>$(EnlistmentRoot)Intermediates</IntermediateRootPath>
<IntermediateOutputPath>$(IntermediateRootPath)\$(Configuration)\$(Platform)\$(OutputSubdir)</IntermediateOutputPath>
<OutputRootPath>$(EnlistmentRoot)Drops</OutputRootPath>
<OutputPath>$(OutputRootPath)\$(Configuration)\$(Platform)\$(OutputSubdir)</OutputPath>
<!-- Add generated xml documentation files to packaged project output -->
<ExcludeXmlAssemblyFiles>false</ExcludeXmlAssemblyFiles>
</PropertyGroup>
<Target Name="CopyFiles" Condition="'$(CopyInputFiles)' == 'true'" >
<ItemGroup>
<InputFiles Include="$(MSBuildProjectDirectory)\input\*.txt" />
</ItemGroup>
<PropertyGroup>
<Year>$([System.IO.Directory]::GetParent($(MSBuildProjectDirectory)).Name)</Year>
<InputOutputPath>$(OutputRootPath)\$(Configuration)\Input\$(Year)\</InputOutputPath>
</PropertyGroup>
<Copy SourceFiles="@(InputFiles)" DestinationFolder="$(InputOutputPath)" />
</Target>
</Project>