forked from microsoft/WindowsAppSDK
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ProjectReunion.props
28 lines (24 loc) · 1.61 KB
/
ProjectReunion.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
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See LICENSE in the project root for license information. -->
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="SdkVersion.props" />
<Target Name="ProjectReunionPropsInfoTask">
<Message Text="Including $(MSBuildThisFileDirectory)projectreunion.props"/>
</Target>
<!-- BaseOutputPath is defined in Directory.Build.props, but that file isn't loaded on lab machines
since they have their own directory structure they want to adhere to. The lab environment variable
XES_OUTDIR maps onto the OutDir variable, which is one level above what we want BaseOutputPath to be,
so we'll provide a definition for this here based on the value of XES_OUTDIR.
The OutDir variable isn't defined automatically in the lab for WPF projects, so we'll provide
an explicit definition here as well. -->
<PropertyGroup Condition="'$(XES_OUTDIR)' != ''">
<BaseOutputPath>$(XES_OUTDIR)\..\</BaseOutputPath>
<OutDir>$(XES_OUTDIR)\</OutDir>
</PropertyGroup>
<Import Project="$(MSBuildThisFileDirectory)local.props" Condition="Exists('$(MSBuildThisFileDirectory)local.props')"/>
<PropertyGroup>
<CSLangVersion>7</CSLangVersion>
<!-- Surface as errors the warnings that a ProjectReunion file is using a type defined in a later version of ProjectReunion than the min version for which we're compiling. -->
<MSBuildWarningsAsErrors>WMC0151;XLS1105</MSBuildWarningsAsErrors>
</PropertyGroup>
</Project>