Skip to content

Commit 7e9e0cf

Browse files
committed
React to @nagilson's review feedback
1 parent 75b4ee6 commit 7e9e0cf

File tree

5 files changed

+6
-11
lines changed

5 files changed

+6
-11
lines changed

Directory.Build.props

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,6 @@
6767
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
6868
<CentralPackageTransitivePinningEnabled>true</CentralPackageTransitivePinningEnabled>
6969

70-
<SkipBuildingInstallers Condition="'$(SkipBuildingInstallers)' == ''">true</SkipBuildingInstallers>
71-
7270
<!-- https://github.com/dotnet/source-build/issues/4115. -->
7371
<PublishWindowsPdb>false</PublishWindowsPdb>
7472
</PropertyGroup>

src/Cli/dotnet/ToolPackage/ToolPackageDownloaderBase.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -343,10 +343,7 @@ public bool TryGetDownloadedTool(
343343
{
344344
return new PackageId(p.Id);
345345
}
346-
else
347-
{
348-
return null;
349-
}
346+
return null;
350347
}
351348

352349
return null;

src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.PackTool.targets

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ NOTE: This file is imported from the following contexts, so be aware when writin
4848
<SelfContained Condition="'$(RuntimeIdentifier)' == ''">false</SelfContained>
4949
<PublishTrimmed Condition="'$(RuntimeIdentifier)' == ''">false</PublishTrimmed>
5050
<PublishReadyToRun Condition="'$(RuntimeIdentifier)' == ''">false</PublishReadyToRun>
51+
<PublishSingleFile Condition="'$(RuntimeIdentifier)' == ''">false</PublishSingleFile>
52+
5153
<!-- We need to know if the inner builds are _intended_ to be AOT even if we then explicitly disable AOT for the outer builds.
5254
Knowing this lets us correctly decide to create the RID-specific inner tools or not when packaging the outer tool. -->
5355
<_InnerToolsPublishAot>false</_InnerToolsPublishAot>

test/Microsoft.DotNet.PackageInstall.Tests/TestToolBuilder.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,15 +94,15 @@ public string CreateTestTool(ITestOutputHelper log, TestToolSettings toolSetting
9494
{
9595
new DotnetPackCommand(log)
9696
.WithWorkingDirectory(targetDirectory)
97-
.Execute("/bl:{}")
97+
.Execute()
9898
.Should().Pass();
9999

100100
if (toolSettings.NativeAOT)
101101
{
102102
// For Native AOT tools, we need to repack the tool to include the runtime-specific files that were generated during publish
103103
new DotnetPackCommand(log, "-r", RuntimeInformation.RuntimeIdentifier)
104104
.WithWorkingDirectory(targetDirectory)
105-
.Execute("/bl:{}")
105+
.Execute()
106106
.Should().Pass();
107107
}
108108

test/Microsoft.NET.ToolPack.Tests/GivenThatWeWantToPackAToolProjectWithPackagedShim.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,7 @@ public void It_uses_customized_PackagedShimOutputRootDirectory(bool multiTarget,
155155

156156
_testRoot = helloWorldAsset.TestRoot;
157157

158-
var packCommand = new PackCommand(Log, helloWorldAsset.TestRoot);
159-
160-
var result = packCommand.Execute().Should().Pass();
158+
new PackCommand(Log, helloWorldAsset.TestRoot).Execute().Should().Pass();
161159

162160
string windowShimPath = Path.Combine(shimoutputPath, $"shims/{targetFramework}/win-x64/{_customToolCommandName}.exe");
163161
File.Exists(windowShimPath).Should().BeTrue($"Shim {windowShimPath} should exist");

0 commit comments

Comments
 (0)