diff --git a/Directory.Build.props b/Directory.Build.props index fe7974ddd..a39b85de8 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -31,6 +31,9 @@ true true + + embedded + diff --git a/build.cake b/build.cake index 1d2e4aea2..742aa36f0 100644 --- a/build.cake +++ b/build.cake @@ -67,6 +67,7 @@ Task("Build") Verbosity = param.Verbosity, NoRestore = true, ArgumentCustomization = args => args + .Append($"/p:ContinuousIntegrationBuild=true") }); }); @@ -130,12 +131,8 @@ Task("Create-NuGet-Packages") Verbosity = param.Verbosity, NoRestore = true, NoBuild = true, - IncludeSymbols = true, - SymbolPackageFormat = "snupkg", OutputDirectory = param.Paths.Directories.NuGetDirectoryPath, ArgumentCustomization = args => args - .Append("/p:ContinuousIntegrationBuild=true") - .Append("/p:EmbedUntrackedSources=true") .Append($"/p:Version={param.Version}") }); }); @@ -160,7 +157,7 @@ Task("Publish-NuGet-Packages") .WithCriteria(() => param.ShouldPublish) .Does(() => { - foreach(var package in GetFiles($"{param.Paths.Directories.NuGetDirectoryPath}/*.(nupkg|snupkgs)")) + foreach (var package in GetFiles($"{param.Paths.Directories.NuGetDirectoryPath}/*.nupkg")) { DotNetNuGetPush(package.FullPath, new DotNetNuGetPushSettings { diff --git a/src/Testcontainers/Clients/TestcontainersClient.cs b/src/Testcontainers/Clients/TestcontainersClient.cs index e6852f95a..27c9188c7 100644 --- a/src/Testcontainers/Clients/TestcontainersClient.cs +++ b/src/Testcontainers/Clients/TestcontainersClient.cs @@ -339,7 +339,7 @@ public async Task BuildAsync(IImageFromDockerfileConfiguration configura var cachedImages = await Image.GetAllAsync(filters, ct) .ConfigureAwait(false); - var repositoryTags = new HashSet(cachedImages.SelectMany(image => image.RepoTags)); + var repositoryTags = new HashSet(cachedImages.SelectMany(image => image.RepoTags ?? Array.Empty())); var uncachedImages = baseImages.Where(baseImage => !repositoryTags.Contains(baseImage.FullName)); diff --git a/tests/Directory.Build.props b/tests/Directory.Build.props index d2f5aaa24..fab676661 100644 --- a/tests/Directory.Build.props +++ b/tests/Directory.Build.props @@ -1,10 +1,14 @@ - - - false - - - trx%3BLogFileName=$(MSBuildProjectName).trx - - \ No newline at end of file + + + false + + + trx%3BLogFileName=$(MSBuildProjectName).trx + + + false + false + +