- If you create an ASP.NET Core project from within Visual Studio for Mac, you can see it debugs quite well (at least on my machine). So if you do want to know what happens to your project, compare it with the project template.
- I installed Visual Studio for Mac about a week ago and started work on a new ASP.NET Core project. E in Visual Studio for Mac visual studio for mac Under Consideration. Jose Miguel Torres [MSFT] commented 4 days ago. Debugging problems with Visual Studio for Mac 7.6.1 (build 9).
- There is a bug with VSMac 7.0 that affects ASP.NET Core projects if there were missing files in the Sdk directory. Which may not be the problem you are seeing. Which may not be the problem you are seeing.
- If you create an ASP.NET Core project from within Visual Studio for Mac, you can see it debugs quite well (at least on my machine). So if you do want to know what happens to your project, compare it with the project template.
- At this morning’s Connect(); 2016 keynote, Nat Friedman and James Montemagno introduced Visual Studio for Mac, the newest member of the Visual Studio family.Visual Studio for Mac is a developer environment optimized for building mobile and cloud apps with Xamarin and.NET.
The Visual Studio for Mac Team. Visual Studio (UserVoice) Visual Studio Team Services. Add SQL Server integration so that it's easier to build end to end mobile and web apps that contain Web API Core and Entity Framework Core. It would be AMAZING to be able to develop/debug/run Service Fabric applications on Mac.
Visual Studio for Mac provides a full-featured Integrated Development Environment (IDE) for developing .NET Core applications. This topic walks you through building a simple console application using Visual Studio for Mac and .NET Core.
Note
Your feedback is highly valued. There are two ways you can provide feedback to the development team on Visual Studio for Mac:
- In Visual Studio for Mac, select Help > Report a Problem from the menu or Report a Problem from the Welcome screen, which will open a window for filing a bug report. You can track your feedback in the Developer Community portal.
- To make a suggestion, select Help > Provide a Suggestion from the menu or Provide a Suggestion from the Welcome screen, which will take you to the Visual Studio for Mac Developer Community webpage.
Prerequisites
See the Prerequisites for .NET Core on Mac topic.
Check the .NET Core Support guide to ensure you're using a supported version of .NET Core.
Get started
If you've already installed the prerequisites and Visual Studio for Mac, skip this section and proceed to Creating a project. Follow these steps to install the prerequisites and Visual Studio for Mac:
Download the Visual Studio for Mac installer. Run the installer. Read and accept the license agreement. During the install, select the option to install .NET Core. You're provided the opportunity to install Xamarin, a cross-platform mobile app development technology. Installing Xamarin and its related components is optional for .NET Core development. For a walk-through of the Visual Studio for Mac install process, see Visual Studio for Mac documentation. When the install is complete, start the Visual Studio for Mac IDE.
Creating a project
- Select New on the Start Window.
- In the New Project dialog, select App under the .NET Core node. Select the Console Application template followed by Next.
- If you have more than one version of .NET Core installed, select the target framework for your project.
- Type 'HelloWorld' for the Project Name. Select Create.
- Wait while the project's dependencies are restored. The project has a single C# file, Program.cs, containing a
Program
class with aMain
method. TheConsole.WriteLine
statement will output 'Hello World!' to the console when the app is run.
Run the application
Run the app in Debug mode using ⌘ ↵ (command + enter) or in Release mode using ⌥ ⌘ ↵ (option + command + enter).
Next step
The Building a complete .NET Core solution on macOS using Visual Studio for Mac topic shows you how to build a complete .NET Core solution that includes a reusable library and unit testing.
ASP.NET Core is the open-source, cross-platform evolution of Microsoft’s ASP.NET web framework. It can run on Windows, Mac, and Linux, and provides a powerful platform for building MVC-style web applications and REST APIs.
Whether you’re an experienced .NET developer looking to dive into ASP.NET Core, or new to the entire .NET ecosystem, this tutorial is designed to give you everything you need to get started!
Your first step is to install the .NET Core SDK on your machine. The download page includes packages for Windows, Mac, and Linux. From there, the steps required to scaffold a new ASP.NET Core project depend on whether or not you choose to use Visual Studio. Don’t worry, I’ll walk you through the setup process both ways!
Using Visual Studio
If you’re on Windows, Visual Studio is a rich development experience designed for .NET developers. The free Community Edition works just fine with ASP.NET Core! Regardless of the edition you use, ensure it’s up to date with at least the 2015 Update 3 installed.
To create a new project, choose File > New > Project and pick the .NET Core > ASP.NET Core Web Application (.NET Core) template. Then, pick either the Web API or Web Application templates. If you want to include boilerplate authentication support, click Change Authentication and pick an option. Or, leave it on No Authentication if you’ll be adding security yourself (with Stormpath, we hope!). Finally, click OK to scaffold a new project.
The template can run on top of IIS Express, or utilize the Kestrel HTTP server. By clicking the arrow to the right of the Start button in the toolbar, you can choose whether to run using IIS Express or Kestrel.
Press F5 to compile and run the project, and then point your browser at http://localhost:5000 (or your IIS Express port). When you see the default welcome page you’ll know you’re all set up!
Without Visual Studio
Unlike the ASP.NET of the past, you don’t need Visual Studio to build and debug ASP.NET Core applications! If you’re on Mac or Linux, or simply want a lightweight development option, you can use Visual Studio Code, Sublime, Atom, or your favorite text editor to write ASP.NET Core applications.
When you install the .NET Core SDK on your machine, the
dotnet
command line tool is added to your PATH. You should be able to run this on the command line:2 | 1.0.0-preview2-003121 |
To create a new project, you’ll need the Yeoman ASP.NET Generator. Once the generator is installed, use it to scaffold a new project:
2 |
Yeoman will display a menu of templates to choose from. Pick the Web Application or Web API Application template and type a name for your project.
Then, navigate inside the new directory and use
dotnet
to restore the necessary packages and run your project:2 4 | dotnet restore |
After the project compiles, the default web server (Kestrel) will start up. Try pointing your browser to https://localhost:5000. When you see the default welcome page, your application is running!
Usb Debugging Is Disabled By Server Policy
Conclusion
Mac Visual Studio For Mac Debugging Is Disabled .net Core
I suppose there could be a reason or two that you’re not yet using ASP.NET Core, but setup pain certainly isn’t one of them. Even on a Mac or Linux machine installation and setup are a breeze. Ready to deploy your first ASP.NET Core application, or interested in learning more about authentication and user management for .NET? Check out these resources:
– Tutorial: Build an ASP.NET Core Application with User Authentication
– Token Authentication in ASP.NET Core
– Tutorial: Deploy an ASP.NET Core Application on Linux with Docker
– Tutorial: Build an ASP.NET Core Application with User Authentication
– Token Authentication in ASP.NET Core
– Tutorial: Deploy an ASP.NET Core Application on Linux with Docker
If you have any questions, or just want to chat, reach out to me via email or on Twitter @nbarbettini!