Меню Рубрики

Mac os net framework

Can you install and run apps built on the .NET framework on a Mac?

I need to use/continue developing a desktop app developed using .NET on my Mac. Is there a .NET framework 4.0 available for Mac? Would this allow running and developing of .NET-based apps on a Mac?

Another option that i am considering is using a windows virtual machine on the Mac.

4 Answers 4

You can use a .Net environment Visual studio, Take a look at the differences with the PC version.

A lighter editor would be Visual Code

Installing the Mono Project runtime . It allows you to re-compile the code and run it on a Mac, but this requires various alterations to the codebase, as the fuller .Net Framework is not available. (Also, WPF applications aren’t supported here either.)

Virtual machine (VMWare Fusion perhaps)

Update your codebase to .Net Core, (before choosing this option take a look at this migration process)

.Net Core 3.1 is an open-source, free and available on Window, MacOs and Linux

As of September 14, a release candidate 1 of .Net Core 5.0 has been deployed on Window, MacOs and Linux.

[1] : Release candidate (RC) : releases providing early access to complete features. These releases are supported for production use when they have a go-live license

Источник

Download .NET

Downloads for .NET Framework and .NET Core, including ASP.NET and ASP.NET Core

Not sure where to start? See the Hello World in 10 minutes tutorial to install .NET and build your first app.

.NET Core 3.1

.NET Core is a cross-platform version of .NET for building websites, services, and console apps.

.NET Framework 4.8

.NET Framework is a Windows-only version of .NET for building any type of app that runs on Windows.

.NET Core 3.1

.NET Core is a cross-platform version of .NET for building websites, services, and console apps.

.NET Core 3.1

.NET Core is a cross-platform version of .NET for building websites, services, and console apps.

.NET Core

.NET Core is a cross-platform version of .NET for building websites, services, and console apps.

.NET Framework

.NET Framework is a Windows-only version of .NET for building any type of app that runs on Windows.

Free. Cross-platform. Open source. Supported.

.NET is free. There are no fees or licensing costs, including for commercial use.

.NET is open-source and cross-platform, with free development tools for Windows, Linux, and macOS.

.NET is supported by Microsoft. Microsoft ships official releases that are built and tested on Microsoft-maintained servers in Azure and supported just like any Microsoft product.

Ready to Get Started?

Our step-by-step tutorial will help you get .NET running on your computer.

Источник

Install .NET Core on macOS

In this article, you’ll learn how to install .NET Core on macOS. .NET Core is made up of the runtime and the SDK. The runtime is used to run a .NET Core app and may or may not be included with the app. The SDK is used to create .NET Core apps and libraries. The .NET Core runtime is always installed with the SDK.

The latest version of .NET Core is 3.1.

Supported releases

The following table is a list of currently supported .NET Core releases and the versions of macOS they’re supported on. These versions remain supported either the version of .NET Core reaches end-of-support.

  • A вњ”пёЏ indicates that the version of .NET Core is still supported.
  • A вќЊ indicates that the version of .NET Core isn’t supported.
Operating System .NET Core 2.1 .NET Core 3.1 .NET 5 Preview
macOS 10.15 «Catalina» вњ”пёЏ 2.1 (Release notes) вњ”пёЏ 3.1 (Release notes) вњ”пёЏ 5.0 Preview (Release notes)
macOS 10.14 «Mojave» вњ”пёЏ 2.1 (Release notes) вњ”пёЏ 3.1 (Release notes) вњ”пёЏ 5.0 Preview (Release notes)
macOS 10.13 «High Sierra» вњ”пёЏ 2.1 (Release notes) вњ”пёЏ 3.1 (Release notes) вњ”пёЏ 5.0 Preview (Release notes)
macOS 10.12 «Sierra» вњ”пёЏ 2.1 (Release notes) вќЊ 3.1 (Release notes) вќЊ 5.0 Preview (Release notes)

Unsupported releases

The following versions of .NET Core are вќЊ no longer supported. The downloads for these still remain published:

Runtime information

The runtime is used to run apps created with .NET Core. When an app author publishes an app, they can include the runtime with their app. If they don’t include the runtime, it’s up to the user to install the runtime.

There are three different runtimes you can install on macOS:

ASP.NET Core runtime
Runs ASP.NET Core apps. Includes the .NET Core runtime.

.NET Core runtime
This runtime is the simplest runtime and doesn’t include any other runtime. It’s highly recommended that you install ASP.NET Core runtime for the best compatibility with .NET Core apps.

SDK information

The SDK is used to build and publish .NET Core apps and libraries. Installing the SDK includes both runtimes: ASP.NET Core and .NET Core.

Dependencies

.NET Core is supported on the following macOS releases:

A + symbol represents the minimum version.

.NET Core Version macOS Architectures
3.1 High Sierra (10.13+) x64 More information
3.0 High Sierra (10.13+) x64 More information
2.2 Sierra (10.12+) x64 More information
2.1 Sierra (10.12+) x64 More information

Beginning with macOS Catalina (version 10.15), all software built after June 1, 2019 that is distributed with Developer ID, must be notarized. This requirement applies to the .NET Core runtime, .NET Core SDK, and software created with .NET Core.

The installers for .NET Core (both runtime and SDK) versions 3.1, 3.0, and 2.1, have been notarized since February 18, 2020. Prior released versions aren’t notarized. If you run a non-notarized app, you’ll see an error similar to the following image:

For more information about how enforced-notarization affects .NET Core (and your .NET Core apps), see Working with macOS Catalina Notarization.

libgdiplus

.NET Core applications that use the System.Drawing.Common assembly require libgdiplus to be installed.

An easy way to obtain libgdiplus is by using the Homebrew («brew») package manager for macOS. After installing brew, install libgdiplus by executing the following commands at a Terminal (command) prompt:

Install with an installer

macOS has standalone installers that can be used to install the .NET Core 3.1 SDK:

Download and manually install

As an alternative to the macOS installers for .NET Core, you can download and manually install the SDK and runtime. Manual install is usually performed as part of continuous integration testing. For a developer or user, it’s generally better to use an installer.

If you install .NET Core SDK, you don’t need to install the corresponding runtime. First, download a binary release for either the SDK or the runtime from one of the following sites:

Next, extract the downloaded file and use the export command to set variables used by .NET Core and then ensure .NET Core is in PATH.

To extract the runtime and make the .NET Core CLI commands available at the terminal, first download a .NET Core binary release. Then, open a terminal and run the following commands from the directory where the file was saved. The archive file name may be different depending on what you downloaded.

Use the following command to extract the runtime:

Use the following command to extract the SDK:

The preceding export commands only make the .NET Core CLI commands available for the terminal session in which it was run.

You can edit your shell profile to permanently add the commands. There are a number of different shells available for Linux and each has a different profile. For example:

    Bash Shell:

/.bashrc
Korn Shell:

/.kshrc or .profile
Z Shell:

Edit the appropriate source file for your shell and add :$HOME/dotnet to the end of the existing PATH statement. If no PATH statement is included, add a new line with export PATH=$PATH:$HOME/dotnet .

Also, add export DOTNET_ROOT=$HOME/dotnet to the end of the file.

This approach lets you install different versions into separate locations and choose explicitly which one to use by which application.

Install with Visual Studio for Mac

Visual Studio for Mac installs the .NET Core SDK when the .NET Core workload is selected. To get started with .NET Core development on macOS, see Install Visual Studio 2019 for Mac. For the latest release, .NET Core 3.1, you must use the Visual Studio for Mac 8.4.

Install alongside Visual Studio Code

Visual Studio Code is a powerful and lightweight source code editor that runs on your desktop. Visual Studio Code is available for Windows, macOS, and Linux.

While Visual Studio Code doesn’t come with an automated .NET Core installer like Visual Studio does, adding .NET Core support is simple.

Install with bash automation

The dotnet-install scripts are used for automation and non-admin installs of the runtime. You can download the script from the dotnet-install script reference page.

The script defaults to installing the latest long term support (LTS) version, which is .NET Core 3.1. You can choose a specific release by specifying the current switch. Include the runtime switch to install a runtime. Otherwise, the script installs the SDK.

The command above installs the ASP.NET Core runtime for maximum compatability. The ASP.NET Core runtime also includes the standard .NET Core runtime.

Docker

Containers provide a lightweight way to isolate your application from the rest of the host system. Containers on the same machine share just the kernel and use resources given to your application.

.NET Core can run in a Docker container. Official .NET Core Docker images are published to the Microsoft Container Registry (MCR) and are discoverable at the Microsoft .NET Core Docker Hub repository. Each repository contains images for different combinations of the .NET (SDK or Runtime) and OS that you can use.

Microsoft provides images that are tailored for specific scenarios. For example, the ASP.NET Core repository provides images that are built for running ASP.NET Core apps in production.

For more information about using .NET Core in a Docker container, see Introduction to .NET and Docker and Samples.

Источник

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *

  • Mac os mysql apache php mysql
  • Mac os mp3 tag editor
  • Mac os move folder
  • Mac os mouse recorder
  • Mac os mount usb