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
17
votes
0 answers

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

How can I check the code coverage of my C# Unit Tests in VS Code? The Code Coverage tool that I've used (because of it's simplicity, it is usable in the terminal) is MiniCover. The MiniCover Tool is, however, as of Jan 24 2018, only doing line…
Jesper
  • 2,044
  • 3
  • 21
  • 50
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
  • 32,319
  • 3
  • 50
  • 90
16
votes
2 answers

Conditional reference in Visual Studio Community 2017

I am creating a multi-platform application. I have a multi-targeted shared library (targeting .netstandard 2.0 and .net 4.5)...See project file: netstandard2.0;net45 When…
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
  • 27,498
  • 52
  • 145
  • 243
15
votes
3 answers

Can I update to .Net 5 NuGet packages even if I'm using .Net Core 3.1?

I was looking for some NuGet updates about my project libraries. I see that there are a lot of Microsoft libraries update to v5.0.0. Based on my knowledge I think these are new dependencies released with .Net 5.0 and I'm not sure that I can update…
E.Benedos
  • 1,585
  • 14
  • 41
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,845
  • 5
  • 53
  • 89
15
votes
5 answers

Running xUnit on Visual Studio for Mac

I am currently evaluating Visual Studio for Mac. And I ran into a little problem. It won't detect any of my xUnit unit tests. On the Windows version of VS, the tests are automatically picked up when I click on "Run all Tests". But with this version,…
Zorthgo
  • 2,857
  • 6
  • 25
  • 37
14
votes
1 answer

Set Multiple Startup Projects in Visual Studio for Mac?

Is it possible/how do I set multiple start up projects in Visual Studio for Mac? It is very easy and common to do it in VS for Windows (https://msdn.microsoft.com/en-us/library/ms165413.aspx) but struggling to find the option on VS for Mac in the…
stoater
  • 143
  • 1
  • 4
14
votes
3 answers

How to develop Windows app on Visual Studio for Mac

I recently bought an iMac in order to develop my App on Visual Studio for Mac in a better environment (lots of issues on Windows), but on the Visual Studio for mac, there is no UWP projects. It is understood that I have to create a new .NET project,…
Khal_Tech
  • 315
  • 1
  • 3
  • 13
13
votes
3 answers

Need lower version of visual studio for mac

I just want to download a lower version of Visual Studio for Mac. The current version is 7.5.1 and I want to download 7.4.3. Can anyone tell me where can I get that download file or link?
Hrishikesh
  • 498
  • 4
  • 19
13
votes
2 answers

How to enable word wrap in Visual Studio for Mac?

I found a lot of examples and methods to word wrap in Visual Studio Code but not for VS for Mac. Currently, I'm using the Enterprise edition with the latest updates.
Diomedes Domínguez
  • 1,093
  • 12
  • 22
13
votes
4 answers

Run Scaffold-DbContext on Visual Studio for Mac

I have a site that was built using database first and I'm trying to continue development of it on a mac. Normally I would run the Scaffold-dbContext using the Console Package Manager in Visual Studio. The mac version doesn't have this I tried…
Jhorra
  • 6,233
  • 21
  • 69
  • 123
12
votes
2 answers

How to Set AutoGenerateBindingRedirects in Visual Studio for Mac?

I'm currently working on a Xamarin.Forms project named ABCD, using macOS Sierra v10.12.6 and Visual Studio (VS) for Mac v7.3.2 (the set up steps are detailed here). Having successfully set that up, I continue as follows: Right-clicking the main…
user2323030
  • 1,193
  • 4
  • 16
  • 37
11
votes
1 answer

Missing required argument ''. Scafffold Dbcontext in asp.net core 2.1.MAC

Trying to do Scaffold with the existing database in mac os visual studio using terminal. Here is the command for the scaffold dotnet ef dbcontext Scaffold "Server=;Initial Catalog=;Persist Security Info=False;User…
San Jaisy
  • 15,327
  • 34
  • 171
  • 290
10
votes
5 answers

cannot get visual studio connected to mac

I've tried to get Visual Studio 2019 (Community Edition) working with a Mac to create a Mobile app iOS and Android. Unfortunatly I'm struggling the whole day wit this combination. My current issue, which I cannot solve myself is the following error…
thowa
  • 590
  • 1
  • 8
  • 29
1
2
3
69 70