heroku-dotnet1.1-buildpack-vs2017

by PWNTechIT

GitHub Readme.md

.NET Core 1.1+ Buildpack

This is a Heroku buildpack for building .NET Core apps using .csproj files.

By the moment, it's only compatible with Cedar-14 stack, so you have to downgrade your stack if you actually use Heroku-16 Stack.

Please note: This buildpack is an experimental project and is not officially supported.

      forked from https://github.com/jaguado/dotnet-buildpack-vs2017

Usage with HerokuCLI (link)

Example usage (create a new application on heroku):

$ heroku create --buildpack https://github.com/PWNTechIT/heroku-dotnet1.1-buildpack-vs2017.git
$ git push heroku master

How to bring back your application to Cedar-14 (with Heroku CLI):

$ heroku stack:set cedar-14 [--remote xxx]

The buildpack will detect your app as .NET Core if it has .csproj.

If the source code you want to build contains multiple .csproj files, it will compile the .csproj that has the same name of your solution file .sln.

Buildpack will publish your project as "Release" Build

dotnet publish ${PROJECT_FILE} --output ${BUILD_DIR} --runtime ubuntu.14.04-x64 --configuration Release

NuGet - If additional Package Sources needed

When dotnet restore is called for restore NuGet packages, NuGet.Config placed in root directory will be used. You can specify additional <packageSources> like in the following example.

Example NuGet.Config:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <packageSources>
    <add key="NuGet" value="https://api.nuget.org/v3/index.json" />
	<add key="xxx" value="https://xxx/index.json" />
    <add key="yyy" value="https://yyy/index.json" />
  </packageSources>
</configuration>