Skip to content

[ci][net10.0] Use variables to control system .NET SDK installs #22704

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 1, 2025

Conversation

pjcollins
Copy link
Member

@pjcollins pjcollins commented Apr 30, 2025

I noticed the net10.0 branch build was failing during the "generate and publish BAR manifest" step with:

D:\a\_work\1\s\dotnet\package\common.csproj(151,5): error MSB4062: The "PushToBuildStorage" task could not be loaded from the assembly D:\a\_work\1\s\packages\microsoft.dotnet.build.tasks.feed\10.0.0-beta.25228.101\build\../tools/net/Microsoft.DotNet.Build.Tasks.Feed.dll. Could not load file or assembly 'System.Runtime, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified.

The Microsoft.DotNet.Build.Tasks.Feed tasks are seemingly now being built against .NET 10, so we'll need to install .NET 10 to run them.

Variables that represent the current stable and preview versions of .NET have been added to be used throughout the pipeline. These will now only need to be updated in one place when a new major release comes around.

Also fixes the following publishing error by setting %(ItemsToPush.Kind) metadata:

D:\a\_work\1\s\dotnet\package\common.csproj(151,5): error : Missing 'Kind' property on artifact D:\a\_work\1\a\nuget-signed\Workload.VSDrop.iOS.MacCatalyst.macOS.tvOS.net10.0.xcode16.3.packs.zip. Possible values are 'Blob', 'PDB', 'Package'.

I noticed the net10.0 branch build was failing during the
"generate and publish BAR manifest" step with:

    D:\a\_work\1\s\dotnet\package\common.csproj(151,5): error MSB4062: The "PushToBuildStorage" task could not be loaded from the assembly D:\a\_work\1\s\packages\microsoft.dotnet.build.tasks.feed\10.0.0-beta.25228.101\build\../tools/net/Microsoft.DotNet.Build.Tasks.Feed.dll. Could not load file or assembly 'System.Runtime, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified.

The Microsoft.DotNet.Build.Tasks.Feed tasks are seemingly now being
built against .NET 10, so we'll need to install .NET 10 to run them.

Variables that represent the current stable and preview versions of .NET
have been added to be used throughout the pipeline. These will now only
need to be updated in one place when a new major release comes around.
@pjcollins pjcollins changed the title [ci] Use variables to control system .NET SDK installs [ci][net10.0] Use variables to control system .NET SDK installs Apr 30, 2025
@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 #6223f23] Build passed (Detect API changes) ✅

Pipeline on Agent
Hash: 6223f2365122b1af2cfbbf2cfa42af3838b3c19e [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

✅ [CI Build #6223f23] Build passed (Build packages) ✅

Pipeline on Agent
Hash: 6223f2365122b1af2cfbbf2cfa42af3838b3c19e [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

✅ API diff for current PR / commit

.NET ( No breaking changes )

✅ API diff vs stable

.NET ( No breaking changes )

✅ Generator diff

Generator diff is empty

Pipeline on Agent
Hash: 6223f2365122b1af2cfbbf2cfa42af3838b3c19e [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

✅ [CI Build #6223f23] Build passed (Build macOS tests) ✅

Pipeline on Agent
Hash: 6223f2365122b1af2cfbbf2cfa42af3838b3c19e [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

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

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

Pipeline on Agent
Hash: 6223f2365122b1af2cfbbf2cfa42af3838b3c19e [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

💻 [CI Build #6223f23] Tests on macOS M1 - Mac Monterey (12) passed 💻

All tests on macOS M1 - Mac Monterey (12) passed.

Pipeline on Agent
Hash: 6223f2365122b1af2cfbbf2cfa42af3838b3c19e [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

💻 [CI Build #6223f23] Tests on macOS M1 - Mac Ventura (13) passed 💻

All tests on macOS M1 - Mac Ventura (13) passed.

Pipeline on Agent
Hash: 6223f2365122b1af2cfbbf2cfa42af3838b3c19e [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

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

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

Pipeline on Agent
Hash: 6223f2365122b1af2cfbbf2cfa42af3838b3c19e [PR build]

@rolfbjarne rolfbjarne merged commit cb7b3ca into net10.0 May 1, 2025
13 checks passed
@rolfbjarne rolfbjarne deleted the release-test/net10-sdkvars branch May 1, 2025 06:34
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.

3 participants