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

How do I adjust the column ruler in Visual Studio 2017 for Mac Community Edition?

The column ruler defaults to the 80th character which is way too small. How do I adjust this? (I circled it in red below) I tried looking for extensions, but according to this post I can't install things like Productivity Power Tools that give me…
Xavier L.
  • 709
  • 5
  • 21
4
votes
1 answer

Asp.NetCore 1.1->2.0 Migration Error - `System.Object' is not defined or imported

I have a project I've been messing with and adding features to, and it was aspnet core 1.1. I am migrating it to 2.0. I use Visual Studio for Mac, and it's up-to-date. I am following this…
4
votes
1 answer

Visual Studio for Mac add ADO.NET Entity Data Model template

How would I add the ADO.NET Entity Data Model template to my WebApi project in Visual Studio for Mac?
4
votes
0 answers

UsernamePasswordCredentials contains a null username or password

I am using visual studio 2017 for Mac. I am having troubling pushing the changes via its subversion. Even if I set the git username, password via terminal this IDE resets it to null and If I enter the right credentials also its not taking. But I am…
4
votes
1 answer

Could not find `SQLitePCLRaw.batteries_v2`

I have added a sqlite-net-pcl NuGet package to the Xamarin.iOS project. The app ends with the following exception: Could not find `SQLitePCLRaw.batteries_v2`referenced by assembly `SQLite-net, Version=1.1.0.0, Culture=neutral,…
Václav Dajbych
  • 2,584
  • 2
  • 30
  • 45
4
votes
2 answers

Missing type/namespace in ASP.NET Core MVC

I've created an empty ASP.NET Core Mvc project in visual studio for Mac, added a few dependencies Microsoft.AspNetCore.Mvc (1.1.2) Microsoft.AspNetCore.Mvc.Core (1.1.2) and also imported the namespaces. However, when I create a new HomeController…
Inaloz_H
  • 41
  • 2
  • 9
4
votes
1 answer

Dot NET Core Hosting Environment for Visual Studio for Mac

Trying out the new Visual Studio for Mac preview. Dotnet core mvc project compiles and runs perfectly :D:D:D Only problem is; It uses the default Hosting environment: Production. I have tried to put export ASPNETCORE_ENVIRONMENT=Development inside…
Mitch Dart
  • 1,333
  • 1
  • 12
  • 33
4
votes
0 answers

Mono Debugger Hard Crash : malloc: *** error for object / pointer being freed was not allocated

In using any type of mocks (Moq, FakeItEasy, creating proxies w/ Castle.Core, ...) I getting a hard crash in the Mono debugger while debugging tests (TDD) in Xamarin Studio or VS4M. Mono.Debugger.Soft.CommandException: Debuggee returned error code…
SushiHangover
  • 73,120
  • 10
  • 106
  • 165
4
votes
2 answers

Auto generate all inline XML documentation for a C# project

I have a project with over 100 C# classes and want to generate the documentation for every variable, property and method. In the Visual Studio macOS IDE you can do this for 1 method at a time with /// , but this is monkey work to do this for all…
Robin Bruneel
  • 1,063
  • 8
  • 22
4
votes
1 answer

ASP.NET Web API 2 on Visual Studio for Mac 2017 RC

I am new to Mac and was trying to build a Web API2 with Visual Studio 2017 for Mac. I am not able to see Web API 2 packages (Controller option is missing, I am able to create a MVC project but even when I select Empty Web Application -> Web API…
DeiJ Wrapp
  • 116
  • 1
  • 11
4
votes
2 answers

Is it possible to use DLLs with Visual Studio Mac

I have an application that uses a third party DLL. Is there a way in Visual Studio for Mac to write an application to access it the same way as I can on windows?
SteveFerg
  • 3,466
  • 7
  • 19
  • 31
4
votes
0 answers

Physical Device: Infinite hang : Trying to initialize the debugger

Device : ZTE Z716BLB01 / Android 5.1.1 We have added the device on our testing suite/environment to trace/debug end-user run-time issues but the debugger never attaches to the device. Note: Android Studio does connect and debug properly to the same…
SushiHangover
  • 73,120
  • 10
  • 106
  • 165
3
votes
2 answers

C# MAUI - Pair to Mac failed with "No receiver was found for topic xvs/idb/initialize-dotnet-sdk"

Running C# MAUI for Android/Windows and it build and runs well. Now, i want to build and run for iOS but get problems. When installed Visual studio for Mac, XCode on a Mac and using Pair to Mac I get this error: Error dotnet validation failed, an…
Alexander
  • 471
  • 4
  • 18
3
votes
2 answers

NuGet PowerShell Core Console in Visual Studio 2022 for Mac 17.3

Can someone tell me if we can access the Package manager console in VS 2022 for MAC 17.3 Thanks
3
votes
1 answer

Copilot for Visual Studio for Mac m1

I am trying to install GitHub Copilot in Visual Studio for Mac as an extension. However, there is no option "Manage Extensions" in VS for Mac as shown here. Is it possible to add it somehow?
null_user
  • 53
  • 1
  • 5