【发布时间】:2019-07-01 05:47:33
【问题描述】:
我需要为每个操作系统(win-32、win-64、Linux)构建 1 个版本。 在 Visual Studio 中,您可以选择何时发布:依赖于框架和可移植。但我需要在 Jenkins 上完成。
我试过使用命令:
dotnet publish myapp.csproj --self-contained false --configuration Release --runtime ??? --output "С:\myapp"
但运行时:“any”、“portable”不起作用。
VS如何构建依赖params框架和可移植的? 我没有使用 MSBuild、dotnet build 或 dotnet MSBuild,因为发布命令添加了一些独特的文件(web.config、资源)并删除了无用的文件(dep*.json)。
【问题讨论】:
标签: c# jenkins .net-core msbuild