Can’t pair to Mac in Visual Studio 17+

 At the last time, I got an error “An error occurred while trying to configure the dotnet runtime. Pair To Mac agents cannot work without a valid runtime installed. Please try again Sequence contains no elements” from Visual Studio. At that time, I had Visual Studio 17.13.5. I tried several ways to fix issue, but not successful. After a while, I guess maybe dotnet sdk wasn’t installed on Mac yet. Finally, I ran this command on Mac to resolve the issue:

brew install --cask dotnet-sdk

After dotnet sdk was successfully installed on Mac, I tried to pair to Mac in Visual Studio again and everything worked fine. Hope this post would help you if you have the same issue!

Happy coding 🙂

Comments

Popular posts from this blog

Don’t use Directory.GetCurrentDirectory() to get current directory in .NET