Skip to content

Commit 61448dc

Browse files
committed
fixup! Implemented flag skip-duplicate for dotnet publish command
1 parent 8a3494d commit 61448dc

File tree

4 files changed

+1711
-386
lines changed

4 files changed

+1711
-386
lines changed

build/Build.fsproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
<None Include="Properties\launchSettings.json" />
1010
<Compile Include="BinLog.fs" />
1111
<Compile Include="MSBuild.fs" />
12+
<Compile Include="NuGet.fs" />
1213
<Compile Include="DotNet.fs" />
1314
<Compile Include="Helpers.fs" />
1415
<Compile Include="Program.fs" />

build/DotNet.fs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1807,6 +1807,7 @@ module DotNet =
18071807
let internal buildNugetPushArgs (param : NuGet.NuGetPushParams) =
18081808
[
18091809
param.DisableBuffering |> argOption "disable-buffering"
1810+
param.SkipDuplicate |> argOption "skip-duplicate"
18101811
param.ApiKey |> Option.toList |> argList2 "api-key"
18111812
param.NoSymbols |> argOption "no-symbols"
18121813
param.NoServiceEndpoint |> argOption "no-service-endpoint"
@@ -1830,15 +1831,11 @@ module DotNet =
18301831
/// </summary>
18311832
type NuGetPushOptions = {
18321833
Common : Options
1833-
/// When pushing multiple packages to an HTTP(S) server,
1834-
/// treats any 409 Conflict response as a warning so that other pushes can continue. (<c>--skip-duplicate</c>)
1835-
SkipDuplicate : bool
18361834
PushParams : NuGet.NuGetPushParams
18371835
} with
18381836

18391837
static member Create () = {
18401838
Common = Options.Create ()
1841-
SkipDuplicate = false
18421839
PushParams = NuGet.NuGetPushParams.Create ()
18431840
}
18441841

0 commit comments

Comments
 (0)