anchor.diff:  
   <strong><%= modified_date %></strong>
   
  -This topic describes how to push Cloud Foundry apps using the .NET Core buildpack. You can find supported ASP.NET Core versions in the .NET Core buildpack [release notes](https://github.com/cloudfoundry/dotnet-core-buildpack/releases).
  +This topic describes how to push Cloud Foundry apps using the .NET Core buildpack. You can find supported ASP.NET Core versions in the [.NET Core buildpack release notes](https://github.com/cloudfoundry/dotnet-core-buildpack/releases).
   
  -<p class="note">
  -  <strong>Note</strong>: The .NET Core buildpack only works with <a href="https://www.microsoft.com/net/core">ASP.NET Core</a>. For apps which are not based on this new toolchain, please refer to the legacy <a href="#legacy">.NET buildpack.</a>
  -</p>
  +<p class="note"><strong>Note</strong>: The .NET Core buildpack only works with <a href="https://www.microsoft.com/net/core">ASP.NET Core</a>. For apps which are not based on this toolchain, refer to the legacy <a href="#legacy">.NET buildpack.</a></p>
   
   ## <a id='pushing_apps'></a> Push an App ##
   
  -Cloud Foundry automatically uses the .NET Core buildpack when:
  +Cloud Foundry automatically uses the .NET Core buildpack when one or more of the following conditions are met:
   
   - The pushed app contains one or more `*.csproj` or `*.fsproj` files.
   - The pushed app contains one or more `project.json` files.
  
positive.code: Specify any non-default package sources in the `NuGet.Config` file.
  
  For a basic example, see this [Hello World sample](https://github.com/IBM-Bluemix/aspnet-core-helloworld).
  4
  ## <a id='cli_tools'></a> .NET Core SDKs ##
  
  The first several releases of the .NET Core SDKs used `project.json` files for project build configuration. However, the current release of the .NET Core SDK uses MSBuild as its build tool, which uses `*.csproj` and `*.fsproj` files for configuration.
  
  Currently, the .NET Core buildpack includes both types of SDKs. If the pushed app contains a `global.json` file, the buildpack will install the version specfied by that file. Otherwise, the buildpack will choose the SDK to install as follows:
  
  1. If the app only contains `project.json` files, install the latest SDK that supports this configuration.
  2. If the app only contains `*.csproj` and `*.fsproj` files, install the latest SDK that uses MSBuild.
  3. If the app contains both file types without a `global.json`, the buildpack will throw an error as it cannot determine the proper SDK to install.
  
  <p class="note">
    <strong>Note</strong>: Microsoft has removed support for project.json from the <a href="https://blogs.msdn.microsoft.com/dotnet/2016/11/16/announcing-net-core-tools-msbuild-alpha/">.NET Core SDK tools.</a>. As such, support for project.json apps in the buildpack will soon be deprecated.
  </p>
  
  
  
  ## <a id='port'></a>Configure the Listen Port ##
  
  For your .NET Core app to work on Cloud Foundry, you must modify the `Main` method to make the app listen on the port specified by the `$PORT` environment variable, which Cloud Foundry sets automatically.
  
  1. Open the file that contains your `Main` method.
  
  1. Add a `using` statement to the top of the file:
  
      ```c#
      using Microsoft.Extensions.Configuration;
  
negative.code:     ```
      This allows the buildpack to pass the correct port from `$PORT` to the app when running the initial startup command.
  
  1. Remove the following line from the `Main` method:
  
      ```c#
      .UseContentRoot(Directory.GetCurrentDirectory())
      ```
  
  1. Add the following line after `.UseKestrel()`:
  
      ```c#
      .UseConfiguration(config)
      ```
  
  1. Add `Microsoft.Extensions.Confugration.CommandLine` as a dependency using one of the following:
      - `project.json`:
          
  		  ```json
          "Microsoft.Extensions.Configuration.CommandLine": "1.0.0",
          ```
      - `*.csproj`:
  
          ```xml
          <PackageReference Include="Microsoft.Extensions.Configuration.CommandLine">
              <Version>1.0.0</Version>
          </PackageReference>
          ```
  
  1. Remove the following line from the `Startup` method:
  
  