Full Visual Studio For Mac

  1. Mac Version Of Visual Studio
  2. Visual Studio On A Mac
  3. Visual Studio For Mac Os

Visual Studio Code is the first code editor, and first cross-platform development tool - supporting OSX, Linux, and Windows - in the Visual Studio family. At its heart, Visual Studio Code features a powerful, fast code editor great for day-to-day use.

Active6 months ago

I just recently swapped my MS PC for an Mac, I'm trying to continue working on an MVC project, but I'm getting an error (Error CS1902: Invalid option 'portable' for /debug; must be full or pdbonly (CS1902)).

For

Are there any good documents that explain how to make it work? I have seen people porting MVC to .NET Core, but I can't get the analyser to work on my Mac (not sure it's supported yet).

Mac Version Of Visual Studio

S.HeferS.Hefer

3 Answers

I had this same problem when trying to use Visual Studio for Mac to build a solution that works fine in Windows. Turns out the /debug:portable flag was being passed to the build command, even though the 'Debug Information' was correctly set to 'Full' in my project settings. Search the build output for 'portable' and you will indeed find the flag there regardless of your settings.

The fix is to upgrade the Microsoft.Net.Compilers nuget package. In my case, it upgraded from 1.0 to 2.7, and then the project built successfully.

Visual studio in mac
wjm03wjm03

I did two things.

Visual Studio On A Mac

  1. I update the Microsoft.Net.Compliers via nuget.https://www.nuget.org/packages/Microsoft.Net.Compilers/

  2. Change one value in the properties of project.https://johnharold.wordpress.com/2017/08/16/csc-error-cs1902-invalid-option-portable-for-debug-must-be-full-or-pdbonly-cs1902/

I wish you can solve the problem

SebastianvzSebastianvz

Right click on the project in the solution explorer and go to Options, Build, Compiler and change Debug information to Full

VelimirVelimir

Visual Studio For Mac Os

Not the answer you're looking for? Browse other questions tagged asp.net-mvcmacosvisual-studio-2015asp.net-core or ask your own question.