Repository navigation
[main] Source code updates from dotnet/sdk - #6524
Conversation
|
Note PRs from original repository included in this codeflow update:
💡 You may consult the FAQ for more information or tag @dotnet/prodconsvcs for assistance. |
Again, that flaky error. Would be good if someone could investigate. It nukes our win-x64 VMR builds. cc @dotnet/dotnet-cli
Source-build failure. I assume this one would have caught by running repo source-build in dotnet/sdk. cc @dotnet/source-build |
This is being fixed with dotnet/sdk#54222. |
@marcpopMSFT - This looks potentially related to dotnet/sdk#54184 |
[[ commit created by automation ]]
|
Note PRs from original repository included in this codeflow update:
💡 You may consult the FAQ for more information or tag @dotnet/prodconsvcs for assistance. |
|
Caution 🛑 Codeflow Paused — Conflict detectedA conflict was detected when trying to update this PR with changes from build 💡 You can either merge the PR without getting these new updates or manually flow them in and resolve the conflicts so that automated codeflow can resume for this PR. The conflicts in the following files need to be manually resolved:
ℹ️ To resolve the conflicts, please follow these steps:
💡 You may consult the FAQ for more information or tag @dotnet/prodconsvcs for assistance. |
…ot publish - Skip CopyPackageToTestPackagesDir target when DotNetBuild=true (VMR/source-build) since integration tests don't run in that context and PackageId/PackageVersion properties are empty in the outer cross-targeting evaluation, causing MSB3030. - Remove --no-restore from dotnet-aot publish command in GenerateLayout.targets. Runtime packs (e.g. Microsoft.NETCore.App.Runtime) are only downloaded during a RID-aware restore, which the centralized sdk.slnx restore does not cover, causing NETSDK1112. Co-authored-by: Copilot <[email protected]>
|
@marcpopMSFT I think you should have resolved the codeflow conflicts first (see the comment above) before looking at failures and merging. @NikolaMilosavljevic Marc just reverted the --no-restore flakiness fix for dotnet-aot:
|
|
|
This change broke the official build : |
The Exec-based child `dotnet publish` introduced via flow of dotnet/sdk#54222 caused the spawned process to rebuild dotnet-aot.csproj's ProjectReferences (Microsoft.DotNet.Cli.Utils, Cli.CoreUtils, NativeWrapper) without inheriting the outer build's MSBuild global properties (DotNetBuild=True, DotNetBuildFromVMR=True, Arcade/source-build flags, DebugType, signing, version overrides). The child's rebuilds clobbered PDBs the outer build had produced, breaking the outer Copy/Pack steps with MSB3030 / NU5026. This regressed dotnet-unified-build verticals on dnceng/internal (build 2972531, after flow PR #6524). Verified from the failing build's sdk binlog that: - The centralized sdk.slnx restore IS RID-aware (RuntimeIdentifier=$(TargetRid) flows from the dotnet-aot.csproj declaration added in dotnet/sdk#54222). - ProcessFrameworkReferences on dotnet-aot.csproj during the SolutionRestore evaluation logs "Added PackageDownload for Microsoft.NETCore.App.Runtime.NativeAOT.win-x64@11.0.0-preview.5.26261.113". - The pack lands on disk at artifacts/.packages/microsoft.netcore.app.runtime.nativeaot.win-x64/. So no separate Restore is required for runtime packs; the previous "Restore is NOT skipped here" rationale was based on a misdiagnosis (the actual failure was the PDB clobber, not missing runtime packs). Removing the Exec also removes the need for the BuildManager-interference workaround. With a single in-process <MSBuild Targets="Publish"> call, MSBuild reuses the outer build's already-built ProjectReferences from its BuildManager cache instead of re-running CoreCompile on them. Co-authored-by: Copilot <[email protected]>
Note
This is a codeflow update. It may contain both source code changes from
the source repo
as well as dependency updates. Learn more here.
This pull request brings the following source code changes
From https://github.com/dotnet/sdk
Diff the source with this PR branch