Skip to content

[main] Source code updates from dotnet/sdk - #6524

Merged
dsplaisted merged 5 commits into
mainfrom
darc-main-bc0bfd94-3b3d-4b4d-b82e-9a0d30753520
May 11, 2026
Merged

dsplaisted merged 5 commits into
mainfrom
darc-main-bc0bfd94-3b3d-4b4d-b82e-9a0d30753520

Conversation

@dotnet-maestro

@dotnet-maestro dotnet-maestro Bot commented May 8, 2026 •

Copy link
Copy Markdown
Contributor

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
darc vmr diff --name-only https://github.com/dotnet/sdk:6f461c1afb3974711fd6f74c676d0ad256277644..https://github.com/dotnet/dotnet:darc-main-bc0bfd94-3b3d-4b4d-b82e-9a0d30753520

@dotnet-maestro

dotnet-maestro Bot commented May 8, 2026

Copy link
Copy Markdown
Contributor Author

Note

PRs from original repository included in this codeflow update:

💡 You may consult the FAQ for more information or tag @dotnet/prodconsvcs for assistance.

@dotnet-policy-service
dotnet-policy-service Bot requested a review from a team May 8, 2026 02:11
@ViktorHofer

ViktorHofer commented May 8, 2026 •

Copy link
Copy Markdown
Member

D:\a_work\1\s.dotnet\sdk\11.0.100-preview.5.26227.104\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets(266,5): error NETSDK1047: Assets file 'D:\a_work\1\s\src\sdk\artifacts\obj\dotnet-aot\project.assets.json' doesn't have a target for 'net11.0/win-x64'. Ensure that restore has run and that you have included 'net11.0' in the TargetFrameworks for your project. You may also need to include 'win-x64' in your project's RuntimeIdentifiers. [D:\a_work\1\s\src\sdk\src\Cli\dotnet-aot\dotnet-aot.csproj]

Again, that flaky error. Would be good if someone could investigate. It nukes our win-x64 VMR builds. cc @dotnet/dotnet-cli

/__w/1/s/src/sdk/src/TemplateEngine/Tools/Microsoft.TemplateEngine.Authoring.Tasks/Microsoft.TemplateEngine.Authoring.Tasks.csproj(58,5): error MSB3030: Could not copy the file "/__w/1/s/src/sdk/artifacts/bin/Microsoft.TemplateEngine.Authoring.Tasks/Release/..nupkg" because it was not found.

Source-build failure. I assume this one would have caught by running repo source-build in dotnet/sdk. cc @dotnet/source-build

@MichaelSimons

Copy link
Copy Markdown
Member

D:\a_work\1\s.dotnet\sdk\11.0.100-preview.5.26227.104\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets(266,5): error NETSDK1047: Assets file 'D:\a_work\1\s\src\sdk\artifacts\obj\dotnet-aot\project.assets.json' doesn't have a target for 'net11.0/win-x64'. Ensure that restore has run and that you have included 'net11.0' in the TargetFrameworks for your project. You may also need to include 'win-x64' in your project's RuntimeIdentifiers. [D:\a_work\1\s\src\sdk\src\Cli\dotnet-aot\dotnet-aot.csproj]

Again, that flaky error. Would be good if someone could investigate. It nukes our win-x64 VMR builds. cc @dotnet/dotnet-cli

This is being fixed with dotnet/sdk#54222.
cc @NikolaMilosavljevic

@MichaelSimons

Copy link
Copy Markdown
Member

/__w/1/s/src/sdk/src/TemplateEngine/Tools/Microsoft.TemplateEngine.Authoring.Tasks/Microsoft.TemplateEngine.Authoring.Tasks.csproj(58,5): error MSB3030: Could not copy the file "/__w/1/s/src/sdk/artifacts/bin/Microsoft.TemplateEngine.Authoring.Tasks/Release/..nupkg" because it was not found.

Source-build failure. I assume this one would have caught by running repo source-build in dotnet/sdk. cc @dotnet/source-build

@marcpopMSFT - This looks potentially related to dotnet/sdk#54184

@dotnet-maestro

dotnet-maestro Bot commented May 9, 2026

Copy link
Copy Markdown
Contributor Author

Note

PRs from original repository included in this codeflow update:

💡 You may consult the FAQ for more information or tag @dotnet/prodconsvcs for assistance.

@dotnet-maestro

Copy link
Copy Markdown
Contributor Author

Caution

🛑 Codeflow Paused — Conflict detected

A conflict was detected when trying to update this PR with changes from build 313678 of https://github.com/dotnet/sdk/tree/6f461c1afb3974711fd6f74c676d0ad256277644.

💡 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:

  • eng/Versions.props
    🔍 View file in dotnet/sdk vs VMR
  • src/BuiltInTools/Watch/Process/ProcessLaunchResult.cs
    🔍 View file in dotnet/sdk vs VMR

ℹ️ To resolve the conflicts, please follow these steps:

  1. Clone the current repository
    git clone https://github.com/dotnet/dotnet
    cd dotnet
  2. Make sure your darc is up-to-date
    (version 1.1.0-beta.26227.1 or higher)
    # Linux / MacOS
    ./eng/common/darc-init.sh
    # or on Windows
    .\eng\common\darc-init.ps1
  3. Run from repo's git clone and follow the instructions provided by the command to stage the conflict locally
    darc vmr resolve-conflict --subscription b80ccdd7-504a-4efb-b58b-d6480d0a64d9 
    This should apply the build 313678 with sources from 6f461c1
  4. Resolve the conflicts, commit & push the changes
  5. Once pushed, the Codeflow verification check will turn green.
    If not, a new build might have flown into the PR and you might need to run the command above again.

💡 You may consult the FAQ for more information or tag @dotnet/prodconsvcs for assistance.

@dotnet-maestro

Copy link
Copy Markdown
Contributor Author

Note

PRs from original repository included in this codeflow update:

💡 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]>
@dsplaisted
dsplaisted merged commit 0989bea into main May 11, 2026
15 of 16 checks passed
@dsplaisted
dsplaisted deleted the darc-main-bc0bfd94-3b3d-4b4d-b82e-9a0d30753520 branch May 11, 2026 22:37
@dotnet-policy-service
dotnet-policy-service Bot requested a review from a team May 11, 2026 22:37
@ViktorHofer

ViktorHofer commented May 12, 2026 •

Copy link
Copy Markdown
Member

@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:

  • 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.

ericstj added a commit to ericstj/dotnet that referenced this pull request May 12, 2026
@marcpopMSFT

Copy link
Copy Markdown
Member

@marcpopMSFT I think you should have resolved the codeflow conflicts first (see the comment above) before looking at failures and merging.
@ViktorHofer I had thought we could merge and then fix the conflict with the next flow. We're still working on developing our build tooling and I think one version only looks for that comment if the PR is empty. @ellahathaway in case any changes are needed in the build tooling to look for the vmr resolve conflicts comment to special case that.

@ericstj

ericstj commented May 12, 2026 •

Copy link
Copy Markdown
Member

This change broke the official build :

##[error].dotnet\sdk\11.0.100-preview.5.26227.104\NuGet.Build.Tasks.Pack.targets(222,5): error NU5026: (NETCORE_ENGINEERING_TELEMETRY=Build) The file 'D:\a\_work\1\s\src\sdk\artifacts\bin\Microsoft.DotNet.Cli.Utils\Release\net11.0\Microsoft.DotNet.Cli.Utils.pdb' to be packed was not found on disk.
  D:\a\_work\1\s\.dotnet\sdk\11.0.100-preview.5.26227.104\NuGet.Build.Tasks.Pack.targets(222,5): error NU5026: The file 'D:\a\_work\1\s\src\sdk\artifacts\bin\Microsoft.DotNet.Cli.Utils\Release\net11.0\Microsoft.DotNet.Cli.Utils.pdb' to be packed was not found on disk. [D:\a\_work\1\s\src\sdk\src\Cli\Microsoft.DotNet.Cli.Utils\Microsoft.DotNet.Cli.Utils.csproj]

https://dev.azure.com/dnceng/internal/_build/results?buildId=2972942&view=logs&j=9050e078-31bf-5111-d8ec-8b6fa95caf9c&t=71ed8226-4101-5eec-23b4-99befb5c82cb

dsplaisted added a commit that referenced this pull request May 13, 2026
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants