forked from xamarin/Xamarin.Forms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathXamarin.Forms.props
19 lines (16 loc) · 1.09 KB
/
Xamarin.Forms.props
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!--
When using Sdk-style projects and default embedded resource items are enabled, automatically
add the XAML files and fix up item metadata to pair them with code files.
This is in the props file, not the targets file, so that projects can remove/update these items.
The default value for EnableDefaultXamlItems is set in the targets, which works because
the property evaluation pass comes before the item evaluation pass.
The actual item groups are in a separate conditionally-imported file as they use constructs that
are not compatible with older MSBuild versions.
-->
<Import Project="$(MSBuildThisFileDirectory)Xamarin.Forms.DefaultItems.props" Condition="'$(MSBuildSDKsPath)'!=''" />
<PropertyGroup>
<_IsHotRestartDefined>$([System.Text.RegularExpressions.Regex]::IsMatch('$(DefineConstants.Trim())', '(^|;)HOTRESTART($|;)'))</_IsHotRestartDefined>
<DefineConstants Condition="!$(_IsHotRestartDefined) And '$(IsHotRestartBuild)' == 'true'">HOTRESTART;$(DefineConstants)</DefineConstants>
</PropertyGroup>
</Project>