Create a RPM for specific project in solution #137

Open
opened 2026-01-29 16:30:23 +00:00 by claunia · 1 comment
Owner

Originally created by @Motke84 on GitHub (Aug 3, 2023).

Hi,

I am trying to create RPM packages for a specific project in the solution. I am using the msbuild command on the solution file, like this:

dotnet msbuild "C:\repo\repo.sln" /t:CreateRpm ...

This command creates RPM packages for all my projects. However, I am wondering if there is a way to specify only the projects that I need to create RPM packages for. Is there a way to do this?

Originally created by @Motke84 on GitHub (Aug 3, 2023). Hi, I am trying to create RPM packages for a specific project in the solution. I am using the msbuild command on the solution file, like this: `dotnet msbuild "C:\repo\repo.sln" /t:CreateRpm ...` This command creates RPM packages for all my projects. However, I am wondering if there is a way to specify only the projects that I need to create RPM packages for. Is there a way to do this?
Author
Owner

@sbannikov commented on GitHub (Aug 5, 2023):

as far as I know, you can use such command:

dotnet rpm --output <output-dir> <projectfile>.csproj

for Debian packaging it's working

alternate method:

dotnet msbuild "C:\repo\specificProject.csproj" /t:CreateRpm ...

@sbannikov commented on GitHub (Aug 5, 2023): as far as I know, you can use such command: dotnet rpm --output <output-dir> <projectfile>.csproj for Debian packaging it's working alternate method: dotnet msbuild "C:\repo\specificProject.csproj" /t:CreateRpm ...
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/dotnet-packaging#137