Skip to content
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

[build] add feeds to fix MAUI Integration #9344

Merged
merged 1 commit into from
Sep 30, 2024

Conversation

jonathanpeppers
Copy link
Member

Trying to fix the error:

##[error]build-tools\scripts\DotNet.targets(115,5): Error MSB3073: The command ""bin\Release\dotnet\dotnet" workload install maui --skip-manifest-update --skip-sign-check --verbosity diag --source "build-tools\scripts\..\..\..\maui\artifacts" --source "D:\a\_work\1\a\android-packs" --source "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json" --source "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json" --source "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json" --source "https://pkgs.dev.azure.com/dnceng/public/_packaging/benchmark-dotnet-prerelease/nuget/v3/index.json" --source "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet8/nuget/v3/index.json" --source "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet8-transport/nuget/v3/index.json" --source "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet9/nuget/v3/index.json" --source "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet9-transport/nuget/v3/index.json" --source "https://pkgs.dev.azure.com/xamarin/public/_packaging/SkiaSharp/nuget/v3/index.json" --source "https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-emsdk-2674f580/nuget/v3/index.json" --source "https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-runtime-ed13b351/nuget/v3/index.json" --source "https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-android-45bb7f36/nuget/v3/index.json" --source "https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-xamarin-xamarin-macios-bc01f5e0/nuget/v3/index.json" --temp-dir "bin\Release\dotnet\..\.xa-workload-temp-at32pghi.3t5"" exited with code 1.
 1>build-tools\scripts\DotNet.targets(115,5): error MSB3073: The command ""bin\Release\dotnet\dotnet" workload install maui --skip-manifest-update --skip-sign-check --verbosity diag --source "build-tools\scripts\..\..\..\maui\artifacts" --source "D:\a\_work\1\a\android-packs" --source "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json" --source "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json" --source "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json" --source "https://pkgs.dev.azure.com/dnceng/public/_packaging/benchmark-dotnet-prerelease/nuget/v3/index.json" --source "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet8/nuget/v3/index.json" --source "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet8-transport/nuget/v3/index.json" --source "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet9/nuget/v3/index.json" --source "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet9-transport/nuget/v3/index.json" --source "https://pkgs.dev.azure.com/xamarin/public/_packaging/SkiaSharp/nuget/v3/index.json" --source "https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-emsdk-2674f580/nuget/v3/index.json" --source "https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-runtime-ed13b351/nuget/v3/index.json" --source "https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-android-45bb7f36/nuget/v3/index.json" --source "https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-xamarin-xamarin-macios-bc01f5e0/nuget/v3/index.json" --temp-dir "bin\Release\dotnet\..\.xa-workload-temp-at32pghi.3t5"" exited with code 1.
 1>Done Building Project "Xamarin.Android.sln" (InstallMaui target(s)) -- FAILED.

Using the latest 8.0.10 feeds from dotnet/runtime.

We also can update the two <XmlPeek/> calls on the NuGet.config in order to:

  • Add $(MauiSourcePath)\NuGet.config to the @(_NuGetSources) item group.

  • Add $(XamarinAndroidSourcePath)NuGet.config to the @(_NuGetSources) item group.

So, we end up using the MAUI feeds + our feeds second, which is more likely to work when both repos are not aligned.

Trying to fix the error:

    ##[error]build-tools\scripts\DotNet.targets(115,5): Error MSB3073: The command ""bin\Release\dotnet\dotnet" workload install maui --skip-manifest-update --skip-sign-check --verbosity diag --source "build-tools\scripts\..\..\..\maui\artifacts" --source "D:\a\_work\1\a\android-packs" --source "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json" --source "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json" --source "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json" --source "https://pkgs.dev.azure.com/dnceng/public/_packaging/benchmark-dotnet-prerelease/nuget/v3/index.json" --source "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet8/nuget/v3/index.json" --source "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet8-transport/nuget/v3/index.json" --source "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet9/nuget/v3/index.json" --source "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet9-transport/nuget/v3/index.json" --source "https://pkgs.dev.azure.com/xamarin/public/_packaging/SkiaSharp/nuget/v3/index.json" --source "https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-emsdk-2674f580/nuget/v3/index.json" --source "https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-runtime-ed13b351/nuget/v3/index.json" --source "https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-android-45bb7f36/nuget/v3/index.json" --source "https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-xamarin-xamarin-macios-bc01f5e0/nuget/v3/index.json" --temp-dir "bin\Release\dotnet\..\.xa-workload-temp-at32pghi.3t5"" exited with code 1.
     1>build-tools\scripts\DotNet.targets(115,5): error MSB3073: The command ""bin\Release\dotnet\dotnet" workload install maui --skip-manifest-update --skip-sign-check --verbosity diag --source "build-tools\scripts\..\..\..\maui\artifacts" --source "D:\a\_work\1\a\android-packs" --source "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json" --source "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json" --source "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json" --source "https://pkgs.dev.azure.com/dnceng/public/_packaging/benchmark-dotnet-prerelease/nuget/v3/index.json" --source "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet8/nuget/v3/index.json" --source "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet8-transport/nuget/v3/index.json" --source "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet9/nuget/v3/index.json" --source "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet9-transport/nuget/v3/index.json" --source "https://pkgs.dev.azure.com/xamarin/public/_packaging/SkiaSharp/nuget/v3/index.json" --source "https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-emsdk-2674f580/nuget/v3/index.json" --source "https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-runtime-ed13b351/nuget/v3/index.json" --source "https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-android-45bb7f36/nuget/v3/index.json" --source "https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-xamarin-xamarin-macios-bc01f5e0/nuget/v3/index.json" --temp-dir "bin\Release\dotnet\..\.xa-workload-temp-at32pghi.3t5"" exited with code 1.
     1>Done Building Project "Xamarin.Android.sln" (InstallMaui target(s)) -- FAILED.

Using the latest 8.0.10 feeds from dotnet/runtime.

We also can update the two `<XmlPeek/>` calls on the `NuGet.config`
in order to:

* Add `$(MauiSourcePath)\NuGet.config` to the `@(_NuGetSources)` item
  group.

* Add `$(XamarinAndroidSourcePath)NuGet.config` to the `@(_NuGetSources)` item
  group.

So, we end up using the MAUI feeds + our feeds second, which is more
likely to work when both repos are not aligned.
@jonathanpeppers jonathanpeppers marked this pull request as ready for review September 30, 2024 14:25
@jonathanpeppers
Copy link
Member Author

Looks green!

image

@jonathanpeppers
Copy link
Member Author

There is a Build_JLO_Change perf test failure, we can ignore.

@jonathanpeppers jonathanpeppers merged commit 584baab into dotnet:main Sep 30, 2024
55 of 57 checks passed
@jonathanpeppers jonathanpeppers deleted the maui-integration branch September 30, 2024 15:36
jonathanpeppers added a commit that referenced this pull request Sep 30, 2024
Trying to fix the error:

    ##[error]build-tools\scripts\DotNet.targets(115,5): Error MSB3073: The command ""bin\Release\dotnet\dotnet" workload install maui --skip-manifest-update --skip-sign-check --verbosity diag --source "build-tools\scripts\..\..\..\maui\artifacts" --source "D:\a\_work\1\a\android-packs" --source "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json" --source "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json" --source "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json" --source "https://pkgs.dev.azure.com/dnceng/public/_packaging/benchmark-dotnet-prerelease/nuget/v3/index.json" --source "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet8/nuget/v3/index.json" --source "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet8-transport/nuget/v3/index.json" --source "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet9/nuget/v3/index.json" --source "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet9-transport/nuget/v3/index.json" --source "https://pkgs.dev.azure.com/xamarin/public/_packaging/SkiaSharp/nuget/v3/index.json" --source "https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-emsdk-2674f580/nuget/v3/index.json" --source "https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-runtime-ed13b351/nuget/v3/index.json" --source "https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-android-45bb7f36/nuget/v3/index.json" --source "https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-xamarin-xamarin-macios-bc01f5e0/nuget/v3/index.json" --temp-dir "bin\Release\dotnet\..\.xa-workload-temp-at32pghi.3t5"" exited with code 1.
     1>build-tools\scripts\DotNet.targets(115,5): error MSB3073: The command ""bin\Release\dotnet\dotnet" workload install maui --skip-manifest-update --skip-sign-check --verbosity diag --source "build-tools\scripts\..\..\..\maui\artifacts" --source "D:\a\_work\1\a\android-packs" --source "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json" --source "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json" --source "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json" --source "https://pkgs.dev.azure.com/dnceng/public/_packaging/benchmark-dotnet-prerelease/nuget/v3/index.json" --source "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet8/nuget/v3/index.json" --source "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet8-transport/nuget/v3/index.json" --source "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet9/nuget/v3/index.json" --source "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet9-transport/nuget/v3/index.json" --source "https://pkgs.dev.azure.com/xamarin/public/_packaging/SkiaSharp/nuget/v3/index.json" --source "https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-emsdk-2674f580/nuget/v3/index.json" --source "https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-runtime-ed13b351/nuget/v3/index.json" --source "https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-android-45bb7f36/nuget/v3/index.json" --source "https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-xamarin-xamarin-macios-bc01f5e0/nuget/v3/index.json" --temp-dir "bin\Release\dotnet\..\.xa-workload-temp-at32pghi.3t5"" exited with code 1.
     1>Done Building Project "Xamarin.Android.sln" (InstallMaui target(s)) -- FAILED.

Using the latest 8.0.10 feeds from dotnet/runtime.

We also can update the two `<XmlPeek/>` calls on the `NuGet.config`
in order to:

* Add `$(MauiSourcePath)\NuGet.config` to the `@(_NuGetSources)` item
  group.

* Add `$(XamarinAndroidSourcePath)NuGet.config` to the `@(_NuGetSources)` item
  group.

So, we end up using the MAUI feeds + our feeds second, which is more
likely to work when both repos are not aligned.
@github-actions github-actions bot locked and limited conversation to collaborators Oct 31, 2024
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.

2 participants