forked from dotnet/wpf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure-toolset.ps1
29 lines (26 loc) · 1.08 KB
/
configure-toolset.ps1
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
#
# This file should be kept in sync across https://www.github.com/dotnet/wpf and dotnet-wpf-int repos.
#
# This repo uses C++/CLI /clr:pure (or /clr:netcore) switches during compilation, which are
# deprecated. Ensure that this warning is always suppressed during build.
if (($properties -eq $null) -or (-not ($properties -icontains '/nowarn:D9035'))) {
$properties = @('/nowarn:D9035') + $properties
}
# This repo treats Solution/Project platform 'Any CPU' as ~= 'x86', and
# defaults to 'Any CPU'/x86.
if (($properties -eq $null) -or (-not ($properties -ilike '/p:Platform=*'))) {
if (-not $platform) {
$platform='x86'
}
}
# Make sure that Nuget restore doesn't hit the cache when running CI builds
# See https://github.com/NuGet/Home/issues/3116
if ($ci) {
if (($properties -eq $null) -or (-not ($properties -icontains '/p:RestoreNoCache=true'))) {
$properties = @('/p:RestoreNoCache=true') + $properties
}
}
# Always generate binary logs
$binaryLog = $true
$DoNotAbortNativeToolsInstallationOnFailure = $true
$DoNotDisplayNativeToolsInstallationWarnings =$true