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
2
votes
0 answers

Setting Accent Color on Xamarin.Mac Big Sur

In macOS Big Sur you can set an accent color of the app. In XCode you can do that by changing the color in the Assets catalog. After a lot of research this does not appear to be possible in Xamarin. However it seems that there is a possible…
Ivan Ičin
  • 9,672
  • 5
  • 36
  • 57
2
votes
0 answers

Setting Active Solution Configuration on Visual Studio Mac 2019

I am confused how to set the active solution configuration for Visual Studio Mac 2019. Doesn't seem as clear cut as the Windows version? For example - I don't want to build a copy of Windows projects in the solution so I made a Debug-iOS solution…
dan
  • 801
  • 15
  • 41
2
votes
1 answer

Visual Studio for Mac Ignoring launchSettings.json

I have service which is written in C# and I am trying to run it from visual studio for Mac. I can see the launchSettings.json file in my path. But due to some reason the environment variables in launchSettings.json is not loading at all. Everything…
Sumodh S
  • 709
  • 1
  • 14
  • 36
2
votes
1 answer

Why is my text all highlighted in orange in the Visual Studio for Mac text editor?

This has happened to me a few times now and it's driving me a special bit crazy. For some reason Visual Studio for Mac decides to highlight sections of text in orange and once it happens no matter what I do this section will be orange. It gets hard…
Steve
  • 111
  • 9
2
votes
2 answers

Visual Studio mac 2019 (Community) - PresentationCore - Assembly not found for .Net Framework 4

I'm working on an existing solution at work that was written in C# targeting .NET Framework 4 in Visual Studio 2019 for Windows. I'm attempting to open the project on my MacBook Pro (running Catalina 10.15.6 if that's relevant) in Visual Studio Mac…
2
votes
0 answers

Debug .Net Core 3.1 Source Code in Visual Studio Mac 2019

Note - this is for Mac. (Visual Studio 2019) I am attempting to step into Asp .Net Web App code while debugging my web application but the functions are called without stepping into them. The project is using Microsoft.NetCore.App 3.1.0 and…
2
votes
1 answer

C# error CS0117: 'Array' does not contain a definition for

I am trying to use Array.Fill in my program but I am getting an error saying that there is no definition for Fill. I left off the function name in the title of this post because the same problem seems to happen for multiple functions in Array. I…
2
votes
2 answers

How can I push my Xamarin Forms code changes to all my dev devices at once?

I'm developing a Xamarin Forms app, which I'm testing in 2 android devices and 2 iOS devices, all connected to my mac. I'm doing some rapid iterations in the code (GPS, ActivityTracking, etc) and then I'm deploying to all devices, one by…
Oscar Fraxedas
  • 4,467
  • 3
  • 27
  • 32
2
votes
2 answers

Android Emulator not working with Xamarin / Visual Studio Mac

Hi i'm really struggling to get the Android emulator running on my Mac. What are the steps I need to take to get this working? I've got Visual Studio 2019 on MacOS Catalina This is on a new blank Xamarin Forms project I've tried to go Tools >…
2
votes
1 answer

dotnet Core command on mac error: "No such a file or directory"

I'm working with visual studio 2019 for mac and Im trying to create an API dotnet CORE project, but I have some issues at execute this command dotnet ef dbcontext Scaffold "ConnectionString" Microsoft.EntityFrameworkCore.SqlServer -o Models -c…
alejo
  • 21
  • 2
2
votes
2 answers

Failed to create IPA archive after upgrade to Xcode 11.4.1, VS for Mac 8.5.4, and Xamarin.iOS 13.16

After upgrading to the latest versions of Visual Studio for Mac, Xamarin, and Xcode, I am unable to create a signed IPA archive. Everything runs on the simulator, everything builds fine in my release configuration. I can even create the archive just…
Granicus
  • 854
  • 10
  • 19
2
votes
1 answer

How to change the default naming convention of generated fields in VisualStudio Mac in C#?

I am having a hard time finding this option, if it exists. By default, when VSMac generates a field it creates it as "this.fieldName" I prefer using underscore for iVars so I would like to fix it so that it creates it as "_fieldName" by default.…
Sev
  • 883
  • 1
  • 14
  • 34
2
votes
0 answers

Specflow 3.1 + .NET core Visual studio mac does not show feature files nor does it understand the gherkin

I'm trying to setup a .NET core (3.1) test project on Visual Studio (8.4.7) with Specflow (3.1) on my Mac. I have added the Specflow extension to VS and for the NuGet packages, have added Specflow, Specflow.MsTest, Specflow.NetCore and…
saltillokid11
  • 83
  • 1
  • 1
  • 6
2
votes
2 answers

Visual Studio for Mac - System.InvalidOperationException: Resource not found: wear-frame-round-390.png

I've just installed the latest version of Visual Studio Community 2019 for Mac. I'm attempting to develop a wearOS app. When selecting Wear OS Round 390x390 as the device in the XML editor, I receive the following error below when attempting to view…
Bhav
  • 1,957
  • 7
  • 33
  • 66
2
votes
1 answer

Can I embed a file in a .NET Core executable and read it at runtime?

I have some JSON files in the same folder as my project which I can read from disk with my C# (.NET Core 3.1) app, and I'd like to read them at runtime, yet compile the whole solution to one executable. I believe something similar was possible with…
deeBo
  • 836
  • 11
  • 24