Skip to content

Commit b88f789

Browse files
Don't use TF during build, just test it.
1 parent fcaef77 commit b88f789

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

ci-build.ps1

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,7 @@ dotnet clean -c Release
88
$repositoryUrl = "https://github.com/$env:GITHUB_REPOSITORY"
99

1010
# Building for a specific framework.
11-
dotnet build -c Release -f $targetFramework /p:RepositoryUrl=$repositoryUrl
11+
# dotnet build -c Release -f $targetFramework /p:RepositoryUrl=$repositoryUrl
12+
#
13+
# CI is now throwing build errors when none were present previously.
14+
dotnet build -c Release -f /p:RepositoryUrl=$repositoryUrl

src/ImageSharp/Formats/Png/PngThrowHelper.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ public static void ThrowInvalidImageContentException(string errorMessage, Except
4040
public static void ThrowInvalidChunkCrc(string chunkTypeName) => throw new InvalidImageContentException($"CRC Error. PNG {chunkTypeName} chunk is corrupt!");
4141

4242
[DoesNotReturn]
43-
public static void ThrowInvalidParameter(object value, string message, [CallerArgumentExpression("value")] string name = "")
43+
public static void ThrowInvalidParameter(object value, string message, [CallerArgumentExpression(nameof(value))] string name = "")
4444
=> throw new NotSupportedException($"Invalid {name}. {message}. Was '{value}'.");
4545

4646
[DoesNotReturn]
47-
public static void ThrowInvalidParameter(object value1, object value2, string message, [CallerArgumentExpression("value1")] string name1 = "", [CallerArgumentExpression("value2")] string name2 = "")
47+
public static void ThrowInvalidParameter(object value1, object value2, string message, [CallerArgumentExpression(nameof(value1))] string name1 = "", [CallerArgumentExpression(nameof(value2))] string name2 = "")
4848
=> throw new NotSupportedException($"Invalid {name1} or {name2}. {message}. Was '{value1}' and '{value2}'.");
4949

5050
[DoesNotReturn]

0 commit comments

Comments
 (0)