我需要为每个操作系统(win-32、win-64、Linux)构建一个版本。 从Visual Studio中,你可以选择何时发布:依赖框架和便携式。但是我需要在Jenkins上完成。
我尝试使用以下命令:
dotnet publish myapp.csproj --self-contained false --configuration Release --runtime ??? --output "С:\myapp"
但是运行时:"任何","便携式" 不起作用。
如何使用参数“framework dependent”和“portable”进行VS构建? 我没有使用MSBuild、dotnet build或dotnet MSBuild,因为发布命令会添加一些独特的文件(如web.config、资源),并删除无用的(dep *.json)。