friism / dotnet-buildpack-old

ASP.NET buildpack. Deploys app on of Mono with XSP and nginx.
MIT License
102 stars 40 forks source link

No *.sln file found #5

Open ilkerinanc opened 10 years ago

ilkerinanc commented 10 years ago

Hi,

I have an ASP.NET application with Global.asax file. And my application does not have an .sln file. When I try to push my app to heroku, I got the following error:

-----> Fetching custom git buildpack... done
-----> ASP.NET app detected
-----> Bundling XSP v3.0.11
Fetching 3.0.11 @ http://s3.amazonaws.com/mono-dependencies/xsp-3.0.11.tar.gz
-----> Bundling Mono v3.2.8
Fetching Mono v3.2.8 @ http://s3.amazonaws.com/mono-dependencies/mono-3.2.8.tar.gz
Copying xsp libraries to the GAC
-----> Fetching fixed NuGet.targets
-----> No *.sln file found

 !     Push rejected, failed to compile ASP.NET app

From what I understand from https://github.com/friism/heroku-buildpack-mono/blob/master/bin/compile compiler looks for an .sln file and when it can not find it terminates the push.

But in the readme file it says The buildpack will detect your app as ASP.NET if it has the file global.asax in the root or at one directory depth or as .NET if it has a .sln file.

How can we solve this? Thanks

friism commented 10 years ago

Hm, that's a bug in the docs, actually - currently a solution file is required so that xbuild can be invoked. What are you trying to build?

ilkerinanc commented 10 years ago

Well, to be honest I don't have any ASP.NET experience, and I'm trying to push a client's application to heroku. All I know is it is an ASP.NET MVC 4.0 application. Application's tree looks like this:

screen shot 2014-02-23 at 3 15 38 pm

friism commented 10 years ago

Hm, it looks like it's been compiled already - that scenario is not really supported with the way the buildpack is currently implemented, I'm afraid. You push source code, it gets built and then deployed.