Target multiple architectures at once
Hey guys, I have an app I want to publish for linux-x64 and linux-arm64.
I'm using the "RunTimeIdentifier" option in the .csproj file, I tried
linux-x64;linux-arm64
but this didn't work. Can't really find an answer online, is this not possible?10 Replies
you can specify it multiple times when using the CLI option
not sure about the csproj property
Ah, the would work 🙂
Let me try
-r linux-x64 -r linux-arm64
at least I think thats how it worked
alternatively, make a bash/powershell/whatever script file that runs publish multiple times, once for each RIDI'm running it in a CI/CD I would like to check if consolidating the commands lowers the build time
" Option '-r' expects a single argument but 3 were provided."
Seems like not anymore 🙂
aww
Oh well, thx anyways 🙂
You need "RuntimeIdentifiers" with an S on the end
GitHub
razor/src/Razor/src/rzls/rzls.csproj at 68f3e8c9bfa73160d3c5a791eac...
Compiler and tooling experience for Razor ASP.NET Core apps in Visual Studio, Visual Studio for Mac, and VS Code. - dotnet/razor
You ignore the vertical build stuff there
I see, thanks !