jincod / dotnetcore-buildpack

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

Is possible to use apt-get install #183

Closed renerlemes closed 1 year ago

renerlemes commented 1 year ago

Is possible to install libgdiplus before or after the project be compiled? I would to include the command apt-get install libgdiplus

jincod commented 1 year ago

Hi @renerlemes

Do you use Heroku-22 stack? Do you have the same issue https://github.com/jincod/dotnetcore-buildpack/issues/173?

renerlemes commented 1 year ago

@jincod it's not the same issue. The application is working fine but I have one problem and it's not with the buildpack itself. I´m using Telerik Report which needs the libgdiplus to work. And I thought I'd fork your project and add these commands that I need to install the library. Could you help me with this?

The application working

https://rener-teste1.herokuapp.com image

jincod commented 1 year ago

@renerlemes try something like this https://github.com/renerlemes/dotnetcore-buildpack/commit/053ddfb26a80ee82d4c27fefd89f88f6e0b72943#diff-a64a7d9b82578ca3053416d56631a61e0ceabed87619415663030e3842429e05L34

renerlemes commented 1 year ago

@jincod tks for this solution. now it´s working! why this function was removed?

jincod commented 1 year ago

@renerlemes these packages became not-required since .net core 2.1

renerlemes commented 1 year ago

@jincod the problem is that the lib installations run in the build and not in the runtime. But I found the heroku-buildpack-apt and it worked. Tks for help!