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

Unable to update Azure Functions Core Tools in Visual Studio Mac

I'm developing an Azure Functions App which has a variety of different triggers (HTTP, QUEUE, TIMER and SignalR). They work fine when I'm developing on my Work PC (Windows) but they don't work when I'm developing at home on my Mac. I get the…
Chris A
  • 144
  • 2
  • 11
4
votes
0 answers

How can I stop the Create New Method helper from showing in Visual Studio Community on the Mac OS?

I don't think I am using a new version of VS but now this helper keeps on appearing and it's hard to get rid of so I can resume typing. I keep clicking esc and then after a few more clicks or if I decide to remove some spaces in the params it…
Alan2
  • 23,493
  • 79
  • 256
  • 450
4
votes
1 answer

Xamarin forms AppIcon.xcassets causing error on upload.

I'm getting the following errors when uploading my app to TestFlight. However, I don't see any place for the missing icons in the Xamarin assets menu. (76x76, 167x167, and 152x152) I thought I could work around it by editing the Contents.json…
Edie W.
  • 667
  • 2
  • 9
  • 24
4
votes
2 answers

Xamarin.iOS versions mismatch 11.14

I am on current Visual Studio Version 15.8.4 which contain Xamarin.iOS 11.14.0.13. Today I updated my Visual Studio for Mac and automatically updated Xamarin.iOS to version 12.0.0.15 (based on he Xcode 10 final release) which is not compatible. I…
4
votes
2 answers

Xamarin.Forms targeting macOS

I am using Visual Studio for Mac 7.6.6 to create a Xamarin.Forms app targeting macOS (to be shared with something running on Windows). I create a new Project and select Multiplatform App | Blank Forms App. Click Next Configure your Blank Forms…
David Ching
  • 1,903
  • 17
  • 21
4
votes
2 answers

Visual Studio Community for Mac - Change browser from Safari to Chrome

In VS on windows I have the option to change which browser I debug with. On my Mac I'm not getting an option to change the browser. Any ideas how I can do this?
alketraz
  • 171
  • 1
  • 10
4
votes
5 answers

'CSC : error CS1902: Invalid option 'portable' for /debug; must be full or pdbonly'

I get this error continuously on mac VS 7.4.3 when trying to run simple web form. CSC : error CS1902: Invalid option 'portable' for /debug; must be full or pdbonly I have tried manually updating .csproj file with: portable
Dr Upvote
  • 8,023
  • 24
  • 91
  • 204
4
votes
0 answers

How to compile and run C# project from terminal (Mac OS)

I want to compile and run C# project on Mac OS server. There's no GUI to use, so I need to compile and run it from terminal. I copied the directory of my C# project from my local to the server. (My C# project was created by visual studio for mac.)…
Phannakan
  • 81
  • 1
  • 9
4
votes
1 answer

Visual Studio for MAC - support of roslyn analyzers

Does Visual Studio for Mac support roslyn analyzers, especially Microsoft.CodeAnalysis.FxCopAnalyzers?
Oleksandr Galperin
  • 320
  • 1
  • 4
  • 15
4
votes
2 answers

What are these asterisks when I generate a constructor with 2D arrays as parameters in Visual Studio?

In Visual Studio for Mac, if I wrote something like this: public class Foo { public int[,] Property1 { get; } } Put the cursor on the empty line there, and press Command + I to generate a constructor: And this happens: public class Foo { …
Sweeper
  • 213,210
  • 22
  • 193
  • 313
4
votes
0 answers

.Net Core CLI tool not available in Visual Studio Mac

tl;dr - custom .Net Core CLI tool not found when running as a pre-build step in Visual Studio Mac. Full Story - I have developed a custom .Net Core CLI tool, let's call it ConfigTool. This tool was developed as a .Net Core console application, and…
e.beyer
  • 173
  • 2
  • 12
4
votes
1 answer

Where are the packages on Visual Studio Mac 7.3.3?

After a update on the VS, and clean all my projects and can't see where are the packages downloaded/stored. Are not in my project(s) folder anywhere. However, I can build and run ok.
mamcx
  • 15,916
  • 26
  • 101
  • 189
4
votes
1 answer

Write Xamarin version information in Console or file

Currently, to get Xamarin version information we need to do the following: Xamarin Studio Xamarin Studio > About Xamarin Studio > Show Details > Copy Information [button] I need to have these information in a file or writing them in a console. Do we…
Anas EL HAJJAJI
  • 1,048
  • 2
  • 10
  • 22
4
votes
2 answers

Visual Studio for Mac - Support for UWP

According to this: https://en.wikipedia.org/wiki/.NET_Framework#.NET_Core it shows that .net core supports four-cross platform scenarios: ASP.NET Core web apps Command-line apps Libraries Universal Windows Platform apps What I want to know is,…
TheOne
  • 43
  • 1
  • 5
4
votes
4 answers

Unable to restore nuget packages in Visual Studio for Mac & dotnet core with slow (Bolivian) internet

I'm having problem restoring packages for a dotnet core 2.0 project here in Bolivia. Back home in The Netherlands I have no problems restoring the packages, but here it breaks. I'm getting a lot of errors like: Failed to download package…