jincod / dotnetcore-buildpack

Heroku .NET Core Buildpack
MIT License
750 stars 360 forks source link

basename: missing operand Try 'basename --help' for more information. ! Push rejected, failed to compile ASP.NET Core app. ! Push failed #168

Closed Allwyn-K-Geevarughese closed 2 years ago

Allwyn-K-Geevarughese commented 2 years ago

basename: missing operand Try 'basename --help' for more information. ! Push rejected, failed to compile ASP.NET Core app. ! Push failed... Could you please help me

jincod commented 2 years ago

Hello @Allwyn-K-Geevarughese

Could you please provide the full log?

iamfranco commented 2 years ago

Hello, I'm having the same issue. My full build log is:

-----> Building on the Heroku-20 stack
-----> Using buildpack: https://github.com/jincod/dotnetcore-buildpack
-----> Core .NET app detected
> Installing dotnet
-----> Removing old cached .NET version
-----> Fetching .NET SDK
-----> Fetching .NET Runtime
-----> Export dotnet to Path
find: ‘/tmp/build_8bd7cef7\n.\n.\n1’: No such file or directory
-----> Project File
> 
basename: missing operand
Try 'basename --help' for more information.
 !     Push rejected, failed to compile Core .NET app.
 !     Push failed

The project I'm trying to host onto heroku is https://github.com/iamfranco/DrinksWebAPI

If you could help me that would be great, many thanks.

jincod commented 2 years ago

Hello @iamfranco,

Thank you for the log. I think the error due to csproj contains spaces in the filename.

iamfranco commented 2 years ago

ah thank you so much!!

I took your advice and remove the spaces in the .csproj filename and also in the folder name, now it builds and deploys successfully👍