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

How to use webpack in ASP.Net Core project in Visual Studio for Mac

As title, is it possible to use webpack through Task Runner to automatically bundle (and minify) all dependency script files in Visual Studio for Mac, just like we can do that in Visual Studio 2017 for Windows. If so, and how?
William X
  • 6,751
  • 6
  • 31
  • 50
0
votes
2 answers

Visual Studio on Mac (v7.1) - Cannot deploy/publish to Azure

I cannot publish anymore my app with publish profile to Azure after updating my Visual Studio on Mac to version 7.1. I'm getting the following…
marekdano
  • 47
  • 3
  • 12
0
votes
1 answer

Visual Studio for Mac, Xamarin Forms with Refit: exited with code 1

in my Xamarin project I added Refit (site here): the solution has Profile 111. If I compile the project I receive this error: /Users/mypc/.nuget/packages/refit/3.1.0/build/netstandard1.1/refit.targets(5,5): Error MSB3073: The command "mono …
Enrico
  • 3,592
  • 6
  • 45
  • 102
0
votes
1 answer

VSTS Run Powershell Script on Mac with Parameters

I have a Xamarin.Forms project wherein the Android project is built in VSTS using a hosted build agent which runs a powershell script at run-time. I need to run the same powershell script against the Xamarin.iOS which uses an On Premise Mac Build…
Jarrod L
  • 285
  • 5
  • 16
0
votes
1 answer

Visual Studio for Mac 2017 only allows publish to Azure

Why does VS2017 for Mac only allow you to publish a .net core web api to Azure. There is no other option. Is it because I'm using the community edition? If there is no other option beside Azure, how then do I publish?
Post Impatica
  • 14,999
  • 9
  • 67
  • 78
0
votes
3 answers

Deploying ASP.NET Core App to Google App Engine using Mac Visual Studio?

I am running Visual Studio for Mac and I am truing to deploy my ASP.NET Core App to my Google App Engine project. I followed the steps described in this official guide but I got stuck in the "Install Cloud Tools for Visual Studio" step as there's no…
0
votes
0 answers

What PCL profile (or .NET standard version) is the common denominator of my Nuget Packages?

I want to upgrade a PCL project to a newer version, and am having trouble reconciling the Nuget PCL versions. I need a tool, or manual instructions to help me identify what PCL version would work for all of them. Right now I'm trying to update an…
0
votes
0 answers

screen space in Android emulator in visual studio for mac is very small

I have got the project up and running on android. But the problem with emulator is I cannot expand it to a bigger screen. Even if I expand the same amount of screen is visible. The emulator I created is nexus 5 device running android 5.0.1 and uses…
venutamizh
  • 53
  • 8
0
votes
0 answers

How to change default target Android API?

When I create a new Xamarin Android Application in Visual Studio for Mac, it uses the Automatic Target Android version of API10. Havoc ensues shortly after creating the project as Nuget packages such as Xamarin.Android.Support.v4 23.1.1 fail to…
GrantVS
  • 2,073
  • 1
  • 24
  • 27
0
votes
1 answer

Publish an Azure Web App via Visual Studio for Mac

I've created a sample asp.net core application using Visual Studio for Mac and trying to publish it to Azure. My wizard shows me nothing once opened and hangs at the Querying subscriptions step: If I go to preferences -> account - I have a similar…
Mando
  • 11,414
  • 17
  • 86
  • 167
0
votes
1 answer

Compilation error on new Xamarin Forms project

I have installed Visual Studio for Mac (7.0.1 build 24 Community Edition), generated a new project using Forms, and could not get it to compile. The error shown makes no sense to me since the code looks correct. I have not made any change to the…
0
votes
1 answer

Android Emulator became slow

I was working with Android Emulator in Visual Studio for Mac with Xamarin. It was quite fast and everything was working fine. But once I closed it before it completely loaded, and now it does not boot, staying frozen on the black screen with Android…
RadioLog
  • 582
  • 1
  • 4
  • 20
0
votes
2 answers

C# Xamarin Label Padding for iOS app

I know this question has been asked a lot but I've tried the various solutions and can't seem to find one that works. I have a label on my storyboard titled Messages. On button click, different text appears in the label. I need to pad just this…
Zailyn Tamayo
  • 112
  • 1
  • 9
0
votes
1 answer

Change Background on Timer iOS Xamarin

I am building an iOS app and I'm trying to change the background image every few seconds. I set up a timer using code from here: https://developer.xamarin.com/api/type/System.Threading.Timer/ My code looks like this: using System; using…
Zailyn Tamayo
  • 112
  • 1
  • 9
0
votes
2 answers

Objective_C Exception Thrown when debugging Xamarin C# iOS App

When I go to build and debug my iOS app, the simulator runs but I get an exception thrown and the simulator doesn't open. I'm using Visual Studio for Mac. The error is: Objective-C exception thrown.Name: NSInvalidArgumentException Reason: Could…
Zailyn Tamayo
  • 112
  • 1
  • 9