Skip to content

Commit fff3268

Browse files
authored
Merge pull request #49 from merbla/vs2017-tooling
Build fixes for packaging
2 parents a4a7db9 + ef2eb43 commit fff3268

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

Build.ps1

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
$ErrorActionPreference = "Stop"
12
echo "build: Build started"
23

34
Push-Location $PSScriptRoot
@@ -11,7 +12,7 @@ if(Test-Path .\artifacts) {
1112

1213
$branch = @{ $true = $env:APPVEYOR_REPO_BRANCH; $false = $(git symbolic-ref --short -q HEAD) }[$env:APPVEYOR_REPO_BRANCH -ne $NULL];
1314
$revision = @{ $true = "{0:00000}" -f [convert]::ToInt32("0" + $env:APPVEYOR_BUILD_NUMBER, 10); $false = "local" }[$env:APPVEYOR_BUILD_NUMBER -ne $NULL];
14-
$suffix = @{ $true = ""; $false = "$($branch.Substring(0, [math]::Min(10,$branch.Length)))-$revision"}[$branch -eq "master" -and $revision -ne "local"]
15+
$suffix = @{ $true = ""; $false = "-$($branch.Substring(0, [math]::Min(10,$branch.Length)))-$revision"}[$branch -eq "master" -and $revision -ne "local"]
1516
$commitHash = $(git rev-parse --short HEAD)
1617
$buildSuffix = @{ $true = "$($suffix)-$($commitHash)"; $false = "$($branch)-$($commitHash)" }[$suffix -ne ""]
1718

@@ -41,15 +42,6 @@ foreach ($test in ls test/*.Tests) {
4142
Pop-Location
4243
}
4344

44-
foreach ($test in ls sample/Sample) {
45-
Push-Location $test
46-
47-
echo "build: Building performance test project in $test"
48-
49-
& dotnet build -c Release
50-
if($LASTEXITCODE -ne 0) { exit 2 }
51-
52-
Pop-Location
53-
}
45+
dotnet build -c Release .\sample\Sample\Sample.csproj
5446

5547
Pop-Location

src/Serilog.Sinks.Splunk/Serilog.Sinks.Splunk.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<PackageProjectUrl>https://github.com/serilog/serilog-sinks-splunk</PackageProjectUrl>
1414
<PackageLicenseUrl>http://www.apache.org/licenses/LICENSE-2.0</PackageLicenseUrl>
1515
<GenerateAssemblyVersionAttribute>false</GenerateAssemblyVersionAttribute>
16-
<Version>2.2.0</Version>
16+
<Version>2.2.0$(VersionSuffix)</Version>
1717
</PropertyGroup>
1818

1919
<ItemGroup Condition=" '$(TargetFramework)' == 'net45' ">

0 commit comments

Comments
 (0)