I tried to build a project for multiple targets. I using net 5 framework, and I want to build app for win64 and linux64 runtimes.
The problem
Missing linux 64 folder
The csproj file :
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
...
<TargetFrameworks>net48;net5.0</TargetFrameworks>
<RuntimeIdentifiers>linux-x64;win-x64</RuntimeIdentifiers>
</PropertyGroup>
then I ran cli command:
dotnet build "projectPath"
Expected folder in results (when running with --runtime linux64)