Microsoft Visual Studio Professional 2022 (64-bit) - Preview Version 17.14.0 Preview 2.0 will no longer compile my MAUI app

Steve Frase 0 Reputation points
2025-03-12T00:57:44.3+00:00

This afternoon I upgraded Visual Studio to preview 2.
After doing so, my MAUI app is broken.

Error (active) NU1102 Unable to find package Microsoft.Android.Ref.34 with version (= 34.0.148)

  • Found 23 version(s) in nuget.org [ Nearest version: 34.99.0-preview.1.151 ]
  • Found 0 version(s) in Microsoft Visual Studio Offline Packages
  • Found 0 version(s) in C:\Program Files\dotnet\library-packs <APP_NAME>(net8.0-android34.0), <APP_NAME> (net8.0-ios), <APP_NAME> (net8.0-maccatalyst), <APP_NAME>(net8.0-windows10.0.19041.0) C:\Users<user>\source\repos\xxxxxxxx.csproj

The project file will not even load.

This was reported in the Output window:
To build this project, the following workloads must be installed: wasm-tools-net8

To install these workloads, run the following command: dotnet workload restore

After running, I get:

Workload installation failed: One or more errors occurred. (Version 35.0.50 of package microsoft.android.sdk.windows.msi.x64 is not found in NuGet feeds https://api.nuget.org/v3/index.json;C:\Program Files (x86)\Microsoft SDKs\NuGetPackages.)

Visual Studio Setup
Visual Studio Setup
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
1,111 questions
{count} votes

Accepted answer
  1. Tianyu Sun-MSFT 33,471 Reputation points Microsoft External Staff
    2025-03-12T09:01:07.5766667+00:00

    Hello @Steve Frase ,

    Welcome to Microsoft Q&A forum.

    I double tested on my side but didn’t get the same error. Does this error appear in a newly created MAUI project?

    I found that the errors("NU1102" and "Version 35.0.50 of package microsoft.android.sdk.windows.msi.x64 is not found in NuGet feeds") you got might be the same/similar to this one => Workload installation failed: microsoft.android.sdk.windows::34.0.64 is not found in NuGet feeds https://api.nuget.org/v3/index.json.

    It’s an open ticket and still active, some users got the same errors on VS 2022 17.14.0 Preview 2 as you. I suggest you also follow that ticket for the latest information.

    Besides, the temporarily workaround shared there is reverting to use Visual Studio 17.13.3(Visual Studio and Visual Studio Preview version can be installed side-by-side).

    The first error mentioned version 34.0.148 of the package Microsoft.Android.Ref.34. I checked on nuget.org directly, I found 34.0.147 and 34.99.0-preview.1.51 but didn’t find 34.0.148. Also, the instructions say, "Please do not reference directly". I believe that this package is not needed to install manually. So, something relate to specific assembly or API might be corrupted.

    If possible, I would suggest you also submit a ticket on our Developer Community - Visual Studio and report this issue to VS product team.

    Kind regards,

    Tianyu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.