Add support for --no-build and --no-publish #151

Open
opened 2026-01-29 16:30:42 +00:00 by claunia · 0 comments
Owner

Originally created by @sduffy77 on GitHub (Dec 22, 2024).

I would like the ability to add a call to dotnet-deb after a successful publish from Visual Studio however since the tool calls the build and publish it just continually repeats the calls until out of memory or canceled.

Here's what I was thinking the target would look like in the csproj.


I did see mention of a action in one of the articles I've read recently however I could not find any documentation on it's usage so if that's a better option please let me know.

Originally created by @sduffy77 on GitHub (Dec 22, 2024). I would like the ability to add a call to dotnet-deb after a successful publish from Visual Studio however since the tool calls the build and publish it just continually repeats the calls until out of memory or canceled. Here's what I was thinking the target would look like in the csproj. <Target Name="AfterPublishTasks" AfterTargets="Publish" DependsOnTargets="PostBuildMacros"> <Exec Command="dotnet deb [project name] --no-restore --no-build --no-publish" /> </Target> I did see mention of a <CreateDeb> action in one of the articles I've read recently however I could not find any documentation on it's usage so if that's a better option please let me know.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/dotnet-packaging#151