Dependencies, Additional Repositories? #106

Open
opened 2026-01-29 16:29:41 +00:00 by claunia · 6 comments
Owner

Originally created by @d8ahazard on GitHub (Nov 4, 2021).

So, I see a definition for "AdditionalDependencies" in the debpackage builder...but having some trouble getting it to work.

Is it possible to provide an example of how to add a list of extra app dependencies?

Also, is there an option to add another repository before trying to install said depndencies?

Originally created by @d8ahazard on GitHub (Nov 4, 2021). So, I see a definition for "AdditionalDependencies" in the debpackage builder...but having some trouble getting it to work. Is it possible to provide an example of how to add a list of extra app dependencies? Also, is there an option to add another repository before trying to install said depndencies?
Author
Owner

@qmfrederik commented on GitHub (Nov 5, 2021):

Here's how you can define additional dependencies for Deb and RPM packages:

  <ItemGroup>
    <DebDependency Include="libgdiplus (&gt;= 5.6)" />
    <RpmDependency Include="libgdiplus0" Version="5.6" />
  </ItemGroup>
@qmfrederik commented on GitHub (Nov 5, 2021): Here's how you can define additional dependencies for Deb and RPM packages: ```xml <ItemGroup> <DebDependency Include="libgdiplus (&gt;= 5.6)" /> <RpmDependency Include="libgdiplus0" Version="5.6" /> </ItemGroup> ```
Author
Owner

@qmfrederik commented on GitHub (Nov 19, 2021):

@aaronegger Do you have a sample project you can share? What's the exact error message? Are you sure you added the DebDependency/RpmDependency elements inside an ItemGroup element (and not inside a PropertyGroup)?

@qmfrederik commented on GitHub (Nov 19, 2021): @aaronegger Do you have a sample project you can share? What's the exact error message? Are you sure you added the `DebDependency`/`RpmDependency` elements inside an `ItemGroup` element (and not inside a `PropertyGroup`)?
Author
Owner

@aaronegger commented on GitHub (Nov 19, 2021):

Damn i see you were faster...
I tried to delete it before you read it, because i just found out that is indeed because i had it in an property group..

@aaronegger commented on GitHub (Nov 19, 2021): Damn i see you were faster... I tried to delete it before you read it, because i just found out that is indeed because i had it in an property group..
Author
Owner

@aaronegger commented on GitHub (Nov 19, 2021):

Sorry but i was just stupid :/

@aaronegger commented on GitHub (Nov 19, 2021): Sorry but i was just stupid :/
Author
Owner

@qmfrederik commented on GitHub (Nov 19, 2021):

@aaronegger No worries, glad I could help!

@qmfrederik commented on GitHub (Nov 19, 2021): @aaronegger No worries, glad I could help!
Author
Owner

@aaronegger commented on GitHub (Nov 19, 2021):

This leads to a question that may similar to this.
I read somewhere that i can supply the installscripts by setting a path.
But this haven't worked for me yet.
Should this also be within a subnode?

Currently i use it like that:
< PreRemoveScript >
< ![CDATA[
...
]] >
< /PreRemoveScript >

@aaronegger commented on GitHub (Nov 19, 2021): This leads to a question that may similar to this. I read somewhere that i can supply the installscripts by setting a path. But this haven't worked for me yet. Should this also be within a subnode? <PostInstallScript Path="postinst"/> Currently i use it like that: < PreRemoveScript > < ![CDATA[ ... ]] > < /PreRemoveScript >
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/dotnet-packaging#106