quamotion / dotnet-packaging

Extensions for the .NET Core CLI which help packaging and publishing .NET Core applications
MIT License
660 stars 86 forks source link

Create a RPM for specific project in solution #242

Open Motke84 opened 1 year ago

Motke84 commented 1 year ago

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?

sbannikov commented 1 year ago

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 ...