[build] fix publish BAR manifest step#10721
Merged
jonathanpeppers merged 1 commit intomainfrom Jan 27, 2026
Merged
Conversation
This 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.
Member
Author
Member
Author
rolfbjarne
added a commit
to dotnet/macios
that referenced
this pull request
Jan 30, 2026
…24577) 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Context:
android/eng/Versions.props
Line 9 in 097742b
This is currently failing with:
PushToBuildStorageis 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
PushToBuildStoragetask that targets .NET 10.When .NET 10 Preview 1 has shipped, it will be easy to use the
UseDotNetyaml task and fix this properly.