If you're using dotnet core, you would probably want to use the dotnet core buildpack and the cflinuxfs3 stack (ie. Linux). The dotnet core buildpack doesn't run on Windows.
Alternatively, you could try using the HWC buildpack if you must run on Windows for some reason. This is generally used by dotnet classic apps though.
Hope that helps!