小编Kam*_*yga的帖子

发布外部包

我想从FAKE发布nuget包.但我不使用NuGet来创建这些包.我在一些项目中安装了OctoPack,我正在使用/ p运行build:RunOctoPack = True.这会将.nupkg文件转储到bin目录中.然后我如何收集这些包并将它们推送到NuGet服务器?我似乎无法让NuGetPublish和FileIncludes一起工作.

编辑:现在我使用ExecProcess解决了这个问题

Target "Publish" (fun _ ->
    let result = ExecProcess (fun info ->  
                   info.FileName <- "MySolution/.nuget/NuGet.exe"
                   info.WorkingDirectory <- "MySolutionDirectory"
                   info.Arguments <- "push \"**/bin/**/*.nupkg\" -s http://my-nuget-server") TimeSpan.MaxValue

    if result <> 0 then failwithf "NuGet.exe push returned with a non-zero exit code"
Run Code Online (Sandbox Code Playgroud)

)

f# f#-fake f#-fake-4

7
推荐指数
1
解决办法
592
查看次数

标签 统计

f# ×1

f#-fake ×1

f#-fake-4 ×1