-
Notifications
You must be signed in to change notification settings - Fork 754
/
build.ps1
23 lines (18 loc) · 933 Bytes
/
build.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
param (
[string]$Configuration = "Debug",
[string]$appInsightsInstrumentationKey = ""
)
$additionalOptions = ""
if ($IsLinux) {
$additionalOptions = "-p:EnableSourceControlManagerQueries=false -p:EnableSourceLink=false -p:DeterministicSourcePaths=false"
}
if ($appInsightsInstrumentationKey) {
if ($additionalOptions){
$additionalOptions = "$($additionalOptions) -property:AppInsightsInstrumentationKey=$($appInsightsInstrumentationKey)"
}
else {
$additionalOptions = "-property:AppInsightsInstrumentationKey=$($appInsightsInstrumentationKey)"
}
}
Write-Host "dotnet build ./TechTalk.SpecFlow.sln --no-restore -property:Configuration=$Configuration -bl:msbuild.$Configuration.binlog -nodeReuse:false -v n --no-incremental $additionalOptions"
& dotnet build ./TechTalk.SpecFlow.sln --no-restore -property:Configuration=$Configuration -bl:msbuild.$Configuration.binlog -nodeReuse:false -v n $additionalOptions