C
C#•10mo ago
Pannekoekje

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
Pobiega
Pobiega•10mo ago
you can specify it multiple times when using the CLI option not sure about the csproj property
Pannekoekje
PannekoekjeOP•10mo ago
Ah, the would work 🙂 Let me try
Pobiega
Pobiega•10mo ago
-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 RID
Pannekoekje
PannekoekjeOP•10mo ago
I'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 🙂
Pobiega
Pobiega•10mo ago
aww
Pannekoekje
PannekoekjeOP•10mo ago
Oh well, thx anyways 🙂
lycian
lycian•10mo ago
You need "RuntimeIdentifiers" with an S on the end
lycian
lycian•10mo ago
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
lycian
lycian•10mo ago
You ignore the vertical build stuff there
Pannekoekje
PannekoekjeOP•9mo ago
I see, thanks !
Want results from more Discord servers?
Add your server