Commit a8cbbf69 authored by Marc Gravell's avatar Marc Gravell

Merge branch 'pipelines' of github.com:StackExchange/StackExchange.Redis into pipelines

# Conflicts:
#	StackExchange.Redis/StackExchange/Redis/RedisValue.cs
parents 5386cd8a 1aafe332
...@@ -495,7 +495,7 @@ internal static RedisValue TryParse(object obj) ...@@ -495,7 +495,7 @@ internal static RedisValue TryParse(object obj)
if (TryParseInt64(value._memory.Span, out i64)) return i64; if (TryParseInt64(value._memory.Span, out i64)) return i64;
break; break;
} }
throw new InvalidCastException(); throw new InvalidCastException($"Unable to cast from {value.Type} to long");
} }
/// <summary> /// <summary>
...@@ -519,7 +519,7 @@ internal static RedisValue TryParse(object obj) ...@@ -519,7 +519,7 @@ internal static RedisValue TryParse(object obj)
if (TryParseDouble(value._memory.Span, out f64)) return f64; if (TryParseDouble(value._memory.Span, out f64)) return f64;
break; break;
} }
throw new InvalidCastException(); throw new InvalidCastException($"Unable to cast from {value.Type} to double");
} }
private static bool TryParseDouble(ReadOnlySpan<byte> blob, out double value) private static bool TryParseDouble(ReadOnlySpan<byte> blob, out double value)
......
...@@ -24,9 +24,13 @@ if ($PullRequestNumber) { ...@@ -24,9 +24,13 @@ if ($PullRequestNumber) {
$CreatePackages = $false $CreatePackages = $false
} }
Write-Host "Building solution..." -ForegroundColor "Magenta" Write-Host "Building projects..." -ForegroundColor "Magenta"
dotnet restore ".\StackExchange.Redis.sln" /p:CI=true foreach ($project in $projectsToBuild + $testsToRun) {
dotnet build ".\StackExchange.Redis.sln" -c Release /p:CI=true Write-Host "Building $project (dotnet restore/build)..." -ForegroundColor "Magenta"
dotnet restore ".\$project\$project.csproj" /p:CI=true
dotnet build ".\$project\$project.csproj" -c Release /p:CI=true
Write-Host ""
}
Write-Host "Done building." -ForegroundColor "Green" Write-Host "Done building." -ForegroundColor "Green"
if ($RunTests) { if ($RunTests) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment