Skip to content

Commit

Permalink
Don't restore packages on every dotnet publish run
Browse files Browse the repository at this point in the history
  • Loading branch information
odinserj committed Sep 20, 2024
1 parent 57202af commit 85218d4
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions psake-project.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ Include "packages\Hangfire.Build.0.5.0\tools\psake-common.ps1"

Task Default -Depends Pack

Task Publish -Depends Clean -Description "Compile all the projects in a solution." {
Exec { dotnet publish -f net461 -r win7-x86 -c Release }
Exec { dotnet publish -f net461 -r win7-x64 -c Release }
Exec { dotnet publish -f netcoreapp3.1 -c Release }
Exec { dotnet publish -f net5.0 -c Release }
Exec { dotnet publish -f net6.0 -c Release }
Exec { dotnet publish -f net8.0 -c Release }
Task Publish -Depends Restore -Description "Compile all the projects in a solution." {
Exec { dotnet publish --no-restore -f net461 -r win7-x86 -c Release }
Exec { dotnet publish --no-restore -f net461 -r win7-x64 -c Release }
Exec { dotnet publish --no-restore -f netcoreapp3.1 -c Release }
Exec { dotnet publish --no-restore -f net5.0 -c Release }
Exec { dotnet publish --no-restore -f net6.0 -c Release }
Exec { dotnet publish --no-restore -f net8.0 -c Release }
}

Task Merge -Depends Publish -Description "Run ILMerge /internalize to merge assemblies." {
Expand Down

0 comments on commit 85218d4

Please sign in to comment.