Skip to content

Commit 994404c

Browse files
committed
PublishSingleFile test adds SC now
1 parent 220dd17 commit 994404c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishASingleFileApp.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -794,15 +794,15 @@ public void It_compresses_single_file_as_directed()
794794
var singleFilePath = Path.Combine(GetPublishDirectory(publishCommand, ToolsetInfo.CurrentTargetFramework).FullName, $"SingleFileTest{Constants.ExeSuffix}");
795795

796796
publishCommand
797-
.Execute(PublishSingleFile, RuntimeIdentifier, IncludeNative, "/p:EnableCompressionInSingleFile=false")
797+
.Execute(PublishSingleFile, RuntimeIdentifier, IncludeNative, "/p:SelfContained=true", "/p:EnableCompressionInSingleFile=false")
798798
.Should()
799799
.Pass();
800800
var uncompressedSize = new FileInfo(singleFilePath).Length;
801801

802802
WaitForUtcNowToAdvance();
803803

804804
publishCommand
805-
.Execute(PublishSingleFile, RuntimeIdentifier, IncludeNative, "/p:EnableCompressionInSingleFile=true")
805+
.Execute(PublishSingleFile, RuntimeIdentifier, IncludeNative, "/p:SelfContained=true", "/p:EnableCompressionInSingleFile=true")
806806
.Should()
807807
.Pass();
808808
var compressedSize = new FileInfo(singleFilePath).Length;

0 commit comments

Comments
 (0)