diff --git a/.github/dependabot.yml b/.github/dependabot.yml
index 03ec545..e3a51ca 100644
--- a/.github/dependabot.yml
+++ b/.github/dependabot.yml
@@ -1,11 +1,17 @@
-# To get started with Dependabot version updates, you'll need to specify which
-# package ecosystems to update and where the package manifests are located.
-# Please see the documentation for all configuration options:
-# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
-
version: 2
updates:
- package-ecosystem: "nuget" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "daily"
+ ignore:
+ - dependency-name: "nunit"
+ - dependency-name: "SonarAnalyzer.CSharp"
+ - dependency-name: "AngleSharp"
+ - dependency-name: "Microsoft.NET.Test.Sdk"
+ - dependency-name: "Microsoft.AspNetCore.Mvc.Testing"
+ - dependency-name: "Moq"
+ - dependency-name: "xunit"
+ - dependency-name: "xunit.runner.visualstudio"
+ - dependency-name: "MSTest.TestAdapter"
+ - dependency-name: "MSTest.TestFramework"
diff --git a/PdfAValidator/PdfAValidator.csproj b/PdfAValidator/PdfAValidator.csproj
index ec04b78..239258c 100644
--- a/PdfAValidator/PdfAValidator.csproj
+++ b/PdfAValidator/PdfAValidator.csproj
@@ -48,7 +48,7 @@
-
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
diff --git a/PdfAValidatorTest/PdfAValidatorTest.cs b/PdfAValidatorTest/PdfAValidatorTest.cs
index 1505eb4..9cded13 100644
--- a/PdfAValidatorTest/PdfAValidatorTest.cs
+++ b/PdfAValidatorTest/PdfAValidatorTest.cs
@@ -3,6 +3,7 @@
using System.IO;
using System.Linq;
using System.Runtime.InteropServices;
+using System.Threading;
using System.Threading.Tasks;
using Xunit;
@@ -178,6 +179,13 @@ public static async Task ShouldBatchValidatePdfsWithoutThrowingException()
[Fact]
public static async Task ShouldThrowExplainableExceptionOnTooLongCommandLineOnWindows()
{
+ var expectedLocalizedMessage = "The command line is too long.";
+
+ if (Thread.CurrentThread.CurrentCulture.Name.StartsWith("de"))
+ {
+ expectedLocalizedMessage = "Die Befehlszeile ist zu lang.";
+ }
+
if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
{
return;
@@ -195,7 +203,7 @@ public static async Task ShouldThrowExplainableExceptionOnTooLongCommandLineOnWi
var actualException = await Assert.ThrowsAsync(() => pdfAValidator.ValidateBatchWithDetailedReportAsync(tooLongFileList, string.Empty));
Assert.Contains("Calling VeraPdf exited with 1 without any output.", actualException.Message);
- Assert.Contains("The command line is too long.", actualException.Message);
+ Assert.Contains(expectedLocalizedMessage, actualException.Message);
}
[Fact]
@@ -277,7 +285,9 @@ public static async Task ShouldNotFailOnMultipleDisposeCalls()
{
var postscriptValidator = new PdfAValidator();
_ = await postscriptValidator.ValidateAsync("./TestPdfFiles/FromLibreOffice.pdf");
+ Assert.True(File.Exists(postscriptValidator.VeraPdfStartScript));
postscriptValidator.Dispose();
+ Assert.False(File.Exists(postscriptValidator.VeraPdfStartScript));
#pragma warning disable S3966 // Expecting multiple dispose calls to pass
postscriptValidator.Dispose();
#pragma warning restore S3966 // Expecting multiple dispose calls to pass
diff --git a/PdfAValidatorTest/PdfAValidatorTest.csproj b/PdfAValidatorTest/PdfAValidatorTest.csproj
index d7b0857..1c71d17 100644
--- a/PdfAValidatorTest/PdfAValidatorTest.csproj
+++ b/PdfAValidatorTest/PdfAValidatorTest.csproj
@@ -54,8 +54,8 @@
-
-
+
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
diff --git a/PdfAValidatorWebApi/PdfAValidatorWebApi.csproj b/PdfAValidatorWebApi/PdfAValidatorWebApi.csproj
index 688e4cd..5dcf424 100644
--- a/PdfAValidatorWebApi/PdfAValidatorWebApi.csproj
+++ b/PdfAValidatorWebApi/PdfAValidatorWebApi.csproj
@@ -14,12 +14,12 @@
-
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
-
-
+
+
diff --git a/PdfAValidatorWebApiTest/PdfAValidatorWebApiTest.csproj b/PdfAValidatorWebApiTest/PdfAValidatorWebApiTest.csproj
index 2eacc08..30795c2 100644
--- a/PdfAValidatorWebApiTest/PdfAValidatorWebApiTest.csproj
+++ b/PdfAValidatorWebApiTest/PdfAValidatorWebApiTest.csproj
@@ -9,11 +9,11 @@
-
-
-
-
-
+
+
+
+
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive