Re: MVC and Visual Studio Web Express Jun 03, 2009 03:05 AM| VFC| LINK When I don't rember wrong cassini is the name of the developer web server of visual studio or at least the development web server is based on the cassini code. This tutorial teaches you the basics of building an ASP.NET Core MVC web app using Visual Studio for Mac. This tutorial teaches ASP.NET Core MVC web development with controllers and views. If you're new to ASP.NET Core web development, consider the Razor Pages version of this tutorial, which provides an easier starting point. Make sure to install the ASP.NET and web development workload 2. Create a new project. Open Visual Studio 2017 and let the fun begin! This tutorial teaches you the basics of building an ASP.NET Core MVC web app using Visual Studio for Mac. This tutorial teaches ASP.NET Core MVC web development with controllers and views. If you're new to ASP.NET Core web development, consider the Razor Pages version of this tutorial, which provides an easier starting point. Developing ASP.NET Core Applications on a Mac With Visual Studio Code ¶. Start Visual Studio Code; Tap File > Open and navigate to your Empty ASP.NET Core app; From a Terminal / bash prompt, run dotnet restore to restore the project’s dependencies. Alternately, you can enter command shift p in Visual Studio Code and then type dot as shown. You can run commands directly from within Visual.
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)).
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).
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.
I did two things.
I update the Microsoft.Net.Compliers via nuget.https://www.nuget.org/packages/Microsoft.Net.Compilers/
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
Right click on the project in the solution explorer and go to Options, Build, Compiler and change Debug information to Full
Not the answer you're looking for? Browse other questions tagged asp.net-mvcmacosvisual-studio-2015asp.net-core or ask your own question.
Since I am planning to buy a new MacBook Pro (2017) and currently working on a Windows 10-device on a ASP.NET MVC (Not ASP.NET Core MVC) project for my internship, I was wondering if it is possible to continue developing the same project in Visual Studio for Mac.
To put it in other words: Is it possible to develop ASP.NET MVC applications in Visual Studio for Mac?
I tried to Google this, but I could only find ASP.NET Core MVC projects being discussed for VS for Mac. The current project is NOT a Core project, but just an ASP.NET project.
I really don't want to install Windows either on my MacBook Pro or on an external drive.
jessehouwing

1 Answer
As you've correctly surmised, it's not possible to build ASP.NET MVC projects on the Mac that aren't based on .NET Core or Mono. So if your project is currently targetting ASP.NET on .NET Framework 4.x, the you'll either have to stay on Windows:
- Use Bootcamp to run Windows on your Mac
- Use a Virtual Machine to run Windows inside Mac
- Use Parallels Desktop or VMWare Fusion to run windows applications inside your Mac
Or you can convert your application over to Mono or .NET Core, depending on your dependencies that may be relatively easy, or very hard or anywhere in between.
You could also decide to use Visual Studio Team Services to build your code on a Windows Hosted agent and edit the sources on yoru mac, you'd have to forego the ability to compile or run your code locally.
You can also decide to 'rent' a virtual machine in Azure (maybe your have MSDN credits you could use for this purpose?) and remote desktop to that machine to work on your project.
jessehouwingjessehouwing