Mac Inside Microsoft

  1. Mac Inside Microsoft Email
  2. Microsoft Apps For Mac
  3. Microsoft Mac Software
-->

In this article, you'll use Visual Studio to create the traditional 'Hello World!' program. Visual Studio is a professional Integrated Development Environment (IDE) with many features designed for .NET development. You'll use only a few of the features in Visual Studio to create this program. To learn more about Visual Studio, see Getting Started with Visual C#.

Steve Jobs appreciated the risk Microsoft took, but was not content with the first results though. “Most people don’t remember, but until the Mac, Microsoft was not in the applications business it was dominated by Lotus. And Microsoft took a big gamble to write for the Mac.”.

Note

Your computer might show different names or locations for some of the Visual Studio user interface elements in the following instructions. The Visual Studio edition that you have and the settings that you use determine these elements. For more information, see Personalizing the IDE.

Mac Inside Microsoft
  • Episode 28 of the Windows Insider Podcast Learn about the future of troubleshooting, from how Microsoft is doing it through Microsoft News, to how you can do it as a Windows Insider.
  • Object Moved This document may be found here.
  • Feb 24, 2019  Inside Microsoft's Human Factors lab. Microsoft designed a tool to measure depth between forehead and eyes, to accommodate eyeglasses and make sure the.
  • Jun 12, 2019  Google Stadia and Microsoft's Project xCloud: The game streaming dream was inside us all along. Analysis: The idea for video game subscriptions has been around for years, but it'll be awhile.

Create a new application

Start Visual Studio. You'll see the following image on Windows:

Select Create a new project in the lower right corner of the image. Visual Studio displays the New Project dialog:

Note

If this is the first time you've started Visual Studio, the Recent project templates list is empty.

On the new project dialog, choose 'Console App (.NET Core)' and then press Next. Give your project a name, such as 'HelloWorld', then press Create.

Visual Studio opens your project. It's already a basic 'Hello World!' example. Press Ctrl + F5 to run your project. Visual Studio builds your project, converting the source code into an executable. Then, it launches a command window that runs your new application. You should see the following text in the window:

Press a key to close the window.

Start Visual Studio for Mac. You'll see the following image on Mac:

Note

If this is the first time you've started Visual Studio for Mac, the Recent projects list is empty.

Select New in the upper right corner of the image. Visual Studio for Mac displays the New Project dialog:

On the new project dialog, choose '.NET Core', and 'Console App' and then press Next. You'll need to select the target framework. The default is fine, so press next. Give your project a name, such as 'HelloWorld', then press Create. You can use the default project location. Don't add this project to source control.

Visual Studio for Mac opens your project. It's already a basic 'Hello World!' example. Press Ctrl + Fn + F5 to run your project. Visual Studio for Mac builds your project, converting the source code into an executable. Then, it launches a command window that runs your new application. You should see the following text in the window:

Press a key to end the session.

Elements of a C# program

Let's examine the important parts of this program. The first line contains a comment. The characters // convert the rest of the line to a comment.

You can also comment out a block of text by enclosing it between the /* and */ characters. This is shown in the following example.

A C# console application must contain a Main method, in which control starts and ends. The Main method is where you create objects and execute other methods.

The Main method is a static method that resides inside a class or a struct. In the previous 'Hello World!' example, it resides in a class named Hello. You can declare the Main method in one of the following ways:

  • It can return void. That means your program doesn't return a value.
  • It can also return an integer. The integer is the exit code for your application.
  • With either of the return types, it can take arguments.

-or-

The parameter of the Main method, args, is a string array that contains the command-line arguments used to invoke the program.

Mac Inside Microsoft

For more information about how to use command-line arguments, see the examples in Main() and Command-Line Arguments.

Input and output

C# programs generally use the input/output services provided by the run-time library of the .NET Framework. The statement System.Console.WriteLine('Hello World!'); uses the WriteLine method. This is one of the output methods of the Console class in the run-time library. It displays its string parameter on the standard output stream followed by a new line. Other Console methods are available for different input and output operations. If you include the using System; directive at the beginning of the program, you can directly use the System classes and methods without fully qualifying them. For example, you can call Console.WriteLine instead of System.Console.WriteLine:

For more information about input/output methods, see System.IO.

See also

-->

Microsoft Stream makes it easy for employees at organizations of all sizes to watch, upload, share, and discover videos within their organization from a single and secure portal.

Watch on your PC, Mac, or mobile device

It's easy to watch great quality videos from Microsoft Stream on your PC, Mac, or mobile device.Navigate to a video by selecting the a video thumbnail from your home page or from the search/browse page and the video will begin playing automatically in your browser window.

You can control your playback experience by toggling the captions on or off, changing the playback speed, or switching between regular mode and theater mode.

Some videos may have forms or quizzes embedded in them - just enter your answers and when you're done, click Continue to video.

Turn captions on or off

If a video has captions, you can turn them on or off during playback.

  1. Click the video that you want to play.

  2. Click the CC icon to turn captions on or off.

Configure captions and subtitles

Mac Inside Microsoft Email

  1. Click the video that you want to play.

  2. Click the Settings icon and select Subtitles/CC Options.

Microsoft Apps For Mac

Supported Browsers and Platforms

Stream is available to use on Microsoft Edge and up to date versions of Chrome and Safari. The following table shows the supported versions.


BrowserOS
EdgeWindows 10
IE 11Windows 10
Windows 8.1
Windows 7 (Requires Flash 30.0.0.154+)
Chrome (latest)Windows 10
Android (latest)
Mac OS (latest)
Safari (latest)Mac OS (latest)
iOS (latest)

Microsoft Mac Software

See also