Why is VS 2022 (windows) trying to install dotnet v7 sdk to the Mac when its already installed?

andy hollis 0 Reputation points
2023-08-21T14:12:15.4833333+00:00

Hi,

I am trying to create a dotnet maui v7 project on windows for iOS and when I try to "connect to mac" it attempts to install 7.0.400-rtm.23369.16 sdk on the mac even though it appears to be already installed? The install then fails to download with other errors but why is it trying to download it in the first place?

I can only guess this is a version mismatch, so i have uninstalled all versions of the dotnet framework and reinstalled 7.0.400 on the Mac Mini (M1 Arm) to no avail.

Ive tried installing from scratch, removing VS for Mac and installing the files manually.

Maybe the version from dotnet.microsoft.com isnt rtm 23369.16?

Or maybe it isnt detecting my arm version of the sdk as its on a mac mini m1

But i have no idea what to try next?

Thanks for any suggestions!

Andy

Note: this all worked fine for Maui on .net 6.

dotnet --info
.NET SDK:
 Version:   7.0.400
 Commit:    73bf45718d

Runtime Environment:
 OS Name:     Mac OS X
 OS Version:  13.4
 OS Platform: Darwin
 RID:         osx.13-arm64
 Base Path:   /usr/local/share/dotnet/sdk/7.0.400/

Host:
  Version:      7.0.10
  Architecture: arm64
  Commit:       a6dbb800a4

.NET SDKs installed:
  7.0.400 [/usr/local/share/dotnet/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 7.0.10 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 7.0.10 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,404 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 41,926 Reputation points Microsoft Vendor
    2023-08-22T06:54:59.9266667+00:00

    Hello,

    Please refer to Clearing the Broker, IDB, Build, and Designer Agents on the Mac, and open XML/SDKs/dotnet/sdk folder to check whether the SDK for pair to mac has been successfully installed.

    Best Regards,

    Alec Liu.


    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.


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.