Skip to content

Latest commit

 

History

History
21 lines (11 loc) · 1.65 KB

CrossPlatformSupport.md

File metadata and controls

21 lines (11 loc) · 1.65 KB

Cross-platform Support

Cross-platform support is sometimes also referred to as multi-platform support.

Building on Different Platforms

Whether you are developing on macOS or Windows, on ARM or Intel, on a 32-bit or 64-bit machine, the developer experience for Scaffold has been designed to be consistent as much as possible. For the most consistent cross-platform experience, we recommend using a 64-bit development machine with Visual Studio Code (vscode) as your Integrated Development Environment (IDE).

Building for Different Platforms

.NET

The default publishing mode framework-dependent in .NET Core or .NET 5 and later applications produces cross-platform binaries ending in .dll. Applications published in this way can be run with the dotnet <filename.dll> command and can be run on any platform where a compatible version of .NET is installed. Platform-specific executables are also produced but can be switched off.

It is also possible to specify the target platform when publishing platform-specific executables.

For more information about publishing .NET applications, please visit the .NET application publishing overview.

Docker

Building container images that target different platforms is possible with Docker Buildx. It is also possible to put images that target different platforms under the same image name and tag when pushing to a container registry. For information on how to do this, please check out the Leverage multi-CPU architecture support page in the Docker documentation.