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
1 answer

Blazor consumes too much Memory

I was testing Blazor and i found out something weird, probably something i did wrong, but the result is really weird. This is not a VM, is just my laptop (Macbook pro 16GB Ram) and 1 docker container with sql server linux. I created a new component…
2
votes
0 answers

Visual Studio fot Mac Creating Android build for iOS Target when Archived

I have been working on a Xamarin app. Recently whenever I try to create a build, the Visual Studio for Mac is incorrectly targetting tee platforms. It is creating Android build every time I use Build -> Archive All or Build -> Archive for…
Kumar C
  • 525
  • 6
  • 21
2
votes
4 answers

dotnet ef command not working after VS for Mac update

I've been using VS for Mac for a while now with EF Core 2.2 and everything's been going alright. Today I updated VS for Mac since it was really out of date, and after the update I can no longer run the dotnet ef command: Could not execute because…
riqitang
  • 3,241
  • 4
  • 37
  • 47
2
votes
1 answer

Can't add Apple Developer Account on Visual Studio

I updated VS 2019 to 8.3.8 (build 8) version on Mac Catalina 10.15.1 After that update, I can't add Apple Developer Account, I get this error: I can login in Apple portal and Apple Developer Portal with this account. Any idea?
Josecanalla
  • 455
  • 3
  • 8
  • 17
2
votes
1 answer

Xamarin UI Test - will not run tests from Visual Studio for Mac

I have three separate apps in which I am trying to create automated UI Tests. All three apps are written in Xamarin Forms, all three of these apps run in AppCenter's test cloud, and two of these apps will execute on devices and simulators locally.…
2
votes
3 answers

No option for "Add Client Side Library" on Visual Studio Mac 2019

Can't see any option to add client side library on Visual Studio for Mac 2019 (Version 8.3.3). Seems to be supported as I seen a few tutorials on a Mac for it but can't seem to find the option myself.
Conner Murphy
  • 49
  • 1
  • 8
2
votes
1 answer

How do I add an icon url to my Nuget package using Visual Studio for Mac

I set the Icon Url using the nuget properties of my .csproj in Visual Studio for Mac. However, when I deploy it to Azure Artifacts (which is like nuget.org), no image icon appears. I am also deploying using Azure Pipelines. I've also tried clearing…
2
votes
1 answer

"Unable to find package Microsoft.NETCore.App.Host.osx-x64" after upgrading to .NET Core 3.0

Today, .NET Core 3.0 was released. It became available as an update in my Visual Studio for Mac, and decided to upgrade an ASP.NET Core project from .NET Core 2.2.3 to .NET Core 3.0. I thought it would be as simple as changing the Target framework…
Glorfindel
  • 21,988
  • 13
  • 81
  • 109
2
votes
2 answers

The "LinkAssemblies" task failed unexpectedly - SB4018: System.IO.FileNotFoundException

Last week I quite suddenly got this error while building Xamarin.Android for release. Last time I built the project for release everything worked fine. The projects builds when I choose to link no assemblies, but when I use “Link SDK assemblies…
2
votes
0 answers

iOS debugging is terminated directly after it started (Xamarin.Forms / VS for Mac)

I'm currently trying to debug an iOS application (created with Xamarin.Forms) with VS for Mac (also tested through VS2019 Enterprise on Windows). Unfortunately, the debugging process is not started successfully. It stops without any exception or…
Sebastian
  • 259
  • 3
  • 18
2
votes
2 answers

Visual Studio 2019 for Mac: debugger doesn't connect to iOS device

I'm trying to debug a long suffered Xamarin app using visual studio 2019 on a brand new MacBook Pro (Mojave). The solution builds, transfers to the device and starts the app, but the debugger will connect neither via cable or wifi. A dummy project…
Matt Jacobsen
  • 5,814
  • 4
  • 35
  • 49
2
votes
2 answers

Mac to EC2 - the source control Triangle Problem - git? rsync? WTH?

I have an everyday EC2 instance. (Indeed, note that those change IPs each time you restart them, a further problem.) There's a folder/ on the instance and I have a simple (say) Node project in folder (mysql, express etc). It's a web site, let's…
Fattie
  • 27,874
  • 70
  • 431
  • 719
2
votes
1 answer

Is there a way to make Visual Studio for Mac OS recognise the case of a filename?

In VS on Mac OS when I try to rename a file then if the file exists with a different case it won't let me rename it. Is there any way around this. Seems like something I would have thought would have been fixed 20 years ago :-(
Alan2
  • 23,493
  • 79
  • 256
  • 450
2
votes
0 answers

Can't open or create projects: The type initializer for 'MonoDevelop.Projects.MSBuild.MSBuildEvaluationContext' threw an exception

This morning, I found I was unable to create or open any projects on Visual Studio Community for macOS v8.1.1 (build 27) without getting the error... The project could not be created The type initializer for…
ruffin
  • 16,507
  • 9
  • 88
  • 138
2
votes
1 answer

Visual Studio for Mac Broken After New Update - .NET Core 2.2 SDK is not compatible

I ran an update on Friday morning and everything stopped working since then. When trying to build my .NET Core projects I'm getting this error: Error: NET Core 2.2 SDK version 2.2.100 is not compatible with this version of Visual Studio for Mac.…
Daniel Wardin
  • 1,840
  • 26
  • 48