"dotnet build –runtime blahblah" no longer supported, how do you build a solution for Linux?

Per this thread: https://github.com/dotnet/sdk/issues/14281

and per my own experiences screenshotted here: why, visual studio?!

How is one supposed to build a solution of .NET core/standard projects for a Linux runtime environment? I'm trying to build a Blazor WASM solution, and an ASP.NET WebAPI solution, for use in some Linux servers I have built, but apparently they turned off "dotnet build --runtime".

Other Stack Overflow answers point to using dotnet build, as well, which is apparently no longer allowed:

How to compile .NET Core app for Linux on a Windows machine

How do you compile and run .NET Core Services for Linux?

What is the proper way to do this now, especially if you have projects with dependencies on each other in the solution?



Read more here: https://stackoverflow.com/questions/67153699/dotnet-build-runtime-blahblah-no-longer-supported-how-do-you-build-a-soluti

Content Attribution

This content was originally published by Codefun64 at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: