Skip to content

[build] fix publish BAR manifest step#10721

Merged
jonathanpeppers merged 1 commit intomainfrom
dev/peppers/fix-publish-bar
Jan 27, 2026
Merged

[build] fix publish BAR manifest step#10721
jonathanpeppers merged 1 commit intomainfrom
dev/peppers/fix-publish-bar

Conversation

@jonathanpeppers
Copy link
Member

Context:

<MicrosoftDotNetBuildTasksFeedPackageVersion>11.0.0-beta.26060.102</MicrosoftDotNetBuildTasksFeedPackageVersion>

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.

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.
@jonathanpeppers
Copy link
Member Author

@jonathanpeppers
Copy link
Member Author

This worked, merging:

image

@jonathanpeppers jonathanpeppers marked this pull request as ready for review January 27, 2026 00:30
@jonathanpeppers jonathanpeppers merged commit 2ef2306 into main Jan 27, 2026
2 of 4 checks passed
@jonathanpeppers jonathanpeppers deleted the dev/peppers/fix-publish-bar branch January 27, 2026 00:30
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.
@github-actions github-actions bot locked and limited conversation to collaborators Feb 26, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant