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

Pass data between two Content Page;

I am fairly new to programming in Maui. Previously, I wrote android applications in Xamarin. I have question. How to transfer variables between two Content Page. I try this way: I have two content page, MainPage and SettingsPage. This is how I send…
2
votes
1 answer

What does the orange angle-bracket file/navigator icon in VS Code mean?

I haven't had any issues with using Visual Studio until now, I am on a Mac, but until recently now when I load the app my files will have this angle backet as a icon in the tab name and list name. no reason of this to be happen as far as im…
2
votes
0 answers

Visual Studio for Mac 2022 - missing 'Web and Console'

after updating Visual Studio 2019 To 2022, I can't create a console app anymore. I expected to have something like this: I tried to reinstall VS few times and tick all items below but still not work:
2
votes
1 answer

Cannot run or debug .NET MAUI app on MacOS using Visual Studio 2022 Preview

I've created a new MAUI project and made no changes to this. I am not sure what's missing as I've installed the necessary things (Xcode, Cocoa Android) as part of the install process. How do I run or debug the app on MacOS? The Debug command brings…
2
votes
1 answer

Unable to add image to xcassets in Xamarin.iOS project with Visual Studio 2022

I have recently updated to Visual Studio for Mac 2022 and since then I have been having the following issue: I am unable to add new images to the Media.xcassets folder On VS for Mac 2019 I was able to achieve this within Visual Studio, now when I…
Toxic Tom
  • 174
  • 12
2
votes
1 answer

Set Xamarin Project Build Version in Visual Studio for Mac 17.0

Looks like Microsoft has changed a few things in Visual Studio for Mac 17.0. I can't find where I can set the build number for my project. I only see project version but the build number field seems gone -- see below. The problem is that when I…
Sam
  • 26,817
  • 58
  • 206
  • 383
2
votes
0 answers

How can I run my HTML code on Visual Studio 2019 on macOS?

I'm currently using Visual Studio 2019 on my Mac. I want to run my code, but when I run the code, my webpage looks completely different. None of the code I write shows up, instead it's a Welcome page. I'm very new to using Visual Studio on a Mac, I…
2
votes
1 answer

Unable to debug unit tests in Visual Studio 2022 Mac (preview)

I'm developing a solution and I'm using Visual Studio 2022 for the Mac on a Mac Mini M1. The VS build is 6509 (latest i think). I can debug my web-site w/o issue I can RUN unit tests w/o issue But if I try to DEBUG my unit tests (I'm using xunit)…
Jake
  • 906
  • 10
  • 23
2
votes
0 answers

Which keychain should I install my iOS Developer certificate in?

I have generated and downloaded an iOS Development certificate. I double clicked the file, as instructed. Which keychain should I install it in? I get An error occurred. Unable to import "iphone Developer:...". Error -25294 if I select the…
Andy Joiner
  • 5,932
  • 3
  • 45
  • 72
2
votes
0 answers

azure function v4 is not detected by default by vs 2022 for mac

I have installed Azure funciton v4 and ie the default runtime for the azure function core tools. But while debugging the azure funciton using VS 2022 for Mac it is starting the azure function v3 and while looking at the source it seems it is using…
Sowmyan Soman
  • 853
  • 1
  • 9
  • 21
2
votes
0 answers

Blazor: Intellisense not suggesting using statements on Razor files (on Visual Studio for Mac)

VS intellisense suggesting the namespaces to import does not seem to work for me when working with .razor files. For example: I've already added the nuget package for Azure Blob Storage and it ought to have suggested @using Azure.Storage.Blobs for…
Jay Sidri
  • 6,271
  • 3
  • 43
  • 62
2
votes
2 answers

Native Xamarin.Android app keeps crashing in release mode

I have a native Xamarin.Android app I've built a few years back and I've been maintaining it since then. Lately, I tried to build a new release but the app keeps crashing. I did tens of releases in the past using the same project and compilation…
Boris88
  • 297
  • 2
  • 14
2
votes
2 answers

Why can't Visual Studio fro Mac run node?

I've installed Visual Studio for Mac community 8.10.11 and created a new Project based on React + .net Core WebAPI. But If I try to run the app, I got /Users/xxx/Projects/yyy/yyy/yyy.csproj(5,5): Warning MSB3073: The command "node --version" exited…
Gerrit
  • 2,515
  • 5
  • 38
  • 63
2
votes
0 answers

Debugging an iOS app on an M1 Mac from Visual Studio for Mac?

With the new M1 Mac:s, it is possible to run iOS apps, even apps distributed via AppCenter. But, is it possible to deploy and debug a Xamarin iOS app directly to an M1 Mac from Visual Studio for Mac? Apparently, XCode supports debugging iOS apps…
Anders Gustafsson
  • 15,837
  • 8
  • 56
  • 114
2
votes
0 answers

How to stop Visual Studio on Mac breaking on exceptions

Short Version Can I tell Visual Studio 2019 for Mac to stop breaking on exceptions? It's very annoying Long Version I am using Visual Studio 2019 on a Mac. I'm trying to run some Appium automation in debug mode. I'm using the Appium Wait command to…
Swats
  • 67
  • 9