Questions tagged [visual-studio-mac]

Visual Studio for Mac is an IDE from Microsoft for Mac users. Use this tag if you have a specific question about Visual Studio for Mac features and functionality, not just a question regarding your code. Please mention your exact macOS version, VS for Mac version, Mono version and Xamarin runtime versions when applicable. Information such as Xcode and Android SDK versions are also useful.

Microsoft released Visual Studio for Mac in 2017 (based on MonoDevelop 7.0 code base), to replace Xamarin Studio (it was based on MonoDevelop 6.0 code base).

Primarily it supports Xamarin (Xamarin.Mac, Xamarin.iOS and Xamarin.Android) and .NET Core projects. Other project types might not be supported very well (due to Mono/.NET Framework compatibility).

Not every features of Visual Studio 2017 on Windows are supported by Visual Studio for Mac.

Product defects can be reported to Microsoft via Help | Report a Problem. Feature requests can also be raised via Help | Provide a Suggestion.

1045 questions
3
votes
4 answers

Xamarin.UITest Unable to contact test backend running in app

I'm trying to test my Xamarin.Forms app with Xamarin.UITest. Android works fine, but the iOS part has problems. When executing my first test to get into REPL I get the following error: SetUp : System.Exception : Unable to contact test backend…
3
votes
2 answers

How to programmatically retrieve the version information of Visual Studio for Mac?

I want to retrieve the version information of Visual Studio for Mac during a build job of a Xamarin App. The goal is to include them as debug information in the binary. Is there a way to get the version number of Visual Studio, Xamarin.iOS and…
Christopher Stephan
  • 1,081
  • 16
  • 33
3
votes
1 answer

Building with JDK Version `11.0.1` is not supported. Please install JDK version `1.8.0`

I have downloaded visual studio for mac and try to start learning xamarin is iOS and Android the problem is when I try to run the android project I got the following error Building with JDK Version `11.0.1` is not supported. Please install JDK…
Amira Elsayed Ismail
  • 9,216
  • 30
  • 92
  • 175
3
votes
1 answer

Fonts in GTK# on macOS 10.14 Mojave looking bold

There is something strange that started happening with macOS Mojave. I have a GTK# app that uses mono on macOS and it was running fine for years. Now all fonts in the application started to appear as bold. I have created a small test app to test the…
flipm0de
  • 183
  • 1
  • 10
3
votes
2 answers

Why can I not always change Target Framework in Visual Studio for Mac?

I just downloaded Visual Studio for Mac and for some reason in some projects I've made, I can change the target framework, but most of the time it's greyed out: Does anyone know how to always be able to change the target framework?
Thom Blair III
  • 141
  • 1
  • 7
3
votes
1 answer

Can't connect PC to Mac (Xamarin.iOS versions mismatch)

I'm trying to connect my Windows 10 to my Mac to build a Xamarin.Forms app as I've done in the past. However, I'm getting the following error: Xamarin.iOS versions mismatch The Xamarin.iOS SDK version installed on Mac is not compatible with this…
ispiro
  • 26,556
  • 38
  • 136
  • 291
3
votes
1 answer

Data Seeding by HasData not working on Visual Studio for Mac

I am getting some wonky behavior in Visual Studio for MacOS. I recently installed .NET Core 2.1 SDK and then upgraded a project from 2.0 to 2.1. I wanted to try out the new Data Seeding feature, which lets us seed data into an entity in an override…
3
votes
1 answer

Visual Studio for Mac - Windows Authentication - Is it feasible?

I'm operating in a mixed environment with some developers using macOS and others Windows 10. I've got an ASP.NET Core 2.0 MVC project that is configured for Windows Authentication and can be tested/debugged in Visual Studio on Windows but I'm…
3
votes
2 answers

Can't Change Branches on Visual Studio Mac

I have recently started a project on my Windows PC which I want to be able to take with my on my Mac. My friends and I are learning Git together. I am having trouble finding where you change branches on macOS Visual Studio. Pictured: 'Version…
berney_mark
  • 53
  • 1
  • 8
3
votes
2 answers

Using File.Open on VS for MAC how do you provide a string to absolute path?

Porting code over from VS for Windows to VS for MAC. Part of one function opens a file using File.Open (System.IO) with a string that, on windows at least, would provide the absolute path and file to open. The same code (on VS for MAC seems to…
Matt74
  • 31
  • 1
  • 4
3
votes
0 answers

Using Bower in Visual Studio for Mac .Net Core

I am trying to setup an MVC project that can make use of the Bower package manager in Visual Studio on a Mac so that it is the same as using it on Windows. I want to add Bootstrap and jQuery into my application. I have looked at the pre-built…
3
votes
0 answers

Using npm or Bower in Visual Studio for Mac

I have a situation in which I need my ASP.NET Core 2 MVC project to be cross-platform. Unfortunately it appears that I can't use Bower or npm integrated into the IDE (as I can with Visual Studio 2017), so I'm going to need a solution that works for…
vargonian
  • 3,064
  • 3
  • 27
  • 36
3
votes
1 answer

.Net Core - Application Crashing while debugging

Something really strange is happening. If i place a break point after a certain line of code, when debugging, the debug session stops as if i hit the "Stop" button. What's really strange is that, if i skip that function altogether, jumping over it,…
Leonardo
  • 10,737
  • 10
  • 62
  • 155
3
votes
1 answer

Does Visual studio solution open in visual studio mac?

I want to know, if i send a solution folder (it's written in visual studio C#) , can you open the solution in visual studio for mac? The project developed by in a visual studio 2017, then I need open in visual studio for mac version. The projects…
Başar Kaya
  • 354
  • 6
  • 13
3
votes
1 answer

Visual Studio for mac: how to create new git branch

In Visual Studio for mac I connected and checked out a project from git repository. I call context menu by clicking on the project and see this Could someone tell me where to create a new branch?
Vitalii
  • 10,091
  • 18
  • 83
  • 151