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

How to scaffold identity files in Visual Studio 2019 for mac?

I have included AspNetCore.Identity in my MVC web app project however, the model and view files do not scaffold automatically. In Visual Studio for Windows the option to scaffold identity is in the context menu via 'Add > New Scaffolded Item'. Is…
5
votes
1 answer

Xamarin Android XamarinBuildAndroidAarRestore task could not be loaded from Xamarin.Build.Download

After upgrading all of my Xamarin Android nuget packages to the latest versions, I am now getting the following build error: /Users/justintoth/.nuget/packages/xamarin.build.download/0.4.11/build/Xamarin.Build.Download.targets(116,3): error…
Justin
  • 17,670
  • 38
  • 132
  • 201
5
votes
1 answer

Is there an environment variables config file for Mac Visual Studio?

I'm trying to port a project from Windows to Mac. On Windows, he Windows project uses environment variables that are set in the Windows system itself. On Mac it seems I have to set the environment variables from within Visual Studio on a…
Raydot
  • 1,458
  • 1
  • 23
  • 38
5
votes
3 answers

Missing Blazor WebAssembly app template for Visual Studio for Mac

I am trying to create a Blazor WebAssembly app using the latest build of Visual Studio for Mac (v8.4.6 build 36). I have .NET Core 3.1 SDK installed. I also installed the latest Blazor WebAssembly 3.2.0 Preview 1 by running: dotnet new -i…
Chris Simeone
  • 755
  • 1
  • 10
  • 26
5
votes
0 answers

Font smoothing in Visual Studio for Mac 2019

I upgraded Visual Studio for Mac 2017 to 2019 yesterday, and immediately noticed that the Subpixel rendering is switched off inside the text editor! It looks terrible. I'm running OS X Mojave where I, after having upgraded it, explicitly turned…
Anders Emil
  • 457
  • 3
  • 13
5
votes
2 answers

VS for Mac extension - null Editor in ActiveWindow

I'm trying to get into developing an extension for Visual Studio for Mac. I'm using this tutorial. Everything had been going well until I tried to run my extension. In my case "Insert date" in Edit submenu is disabled. While debugging I've noticed…
Wolen
  • 874
  • 6
  • 15
5
votes
1 answer

Is it possible to create a Windows Service with Visual Studio for Mac?

I am currently using Visual Studio for Mac and I need to create a background running service application. I realised that the only option that I have is the Console Application in VS Mac. The exe that I will create should run as a Windows Service…
thus
  • 1,326
  • 1
  • 14
  • 23
5
votes
0 answers

Mono console app on Mac: how to read/alter from ~/Library files on MacOS Mojave

Trying to migrate my mono console app to the latest MacOS (Mojave, 10.14). Unfortunately, it seems like operations to read or alter files in ~/Library are locked down. I know you can add specific apps "Full Disk Access" in Security / Privacy…
Richthofen
  • 2,076
  • 19
  • 39
5
votes
3 answers

Is TFS available in Visual Studio for Mac

I haven’t find TFS in Visual Studio for mac, Is any alternative tools available for that.
5
votes
3 answers

Visual Studio for Mac - Configuration doesn't target device. Your configuration doesn't target a valid iOS device

Error Message: Configuration doesn't target device. Your configuration doesn't target a valid iOS device I want to publish an iPhone app to App Store. So, I tried to perform Archive for Publish an iPhone App by selecting at the top main menu…
mjb
  • 7,649
  • 8
  • 44
  • 60
5
votes
0 answers

Visual Studio Community for Mac os

i am looking for the class diagram in Visual Studio Community 2017 on Mac os and I can't seem to find it, Anybody knows where it's at? thank you
Emzzzt
  • 51
  • 1
  • 4
5
votes
2 answers

Visual Studio for Mac: Cache Location

EDIT: I didn't include the fact that I was leveraging the MySql.Data package to connect to MySql via LINQ, as it didn't seem relevant. After asking the question, I switched to the LinqToDb.MySql package and the problems seems to have disappeared, so…
jamesthe500
  • 341
  • 1
  • 7
  • 10
5
votes
1 answer

Error MSB6006: "mtouch" exited with code 134. (MSB6006)

In my Visual Studio For Mac, I can run the project in simulator, but while archiving the app for publishing i am getting the error /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.iOS.Common.targets(3,3): Error MSB6006:…
5
votes
2 answers

Install AWS Toolking For Visual Studio 2017 for MAC

Is there a way I can install AWS Toolkit For Visual Studio 17 on MAC? I downloaded the toolkit from https://marketplace.visualstudio.com/items?itemName=AmazonWebServices.AWSToolkitforVisualStudio2017. If I open it with Visual Studio, it opens the…
Asdfg
  • 11,362
  • 24
  • 98
  • 175
5
votes
0 answers

BadImageFormatException in Visual Studio for Mac

I'm trying to run an MVC web project on my Mac with Visual Studio for Mac, but I get an error in the browser when it runs. The problem is that I don't fully understand, from the trace, what file causes the problem. From what I could find on Google,…
Henrik
  • 81
  • 5