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.

873 questions
246
votes
20 answers

How to search for file names in Visual Studio?

In Eclipse you can search for a file in the project by pressing CTRL-SHIFT-R. Is there a way to do this in Visual Studio?
Edward Tanguay
  • 176,854
  • 291
  • 683
  • 1,015
50
votes
12 answers

How to open two / multiple instances of Visual Studio for MAC?

I wish to open multiple instances of VS for Mac. I used to be able to do this with Xamarin studio using the Xamarin launcher. How to do this with VS for Mac?
Gobi M
  • 3,035
  • 4
  • 29
  • 44
29
votes
5 answers

Can I open two solutions with Visual Studio for Mac at the same time?

That's it. Can this be initiated two times to open two separated solutions at the same time?
martyndev
  • 465
  • 4
  • 5
25
votes
1 answer

Installing extensions on Visual Studio 2017 mac

I am trying to install Visual Studio Market Place extensions on Visual Studio for Mac but.
22
votes
8 answers

com.apple.AuthenticationServices.Authorization Error Code 1000

I receive the following error in DidCompleteWitherror: com.apple.AuthenticationServices.Authorization Error Code 1000 I'm using the following code to sign in to Apple var appleIdProvider = new ASAuthorizationAppleIdProvider(); var request =…
22
votes
1 answer

Release build but debugging enabled

I'm trying to export an Android app. I've selected "Release | ARM". It creates a bundle and lists it in the archives section but there's a warning next to it that says, "Archive built with debugging enabled". How can that be, given that it's a…
Ian Warburton
  • 13,336
  • 19
  • 85
  • 164
21
votes
2 answers

"Inspecting the state of an object in the debuggee of type System.Reflection.MethodBase is not supported in this context"

I don't know what this error means. I am using Visual Studio for Mac 7.5.0 Community version. I am using lazy loading in Entity Framework with ASP.NET Core. public partial class AdminUser { public AdminUser() { RoleAssign = new…
San Jaisy
  • 9,586
  • 15
  • 93
  • 162
21
votes
4 answers

How to enable migrations in Visual Studio for Mac

I have Visual Studio for Mac and I'm trying to learn Xamarin with Azure using the following tutorial: https://adrianhall.github.io/develop-mobile-apps-with-csharp-and-azure/chapter3/server/ At some point, I have to enable EF migrations. The tutorial…
franswa
  • 595
  • 1
  • 5
  • 19
21
votes
3 answers

Xamarin build-times extremely slow

I have developed several (experimental and prototype) iOS apps using Xamarin and the new Visual Studio for Mac OS and the build-times intermittently take about 5-10 minutes on average. When starting a new project, build-times are fine. After a few…
Léon
  • 276
  • 1
  • 2
  • 6
18
votes
4 answers

Cant find package manager console in visual studio for mac

I am using Visual studio for mac. I need to install some packages but I can't find package manager console for that. Visual studio version: Preview 1 (7.0 build 347)
Sahil Sharma
  • 3,027
  • 3
  • 29
  • 71
17
votes
2 answers

False C# compiler warning?

Ok, this is a far stretched corner case we stumbled upon, but it made me curious. Consider the following code: public class Foo { private int foo; public int Reset() => foo = 0; //remember, assignment expressions …
InBetween
  • 30,991
  • 3
  • 46
  • 80
17
votes
2 answers

Visual Studio for Mac how to collapse regions and methods

I couldn't find a way to collapse/expand regions and sections from Visual Studio for Mac. If someone could share how to do that, it would be very useful.
Jzrzmy
  • 232
  • 2
  • 10
16
votes
5 answers

CSC: error CS0041: Unexpected error writing debug information -- 'Operation is not supported on this platform.'

Just downloaded Visual Studio Professional for Mac and I cannot seem to build anything as I always get the same error: /Library/Frameworks/Mono.framework/Versions/4.8.0/lib/mono/xbuild/14.0/bin/Microsoft.CSharp.targets (CoreCompile target) -> CSC:…
Slee
  • 24,982
  • 48
  • 139
  • 237
15
votes
2 answers

Dependencies not flowing between dependent projects, causing System.IO.FileNotFoundException

Let's say my solution has 2 projects: The first called "MainProject" (A .NETStandard 2.0 project). The second called "MainProjectTests" (A NUnit test project) with some unit tests for each class into "MainProject". The first project (MainProject)…
Bruno Peres
  • 15,178
  • 5
  • 43
  • 71
14
votes
0 answers

Code Coverage Tool for C# with VS Code for Mac OSx

I've never used any Code Coverage tool before, but want to use it for my recently written Unit Tests. I've googled and googled but couldn't find any tutorials showing code cover-tools using Visual Studio Code for Mac OSx programming in C#. Does…
Jesper
  • 1,819
  • 3
  • 12
  • 40
1
2 3
58 59