{"action":"created","comment":{"url":"https://api.github.com/repos/aspnet/Docs/pulls/comments/103017984","pull_request_review_id":23793035,"id":103017984,"diff_hunk":"@@ -1,81 +1,71 @@\n ---\n title: Build an ASP.NET Core app on a Mac Using Visual Studio Code | Microsoft Docs\n-author: ardalis\n-description: This article will walk you through creating your first web application on a Mac using the Yeoman generator for ASP.NET Core and Visual Studio Code\n+author: spboyer\n+description: This article will walk you through creating your first web application on a Mac using the dotnet CLI for ASP.NET Core and Visual Studio Code\n keywords: ASP.NET Core, macOS, Yeoman, generator-aspnet, Visual Studio Code\n ms.author: riande\n manager: wpickett\n-ms.date: 10/14/2016\n+ms.date: 02/22/2017\n ms.topic: article\n ms.assetid: dcc08e09-e73e-4feb-84ce-8219b7e544ef\n ms.technology: aspnet\n ms.prod: aspnet-core\n uid: tutorials/your-first-mac-aspnet\n ---\n-# Your First ASP.NET Core Application on a Mac Using Visual Studio Code\n-\n-By [Daniel Roth](https://github.com/danroth27), [Steve Smith](http://ardalis.com), [Rick Anderson](https://twitter.com/RickAndMSFT), and [Shayne Boyer](https://twitter.com/spboyer)\n+# Your first ASP.NET Core application on a Mac using Visual Studio Code\n \n This article will show you how to write your first ASP.NET Core application on a Mac.\n \n-## Setting Up Your Development Environment\n-\n-To setup your development machine download and install [.NET Core](https://microsoft.com/net/core) and [Visual Studio Code](https://code.visualstudio.com) with the [C# extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode.csharp). Node.js and npm is also required. If not already installed visit [nodejs.org](https://nodejs.org/en/download/package-manager/#osx).\n+## Setting up your development environment\n \n-## Scaffolding Applications Using Yeoman\n+To setup your development machine download and install [.NET Core](https://microsoft.com/net/core) and [Visual Studio Code](https://code.visualstudio.com) with the [C# extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode.csharp).\n \n-We will be using `yo aspnet` to generate the **Web Application Basic** template, you may follow the full instructions in [Building Projects with Yeoman](../client-side/yeoman.md) to create an ASP.NET Core project which show an **Empty Web** for reference.\n+## Scaffolding applications using dotnet new\n \n-Install the necessary yeoman generators and bower using npm.\n+We will be using `dotnet new` to generate a new web application using the \"Empty Web Template\". Create a working directory for your project called _firstmacapp_ and change the directory to the newly created folder.\n \n-```console\n-npm install -g yo generator-aspnet bower\n-   ```\n+Start Visual Studio Code and open the _firstmacapp_ folder. Press Ctrl + '`' (the back-quote character) to open an embedded terminal in VS Code. (Alternatively, you can use a separate terminal window, if you prefer).\n \n-Run the ASP.NET Core generator\n+Run the `dotnet new` command to create a new web application, passing the `mvc` parameter as the template type.\n \n ```console\n-yo aspnet\n-   ```\n-\n-* Select **Web Application Basic [without Membership and Authorization]** and tap Enter\n-\n-* Select Bootstrap (3.3.6) as the UI framework and tap Enter\n+dotnet new mvc\n+```\n \n-* Use \"MyFirstApp\" for the app name and tap Enter\n-\n-When the generator completes scaffolding the files, it will instruct you to restore, build, and run the application.\n+When the CLI command completes; the following output and files are produced.\n \n ```console\n-Your project is now created, you can use the following commands to get going\n-       cd \"MyFirstApp\"\n-       dotnet restore\n-       dotnet build (optional, build will also happen with it's run)\n-       dotnet run\n-   ```\n-\n-## Developing ASP.NET Core Applications on a Mac With Visual Studio Code\n+Content generation time: 79.6691 ms\n+The template \"Empty ASP.NET Core Web Application\" created successfully.\n+```\n \n-* Start **Visual Studio Code**\n+* Startup.cs : [Startup Class](../fundamentals/startup.md) - class configures the request pipeline that handles all requests made to the application.\n+* Program.cs : [Program Class](../fundamentals/) that contains the Main entry point of the application.\n+* firstmacapp.csproj : [Project file](https://docs.microsoft.com/en-us/dotnet/articles/core/preview3/tools/csproj) MSBuild Project file format for ASP.NET Core applications. Contains Project to Project references, NuGet References and other project related items.\n+* appsettings.json / appsettings.Development.json : Environment base app settings configuration file. [See Configuration](../fundamentals/configuration).\n+* bower.json : Bower package dependencies for the project.\n+* .bowerrc : Bower configuration file which defines where to install the components when Bower downloads the assets.\n+* bundleconfig.json : configuration files for bundling and minifying front-end JavaScript and CSS assets.\n+* Views : Contains the Razor views for the Controllers as well as Shared Views. Views are the components that display the app's user interface (UI). Generally, this UI displays the model data.\n+* Controllers : Contains MVC Controllers, initially _HomeController.cs_. Controllers are Classes that handle browser requests, retrieve model data, and then specify view templates that return a response to the browser.\n+* wwwroot : Web application root folder.\n \n-* Tap **File > Open** and navigate to your ASP.NET Core app\n+For more on the MVC pattern see [What is the MVC pattern?](../mvc/overview).\n \n-![File menu](your-first-mac-aspnet/_static/file-open.png)\n+## Developing ASP.NET Core applications on a Mac with Visual Studio Code\n \n-When the application is opened, Visual Studio Code will prompt to restore the needed project dependencies as well as add build and debug dependencies.\n+Select the _Program.cs_ file and Visual Studio Code will prompt to restore the needed project dependencies as well as add build and debug dependencies.","path":"aspnetcore/tutorials/your-first-mac-aspnet.md","position":94,"original_position":94,"commit_id":"9d56bb774e05044ce229f8321a55c171a666893a","original_commit_id":"9d56bb774e05044ce229f8321a55c171a666893a","user":{"login":"Rick-Anderson","id":3605364,"avatar_url":"https://avatars.githubusercontent.com/u/3605364?v=3","gravatar_id":"","url":"https://api.github.com/users/Rick-Anderson","html_url":"https://github.com/Rick-Anderson","followers_url":"https://api.github.com/users/Rick-Anderson/followers","following_url":"https://api.github.com/users/Rick-Anderson/following{/other_user}","gists_url":"https://api.github.com/users/Rick-Anderson/gists{/gist_id}","starred_url":"https://api.github.com/users/Rick-Anderson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rick-Anderson/subscriptions","organizations_url":"https://api.github.com/users/Rick-Anderson/orgs","repos_url":"https://api.github.com/users/Rick-Anderson/repos","events_url":"https://api.github.com/users/Rick-Anderson/events{/privacy}","received_events_url":"https://api.github.com/users/Rick-Anderson/received_events","type":"User","site_admin":false},"body":"Don't we use `*` for italic?","created_at":"2017-02-24T19:43:47Z","updated_at":"2017-02-24T19:46:59Z","html_url":"https://github.com/aspnet/Docs/pull/2831#discussion_r103017984","pull_request_url":"https://api.github.com/repos/aspnet/Docs/pulls/2831","_links":{"self":{"href":"https://api.github.com/repos/aspnet/Docs/pulls/comments/103017984"},"html":{"href":"https://github.com/aspnet/Docs/pull/2831#discussion_r103017984"},"pull_request":{"href":"https://api.github.com/repos/aspnet/Docs/pulls/2831"}}},"pull_request":{"url":"https://api.github.com/repos/aspnet/Docs/pulls/2831","id":107867274,"html_url":"https://github.com/aspnet/Docs/pull/2831","diff_url":"https://github.com/aspnet/Docs/pull/2831.diff","patch_url":"https://github.com/aspnet/Docs/pull/2831.patch","issue_url":"https://api.github.com/repos/aspnet/Docs/issues/2831","number":2831,"state":"open","locked":false,"title":"Update First App on a Mac ","user":{"login":"spboyer","id":7681382,"avatar_url":"https://avatars.githubusercontent.com/u/7681382?v=3","gravatar_id":"","url":"https://api.github.com/users/spboyer","html_url":"https://github.com/spboyer","followers_url":"https://api.github.com/users/spboyer/followers","following_url":"https://api.github.com/users/spboyer/following{/other_user}","gists_url":"https://api.github.com/users/spboyer/gists{/gist_id}","starred_url":"https://api.github.com/users/spboyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spboyer/subscriptions","organizations_url":"https://api.github.com/users/spboyer/orgs","repos_url":"https://api.github.com/users/spboyer/repos","events_url":"https://api.github.com/users/spboyer/events{/privacy}","received_events_url":"https://api.github.com/users/spboyer/received_events","type":"User","site_admin":false},"body":"- Switch yeoman for dotnet cli\r\n- update screen shots\r\n- Fixes #2726 \r\n- added information about files that are generated. Fixes #1842 \r\n\r\nNo code samples to update.\r\n\r\ncc:/ @danroth27 @Rick-Anderson @tdykstra ","created_at":"2017-02-24T16:56:59Z","updated_at":"2017-02-24T19:46:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"277763d430665daa0b2a1e2ba9b4c27d55f56b97","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/aspnet/Docs/pulls/2831/commits","review_comments_url":"https://api.github.com/repos/aspnet/Docs/pulls/2831/comments","review_comment_url":"https://api.github.com/repos/aspnet/Docs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/aspnet/Docs/issues/2831/comments","statuses_url":"https://api.github.com/repos/aspnet/Docs/statuses/9d56bb774e05044ce229f8321a55c171a666893a","head":{"label":"aspnet:issue-2726","ref":"issue-2726","sha":"9d56bb774e05044ce229f8321a55c171a666893a","user":{"login":"aspnet","id":6476660,"avatar_url":"https://avatars.githubusercontent.com/u/6476660?v=3","gravatar_id":"","url":"https://api.github.com/users/aspnet","html_url":"https://github.com/aspnet","followers_url":"https://api.github.com/users/aspnet/followers","following_url":"https://api.github.com/users/aspnet/following{/other_user}","gists_url":"https://api.github.com/users/aspnet/gists{/gist_id}","starred_url":"https://api.github.com/users/aspnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aspnet/subscriptions","organizations_url":"https://api.github.com/users/aspnet/orgs","repos_url":"https://api.github.com/users/aspnet/repos","events_url":"https://api.github.com/users/aspnet/events{/privacy}","received_events_url":"https://api.github.com/users/aspnet/received_events","type":"Organization","site_admin":false},"repo":{"id":28239455,"name":"Docs","full_name":"aspnet/Docs","owner":{"login":"aspnet","id":6476660,"avatar_url":"https://avatars.githubusercontent.com/u/6476660?v=3","gravatar_id":"","url":"https://api.github.com/users/aspnet","html_url":"https://github.com/aspnet","followers_url":"https://api.github.com/users/aspnet/followers","following_url":"https://api.github.com/users/aspnet/following{/other_user}","gists_url":"https://api.github.com/users/aspnet/gists{/gist_id}","starred_url":"https://api.github.com/users/aspnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aspnet/subscriptions","organizations_url":"https://api.github.com/users/aspnet/orgs","repos_url":"https://api.github.com/users/aspnet/repos","events_url":"https://api.github.com/users/aspnet/events{/privacy}","received_events_url":"https://api.github.com/users/aspnet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/aspnet/Docs","description":"Documentation for ASP.NET and ASP.NET Core","fork":false,"url":"https://api.github.com/repos/aspnet/Docs","forks_url":"https://api.github.com/repos/aspnet/Docs/forks","keys_url":"https://api.github.com/repos/aspnet/Docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aspnet/Docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aspnet/Docs/teams","hooks_url":"https://api.github.com/repos/aspnet/Docs/hooks","issue_events_url":"https://api.github.com/repos/aspnet/Docs/issues/events{/number}","events_url":"https://api.github.com/repos/aspnet/Docs/events","assignees_url":"https://api.github.com/repos/aspnet/Docs/assignees{/user}","branches_url":"https://api.github.com/repos/aspnet/Docs/branches{/branch}","tags_url":"https://api.github.com/repos/aspnet/Docs/tags","blobs_url":"https://api.github.com/repos/aspnet/Docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aspnet/Docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aspnet/Docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/aspnet/Docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aspnet/Docs/statuses/{sha}","languages_url":"https://api.github.com/repos/aspnet/Docs/languages","stargazers_url":"https://api.github.com/repos/aspnet/Docs/stargazers","contributors_url":"https://api.github.com/repos/aspnet/Docs/contributors","subscribers_url":"https://api.github.com/repos/aspnet/Docs/subscribers","subscription_url":"https://api.github.com/repos/aspnet/Docs/subscription","commits_url":"https://api.github.com/repos/aspnet/Docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/aspnet/Docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/aspnet/Docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/aspnet/Docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/aspnet/Docs/contents/{+path}","compare_url":"https://api.github.com/repos/aspnet/Docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aspnet/Docs/merges","archive_url":"https://api.github.com/repos/aspnet/Docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aspnet/Docs/downloads","issues_url":"https://api.github.com/repos/aspnet/Docs/issues{/number}","pulls_url":"https://api.github.com/repos/aspnet/Docs/pulls{/number}","milestones_url":"https://api.github.com/repos/aspnet/Docs/milestones{/number}","notifications_url":"https://api.github.com/repos/aspnet/Docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aspnet/Docs/labels{/name}","releases_url":"https://api.github.com/repos/aspnet/Docs/releases{/id}","deployments_url":"https://api.github.com/repos/aspnet/Docs/deployments","created_at":"2014-12-19T17:38:02Z","updated_at":"2017-02-24T18:13:24Z","pushed_at":"2017-02-24T19:21:38Z","git_url":"git://github.com/aspnet/Docs.git","ssh_url":"git@github.com:aspnet/Docs.git","clone_url":"https://github.com/aspnet/Docs.git","svn_url":"https://github.com/aspnet/Docs","homepage":"https://docs.microsoft.com/aspnet","size":477648,"stargazers_count":983,"watchers_count":983,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2213,"mirror_url":null,"open_issues_count":218,"forks":2213,"open_issues":218,"watchers":983,"default_branch":"master"}},"base":{"label":"aspnet:csproj","ref":"csproj","sha":"306d16771c64a48b4bd73eb72ed9c1ad4fa87439","user":{"login":"aspnet","id":6476660,"avatar_url":"https://avatars.githubusercontent.com/u/6476660?v=3","gravatar_id":"","url":"https://api.github.com/users/aspnet","html_url":"https://github.com/aspnet","followers_url":"https://api.github.com/users/aspnet/followers","following_url":"https://api.github.com/users/aspnet/following{/other_user}","gists_url":"https://api.github.com/users/aspnet/gists{/gist_id}","starred_url":"https://api.github.com/users/aspnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aspnet/subscriptions","organizations_url":"https://api.github.com/users/aspnet/orgs","repos_url":"https://api.github.com/users/aspnet/repos","events_url":"https://api.github.com/users/aspnet/events{/privacy}","received_events_url":"https://api.github.com/users/aspnet/received_events","type":"Organization","site_admin":false},"repo":{"id":28239455,"name":"Docs","full_name":"aspnet/Docs","owner":{"login":"aspnet","id":6476660,"avatar_url":"https://avatars.githubusercontent.com/u/6476660?v=3","gravatar_id":"","url":"https://api.github.com/users/aspnet","html_url":"https://github.com/aspnet","followers_url":"https://api.github.com/users/aspnet/followers","following_url":"https://api.github.com/users/aspnet/following{/other_user}","gists_url":"https://api.github.com/users/aspnet/gists{/gist_id}","starred_url":"https://api.github.com/users/aspnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aspnet/subscriptions","organizations_url":"https://api.github.com/users/aspnet/orgs","repos_url":"https://api.github.com/users/aspnet/repos","events_url":"https://api.github.com/users/aspnet/events{/privacy}","received_events_url":"https://api.github.com/users/aspnet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/aspnet/Docs","description":"Documentation for ASP.NET and ASP.NET Core","fork":false,"url":"https://api.github.com/repos/aspnet/Docs","forks_url":"https://api.github.com/repos/aspnet/Docs/forks","keys_url":"https://api.github.com/repos/aspnet/Docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aspnet/Docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aspnet/Docs/teams","hooks_url":"https://api.github.com/repos/aspnet/Docs/hooks","issue_events_url":"https://api.github.com/repos/aspnet/Docs/issues/events{/number}","events_url":"https://api.github.com/repos/aspnet/Docs/events","assignees_url":"https://api.github.com/repos/aspnet/Docs/assignees{/user}","branches_url":"https://api.github.com/repos/aspnet/Docs/branches{/branch}","tags_url":"https://api.github.com/repos/aspnet/Docs/tags","blobs_url":"https://api.github.com/repos/aspnet/Docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aspnet/Docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aspnet/Docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/aspnet/Docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aspnet/Docs/statuses/{sha}","languages_url":"https://api.github.com/repos/aspnet/Docs/languages","stargazers_url":"https://api.github.com/repos/aspnet/Docs/stargazers","contributors_url":"https://api.github.com/repos/aspnet/Docs/contributors","subscribers_url":"https://api.github.com/repos/aspnet/Docs/subscribers","subscription_url":"https://api.github.com/repos/aspnet/Docs/subscription","commits_url":"https://api.github.com/repos/aspnet/Docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/aspnet/Docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/aspnet/Docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/aspnet/Docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/aspnet/Docs/contents/{+path}","compare_url":"https://api.github.com/repos/aspnet/Docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aspnet/Docs/merges","archive_url":"https://api.github.com/repos/aspnet/Docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aspnet/Docs/downloads","issues_url":"https://api.github.com/repos/aspnet/Docs/issues{/number}","pulls_url":"https://api.github.com/repos/aspnet/Docs/pulls{/number}","milestones_url":"https://api.github.com/repos/aspnet/Docs/milestones{/number}","notifications_url":"https://api.github.com/repos/aspnet/Docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aspnet/Docs/labels{/name}","releases_url":"https://api.github.com/repos/aspnet/Docs/releases{/id}","deployments_url":"https://api.github.com/repos/aspnet/Docs/deployments","created_at":"2014-12-19T17:38:02Z","updated_at":"2017-02-24T18:13:24Z","pushed_at":"2017-02-24T19:21:38Z","git_url":"git://github.com/aspnet/Docs.git","ssh_url":"git@github.com:aspnet/Docs.git","clone_url":"https://github.com/aspnet/Docs.git","svn_url":"https://github.com/aspnet/Docs","homepage":"https://docs.microsoft.com/aspnet","size":477648,"stargazers_count":983,"watchers_count":983,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2213,"mirror_url":null,"open_issues_count":218,"forks":2213,"open_issues":218,"watchers":983,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/aspnet/Docs/pulls/2831"},"html":{"href":"https://github.com/aspnet/Docs/pull/2831"},"issue":{"href":"https://api.github.com/repos/aspnet/Docs/issues/2831"},"comments":{"href":"https://api.github.com/repos/aspnet/Docs/issues/2831/comments"},"review_comments":{"href":"https://api.github.com/repos/aspnet/Docs/pulls/2831/comments"},"review_comment":{"href":"https://api.github.com/repos/aspnet/Docs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/aspnet/Docs/pulls/2831/commits"},"statuses":{"href":"https://api.github.com/repos/aspnet/Docs/statuses/9d56bb774e05044ce229f8321a55c171a666893a"}}}}
{"actor":{"display_login":"Rick-Anderson"}}