Skip to content

[release/11.0.1xx-preview1] [dotnet] Fix publish BAR manifest step#24577

Merged
rolfbjarne merged 7 commits intorelease/11.0.1xx-preview1from
release-test/net11.0-p1-arcade-version
Jan 30, 2026
Merged

[release/11.0.1xx-preview1] [dotnet] Fix publish BAR manifest step#24577
rolfbjarne merged 7 commits intorelease/11.0.1xx-preview1from
release-test/net11.0-p1-arcade-version

Conversation

@rolfbjarne
Copy link
Member

@rolfbjarne rolfbjarne commented Jan 28, 2026

Publishing is currently failing with:

build-tools\create-packs\Directory.Build.targets(188,5):
error MSB4062: The "PushToBuildStorage" task could not be loaded from the assembly C:\Users\cloudtest\.nuget\packages\microsoft.dotnet.build.tasks.feed\11.0.0-beta.26064.107\build\../tools/net/Microsoft.DotNet.Build.Tasks.Feed.dll.
Could not load file or assembly 'System.Runtime, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
The system cannot find the file specified. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.
[build-tools\create-packs\Microsoft.Android.Sdk.proj]

PushToBuildStorage is now targeting .NET 11, but this is a step that is using a stable .NET SDK (currently .NET 10).

For now, let's just use a slightly older version of the PushToBuildStorage task that targets .NET 10.

When .NET 10 Preview 1 has shipped, it will be easy to use the UseDotNet yaml task and fix this properly.

This was inspired by / copied from dotnet/android#10721.

Publishing is currently failing with:

    build-tools\create-packs\Directory.Build.targets(188,5):
    error MSB4062: The "PushToBuildStorage" task could not be loaded from the assembly C:\Users\cloudtest\.nuget\packages\microsoft.dotnet.build.tasks.feed\11.0.0-beta.26064.107\build\../tools/net/Microsoft.DotNet.Build.Tasks.Feed.dll.
    Could not load file or assembly 'System.Runtime, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
    The system cannot find the file specified. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.
    [build-tools\create-packs\Microsoft.Android.Sdk.proj]

`PushToBuildStorage` is now targeting .NET 11, but this is a step that
is using a stable .NET SDK (currently .NET 10).

For now, let's just use a slightly older version of the
`PushToBuildStorage` task that targets .NET 10.

When .NET 10 Preview 1 has shipped, it will be easy to use the
`UseDotNet` yaml task and fix this properly.
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes BAR manifest publishing failures caused by PushToBuildStorage moving to a .NET 11-targeting build tasks assembly while CI is still running that step with a .NET 10 SDK.

Changes:

  • Introduce a pinned Microsoft.DotNet.Build.Tasks.Feed package version known to target net10.0 for CI compatibility.
  • Update the packaging common project to use the pinned net10.0-compatible tasks/SDK versions for BAR manifest publishing.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
eng/Versions.props Adds a new property to pin the last net10.0-targeting Microsoft.DotNet.Build.Tasks.Feed version for CI usage.
dotnet/package/common.csproj Switches BAR publishing-related package references to the pinned net10.0-compatible version to avoid task load failures under .NET 10 SDK.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2
Copy link
Collaborator

✅ [CI Build #ece5179] Build passed (Build packages) ✅

Pipeline on Agent
Hash: ece51790399a5c4b6548ac2ec24b5ebe869f174f [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

✅ [CI Build #ece5179] Build passed (Detect API changes) ✅

Pipeline on Agent
Hash: ece51790399a5c4b6548ac2ec24b5ebe869f174f [PR build]

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2
Copy link
Collaborator

✅ API diff for current PR / commit

NET (empty diffs)

✅ API diff vs stable

NET (empty diffs)

ℹ️ Generator diff

Generator Diff: vsdrops (html) vsdrops (raw diff) gist (raw diff) - Please review changes)

Pipeline on Agent
Hash: ece51790399a5c4b6548ac2ec24b5ebe869f174f [PR build]

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2
Copy link
Collaborator

✅ [CI Build #ece5179] Build passed (Build macOS tests) ✅

Pipeline on Agent
Hash: ece51790399a5c4b6548ac2ec24b5ebe869f174f [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

💻 [CI Build #ece5179] Tests on macOS X64 - Mac Sonoma (14) passed 💻

All tests on macOS X64 - Mac Sonoma (14) passed.

Pipeline on Agent
Hash: ece51790399a5c4b6548ac2ec24b5ebe869f174f [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

💻 [CI Build #ece5179] Tests on macOS arm64 - Mac Tahoe (26) passed 💻

All tests on macOS arm64 - Mac Tahoe (26) passed.

Pipeline on Agent
Hash: ece51790399a5c4b6548ac2ec24b5ebe869f174f [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

💻 [CI Build #ece5179] Tests on macOS arm64 - Mac Sequoia (15) passed 💻

All tests on macOS arm64 - Mac Sequoia (15) passed.

Pipeline on Agent
Hash: ece51790399a5c4b6548ac2ec24b5ebe869f174f [PR build]

@rolfbjarne
Copy link
Member Author

@rolfbjarne rolfbjarne merged commit b596b18 into release/11.0.1xx-preview1 Jan 30, 2026
10 of 12 checks passed
@rolfbjarne rolfbjarne deleted the release-test/net11.0-p1-arcade-version branch January 30, 2026 14:36
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.

4 participants