I need 1 version of build for each os (win-32, win-64, Linux). From the Visual Studio, you can choose when to publish: framework dependent and portable. But I need to do it on Jenkins.
I tried use command:
dotnet publish myapp.csproj --self-contained false --configuration Release --runtime ??? --output "С:\myapp"
but runtimes: "any", "portable" does not work.
How VS build with params framework dependent and portable? I did not use MSBuild, dotnet build, or dotnet MSBuild because publish command adds some unique files(web.config, resources) and remove unuseful(dep*.json).