Skip to content

Commit 9bbce22

Browse files
[main] Source code updates from dotnet/dotnet (#15838)
Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com> Co-authored-by: Viktor Hofer <[email protected]>
1 parent d81c326 commit 9bbce22

File tree

7 files changed

+30
-14
lines changed

7 files changed

+30
-14
lines changed

eng/Version.Details.xml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Dependencies>
3-
<Source Uri="https://github.com/dotnet/dotnet" Mapping="arcade" Sha="5d437e96e412b189af05abb84753996de9aa698f" BarId="268047" />
3+
<Source Uri="https://github.com/dotnet/dotnet" Mapping="arcade" Sha="ad8565092bbfdd5c8b4a94a718d10b2d394f7aee" BarId="268384" />
44
<ProductDependencies>
55
</ProductDependencies>
66
<ToolsetDependencies>
@@ -162,5 +162,22 @@
162162
<Uri>https://github.com/dotnet/dnceng</Uri>
163163
<Sha>946ca0aa8f97d05328eab1f420c9791e77e22098</Sha>
164164
</Dependency>
165+
<!-- Dependencies required for source build to lift to the previously-source-built version. -->
166+
<Dependency Name="Microsoft.Build" Version="17.12.36">
167+
<Uri>https://github.com/dotnet/msbuild</Uri>
168+
<Sha>d1cce8d7cc03c23a4f1bad8e9240714fd9d199a3</Sha>
169+
</Dependency>
170+
<Dependency Name="Microsoft.Build.Framework" Version="17.12.36">
171+
<Uri>https://github.com/dotnet/msbuild</Uri>
172+
<Sha>d1cce8d7cc03c23a4f1bad8e9240714fd9d199a3</Sha>
173+
</Dependency>
174+
<Dependency Name="Microsoft.Build.Tasks.Core" Version="17.12.36">
175+
<Uri>https://github.com/dotnet/msbuild</Uri>
176+
<Sha>d1cce8d7cc03c23a4f1bad8e9240714fd9d199a3</Sha>
177+
</Dependency>
178+
<Dependency Name="Microsoft.Build.Utilities.Core" Version="17.12.36">
179+
<Uri>https://github.com/dotnet/msbuild</Uri>
180+
<Sha>d1cce8d7cc03c23a4f1bad8e9240714fd9d199a3</Sha>
181+
</Dependency>
165182
</ToolsetDependencies>
166183
</Dependencies>

eng/Versions.props

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@
3535
<MicrosoftSymbolUploaderBuildTaskVersion>2.0.0-preview.1.23470.14</MicrosoftSymbolUploaderBuildTaskVersion>
3636
<MicrosoftSymbolUploaderVersion>2.0.0-preview.1.23470.14</MicrosoftSymbolUploaderVersion>
3737
<!-- msbuild -->
38-
<MicrosoftBuildFrameworkVersion>17.8.3</MicrosoftBuildFrameworkVersion>
39-
<MicrosoftBuildTasksCoreVersion>17.8.3</MicrosoftBuildTasksCoreVersion>
40-
<MicrosoftBuildUtilitiesCoreVersion>17.8.3</MicrosoftBuildUtilitiesCoreVersion>
41-
<MicrosoftBuildVersion>17.8.3</MicrosoftBuildVersion>
38+
<MicrosoftBuildFrameworkVersion>17.12.36</MicrosoftBuildFrameworkVersion>
39+
<MicrosoftBuildTasksCoreVersion>17.12.36</MicrosoftBuildTasksCoreVersion>
40+
<MicrosoftBuildUtilitiesCoreVersion>17.12.36</MicrosoftBuildUtilitiesCoreVersion>
41+
<MicrosoftBuildVersion>17.12.36</MicrosoftBuildVersion>
4242
<!-- netstandard -->
4343
<NETStandardLibraryVersion>2.0.3</NETStandardLibraryVersion>
4444
<!-- nuget -->

eng/common/core-templates/steps/source-build.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,12 @@ steps:
5151
${{ coalesce(parameters.platform.buildScript, './build.sh') }} --ci \
5252
--configuration $buildConfig \
5353
--restore --build --pack -bl \
54+
--source-build \
5455
${{ parameters.platform.buildArguments }} \
5556
$internalRuntimeDownloadArgs \
5657
$targetRidArgs \
5758
$baseRidArgs \
5859
$portableBuildArgs \
59-
/p:DotNetBuildSourceOnly=true \
60-
/p:DotNetBuildRepo=true \
6160
displayName: Build
6261

6362
- template: /eng/common/core-templates/steps/publish-pipeline-artifacts.yml

eng/common/tools.ps1

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,6 @@ $ErrorActionPreference = 'Stop'
6868
# True if the build is a product build
6969
[bool]$productBuild = if (Test-Path variable:productBuild) { $productBuild } else { $false }
7070

71-
[String[]]$properties = if (Test-Path variable:properties) { $properties } else { @() }
72-
7371
function Create-Directory ([string[]] $path) {
7472
New-Item -Path $path -Force -ItemType 'Directory' | Out-Null
7573
}
@@ -853,7 +851,7 @@ function MSBuild-Core() {
853851

854852
# When running on Azure Pipelines, override the returned exit code to avoid double logging.
855853
# Skip this when the build is a child of the VMR orchestrator build.
856-
if ($ci -and $env:SYSTEM_TEAMPROJECT -ne $null -and !$productBuild -and -not($properties -like "*DotNetBuildRepo=true*")) {
854+
if ($ci -and $env:SYSTEM_TEAMPROJECT -ne $null -and !$productBuild) {
857855
Write-PipelineSetResult -Result "Failed" -Message "msbuild execution failed."
858856
# Exiting with an exit code causes the azure pipelines task to log yet another "noise" error
859857
# The above Write-PipelineSetResult will cause the task to be marked as failure without adding yet another error

eng/common/tools.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ function MSBuild-Core {
507507

508508
# When running on Azure Pipelines, override the returned exit code to avoid double logging.
509509
# Skip this when the build is a child of the VMR orchestrator build.
510-
if [[ "$ci" == true && -n ${SYSTEM_TEAMPROJECT:-} && "$product_build" != true && "$properties" != *"DotNetBuildRepo=true"* ]]; then
510+
if [[ "$ci" == true && -n ${SYSTEM_TEAMPROJECT:-} && "$product_build" != true ]]; then
511511
Write-PipelineSetResult -result "Failed" -message "msbuild execution failed."
512512
# Exiting with an exit code causes the azure pipelines task to log yet another "noise" error
513513
# The above Write-PipelineSetResult will cause the task to be marked as failure without adding yet another error

src/Microsoft.DotNet.Arcade.Sdk/tools/Tools.proj

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
<PropertyGroup>
4141
<!-- Don't restore the below nuget packages, repo tools and additional global.json runtimes when building source-only. -->
4242
<_ImportOrUseTooling Condition="'$(_ImportOrUseTooling)' == '' and '$(DotNetBuildSourceOnly)' != 'true'">true</_ImportOrUseTooling>
43+
<RestoreBuildTaskFeed>$(Publish)</RestoreBuildTaskFeed>
4344
</PropertyGroup>
4445

4546
<ItemGroup Condition="'$(_ImportOrUseTooling)' == 'true'">
@@ -56,8 +57,10 @@
5657
<PackageReference Include="Microsoft.DotNet.Build.Tasks.VisualStudio" Version="$(MicrosoftDotNetBuildTasksVisualStudioVersion)" Condition="'$(UsingToolVSSDK)' == 'true'" IsImplicitlyDefined="true" />
5758
</ItemGroup>
5859

59-
<!-- Unlike the items above, we should restore M.D.B.T.F in source build scenarios since it's used in the inner build. -->
60-
<ItemGroup>
60+
<!-- Unlike the items above, we should restore M.D.B.T.F in source build scenarios.
61+
Only reference this if publishing is enabled as that is the only scenario where the targets file which this package
62+
provides is being imported (from Publish.proj). -->
63+
<ItemGroup Condition="'$(RestoreBuildTaskFeed)' == 'true'">
6164
<PackageReference Include="Microsoft.DotNet.Build.Tasks.Feed" Version="$(MicrosoftDotNetBuildTasksFeedVersion)" IsImplicitlyDefined="true" />
6265
</ItemGroup>
6366

src/Microsoft.DotNet.SignTool.Tests/FakeSignTool.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
using System;
55
using System.Diagnostics;
66
using System.IO;
7-
using System.IO.Packaging;
87
using Microsoft.Build.Framework;
98
using Microsoft.Build.Utilities;
109
using System.Collections.Generic;

0 commit comments

Comments
 (0)