Deb creation, setting the install path? #28

Closed
opened 2026-01-29 16:27:39 +00:00 by claunia · 3 comments
Owner

Originally created by @danielmoncada on GitHub (May 2, 2018).

Is there any way we can set the install path for a deb package? Right now, it defaults to /usr/share, I'd like to specify a different directory, such as /opt/<company name>/

Originally created by @danielmoncada on GitHub (May 2, 2018). Is there any way we can set the install path for a deb package? Right now, it defaults to` /usr/share`, I'd like to specify a different directory, such as `/opt/<company name>/`
Author
Owner

@qmfrederik commented on GitHub (May 3, 2018):

You should be able to set the Prefix property in your .csproj file.

The default /usr/share prefix is calculated here.

So if you add:

<PropertyGroup>
  <Prefix>/opt/my-company</Prefix>
</PropertyGroup>

the dotnet deb command should pick up that path.

@qmfrederik commented on GitHub (May 3, 2018): You should be able to set the Prefix property in your `.csproj` file. The default `/usr/share` prefix is calculated [here](https://github.com/qmfrederik/dotnet-packaging/blob/d8052a1c7c04cbc1e8e3440e18c351d5890df526/Packaging.Targets/build/Packaging.Targets.targets#L55). So if you add: ```xml <PropertyGroup> <Prefix>/opt/my-company</Prefix> </PropertyGroup> ``` the `dotnet deb` command should pick up that path.
Author
Owner

@danielmoncada commented on GitHub (May 3, 2018):

@qmfrederik thank you very much. great work on this. 👍

on a side note, are there plans to support .net core 2.1?

@danielmoncada commented on GitHub (May 3, 2018): @qmfrederik thank you very much. great work on this. 👍 on a side note, are there plans to support .net core 2.1?
Author
Owner

@qmfrederik commented on GitHub (Sep 5, 2018):

@danielmoncada It seems like I've answered your question, so I'll go ahead and close this issue for now :). I also believe we're compatible with .NET Core 2.1, let me know if you find any issues.

@qmfrederik commented on GitHub (Sep 5, 2018): @danielmoncada It seems like I've answered your question, so I'll go ahead and close this issue for now :). I also believe we're compatible with .NET Core 2.1, let me know if you find any issues.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/dotnet-packaging#28