fixed branding (#2246)
This commit is contained in:
Родитель
d1926add69
Коммит
69006b9434
|
@ -216,7 +216,7 @@ _themes.pdf/
|
|||
log/
|
||||
.optemp/
|
||||
.openpublishing.buildcore.ps1
|
||||
# Spelling add-on file for VS Code.
|
||||
# Spelling add-on file for Visual Studio Code.
|
||||
spell.json
|
||||
samples/framework/docker/MVCRandomAnswerGenerator/containerImage
|
||||
.DS_Store
|
||||
|
|
|
@ -27,7 +27,7 @@ When building Docker images for developers, we focused on three main scenarios:
|
|||
|
||||
Why three images?
|
||||
When developing, building and running containerized applications, we have different priorities.
|
||||
- **Development:** How fast can you iterate changes, and the ability to debug the changes. The size of the image isn't as important, rather can you make changes to your code and see them quickly. Some of our tools, like [yo docker](https://aka.ms/yodocker) for use in VS Code use this image during development time.
|
||||
- **Development:** How fast can you iterate changes, and the ability to debug the changes. The size of the image isn't as important, rather can you make changes to your code and see them quickly. Some of our tools, like [yo docker](https://aka.ms/yodocker) for use in Visual Studio Code use this image during development time.
|
||||
- **Build:** What's needed to compile your app. This includes the compiler and any other dependencies to optimize the binaries. This image isn't the image you deploy, rather it's an image you use to build the content you place into a production image. This image would be used in your continuous integration, or build environment. For instance, rather than installing all the dependencies directly on a build agent, the build agent would instance a build image to compile the application with all the dependencies required to build the app contained within the image. Your build agent only needs to know how to run this Docker image.
|
||||
- **Production:** How fast you can deploy and start your image. This image is small so it can quickly travel across the network from your Docker Registry to your Docker hosts. The contents are ready to run enabling the fastest time from Docker run to processing results. In the immutable Docker model, there's no need for dynamic compilation of code. The content you place in this image would be limited to the binaries and content needed to run the application. For example, the published output using `dotnet publish` which contains the compiled binaries, images, .js and .css files. Over time, you'll see images that contain pre-jitted packages.
|
||||
|
||||
|
@ -188,7 +188,7 @@ api debug 70e89fbc5dbe a few seconds ago
|
|||
|
||||
Another way to generate the image and run the application within the Docker container is to open the application in Visual Studio Code and use the debugging tools.
|
||||
|
||||
Select the debugging icon in the View Bar on the left side of VS Code.
|
||||
Select the debugging icon in the View Bar on the left side of Visual Studio Code.
|
||||
|
||||
![vscode debugging icon](./media/building-net-docker-images/debugging_debugicon.png)
|
||||
|
||||
|
|
|
@ -43,7 +43,7 @@ Install .NET Core on your distribution/version:
|
|||
You can get started developing .NET Core apps by following these step-by-step tutorials.
|
||||
|
||||
* [Getting started with .NET Core using the command-line](tutorials/using-with-xplat-cli.md) - Use any code editor with the [.NET Core cross-platform command-line interface (CLI)](tools/index.md).
|
||||
* [Get started with VS Code using C# and .NET Core on Ubuntu](https://channel9.msdn.com/Blogs/dotnet/Get-started-with-VS-Code-Csharp-dotnet-Core-Ubuntu) - This [Channel9](https://channel9.msdn.com) video shows you how to install and use [Visual Studio Code](https://code.visualstudio.com/), Microsoft's lightweight cross-platform code editor, to create your first console application in .NET Core on Ubuntu 14.04.
|
||||
* [Get started with Visual Studio Code using C# and .NET Core on Ubuntu](https://channel9.msdn.com/Blogs/dotnet/Get-started-with-VS-Code-Csharp-dotnet-Core-Ubuntu) - This [Channel9](https://channel9.msdn.com) video shows you how to install and use [Visual Studio Code](https://code.visualstudio.com/), Microsoft's lightweight cross-platform code editor, to create your first console application in .NET Core on Ubuntu 14.04.
|
||||
|
||||
.NET Core is supported by the Linux distributions and versions listed above in the installation links.
|
||||
|
||||
|
@ -53,8 +53,8 @@ Install .NET Core for [macOS](https://www.microsoft.com/net/core#macos). .NET Co
|
|||
|
||||
You can get started developing .NET Core apps by following these step-by-step tutorials.
|
||||
|
||||
* [Get started with VS Code using C# and .NET Core on macOS](https://channel9.msdn.com/Blogs/dotnet/Get-started-VSCode-NET-Core-Mac) - This [Channel9](https://channel9.msdn.com) video shows you how to install and use [Visual Studio Code](https://code.visualstudio.com/), Microsoft's lightweight cross-platform code editor, to create your first console application in .NET Core.
|
||||
* [Getting started with .NET Core on macOS, using Visual Studio Code](tutorials/using-on-macos.md) - A tour of the steps and workflow to create a .NET Core Solution using VS Code that includes unit tests, third-party libraries and how to use the debugging tools.
|
||||
* [Get started with Visual Studio Code using C# and .NET Core on macOS](https://channel9.msdn.com/Blogs/dotnet/Get-started-VSCode-NET-Core-Mac) - This [Channel9](https://channel9.msdn.com) video shows you how to install and use [Visual Studio Code](https://code.visualstudio.com/), Microsoft's lightweight cross-platform code editor, to create your first console application in .NET Core.
|
||||
* [Getting started with .NET Core on macOS, using Visual Studio Code](tutorials/using-on-macos.md) - A tour of the steps and workflow to create a .NET Core Solution using Visual Studio Code that includes unit tests, third-party libraries and how to use the debugging tools.
|
||||
* [Getting started with .NET Core using the command-line](tutorials/using-with-xplat-cli.md) - Use any code editor with the [.NET Core cross-platform command-line interface (CLI)](tools/index.md).
|
||||
* [Getting started with .NET Core on macOS using Visual Studio for Mac](tutorials/using-on-mac-vs.md) - This tutorial shows you how to build a simple .NET Core console application using Visual Studio for Mac.
|
||||
* [Building a complete .NET Core solution on macOS using Visual Studio for Mac](tutorials/using-on-mac-vs-full-solution.md) - This tutorial shows you how to build a complete .NET Core solution that includes a reusable library and unit testing.
|
||||
|
|
|
@ -13,7 +13,7 @@ ms.assetid: c33b1241-ab66-4583-9eba-52cf51146f5a
|
|||
|
||||
# Prerequisites for .NET Core on Mac
|
||||
|
||||
This article shows you the supported macOS versions and .NET Core dependencies that you need to develop, deploy, and run .NET Core applications on macOS machines. The supported OS versions and depdendencies that follow apply to the three ways of developing .NET Core apps on a Mac: via the [command-line with your favorite editor](tutorials/using-with-xplat-cli.md), [Visual Studio Code (VS Code)](https://code.visualstudio.com/), and [Visual Studio for Mac](https://www.visualstudio.com/vs/visual-studio-mac/).
|
||||
This article shows you the supported macOS versions and .NET Core dependencies that you need to develop, deploy, and run .NET Core applications on macOS machines. The supported OS versions and dependencies that follow apply to the three ways of developing .NET Core apps on a Mac: via the [command-line with your favorite editor](tutorials/using-with-xplat-cli.md), [Visual Studio Code](https://code.visualstudio.com/), and [Visual Studio for Mac](https://www.visualstudio.com/vs/visual-studio-mac/).
|
||||
|
||||
## Supported macOS versions
|
||||
|
||||
|
|
|
@ -50,7 +50,7 @@ When you migrate a project, the project and all its dependencies are migrated.
|
|||
Files that were migrated (*project.json*, *global.json* and *.xproj*) will be moved to a *backup* folder.
|
||||
|
||||
> [!NOTE]
|
||||
> If you are using VS Code, the `dotnet migrate` command will not modify VS Code-specific files such as `tasks.json`. These files need to be changed manually.
|
||||
> If you are using Visual Studio Code, the `dotnet migrate` command will not modify Visual Studio Code-specific files such as `tasks.json`. These files need to be changed manually.
|
||||
> This is also true if you are using Project Ryder or any editor or Integrated Development Environment (IDE) other than Visual Studio.
|
||||
|
||||
See [A mapping between project.json and csproj properties](../tools/project-json-to-csproj.md) for a comparison of project.json and csproj formats.
|
||||
|
|
|
@ -31,7 +31,7 @@ Let's start with a quick refresher on Preview 2 layering as shown in the followi
|
|||
|
||||
![Preview 2 tools high-level architecture](media/cli-msbuild-architecture/p2-arch.png)
|
||||
|
||||
The layering of the tools is quite simple. At the bottom we have the .NET Core Command Line tools as a foundation. All other, higher-level tools such as Visual Studio or VS Code, depend and rely on the CLI to build projects, restore dependencies and so on. This meant that, for example, if Visual Studio wanted to perform a restore operation, it would call into `dotnet restore` command in the CLI.
|
||||
The layering of the tools is quite simple. At the bottom we have the .NET Core Command Line tools as a foundation. All other, higher-level tools such as Visual Studio or Visual Studio Code, depend and rely on the CLI to build projects, restore dependencies and so on. This meant that, for example, if Visual Studio wanted to perform a restore operation, it would call into `dotnet restore` command in the CLI.
|
||||
|
||||
With the move to the new project system, the previous diagram changes:
|
||||
|
||||
|
|
|
@ -22,15 +22,15 @@ This document provides the steps and workflow to create a .NET Core solution for
|
|||
|
||||
Install the [.NET Core SDK](https://www.microsoft.com/net/core). The .NET Core SDK includes the latest release of the .NET Core framework and runtime.
|
||||
|
||||
Install [Visual Studio Code](http://code.visualstudio.com). During the course of this article, you also install VS Code extensions that improve the .NET Core development experience.
|
||||
Install [Visual Studio Code](http://code.visualstudio.com). During the course of this article, you also install Visual Studio Code extensions that improve the .NET Core development experience.
|
||||
|
||||
Install the VS Code C# extension by opening VS Code and pressing <kbd>F1</kbd> to open the VS Code palette. Type **ext install** to see the list of extensions. Select the C# extension. Restart VS Code to activate the extension. For more information, see the [Visual Studio Code C# Extension documentation](https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger.md).
|
||||
Install the Visual Studio Code C# extension by opening Visual Studio Code and pressing <kbd>F1</kbd> to open the Visual Studio Code palette. Type **ext install** to see the list of extensions. Select the C# extension. Restart Visual Studio Code to activate the extension. For more information, see the [Visual Studio Code C# Extension documentation](https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger.md).
|
||||
|
||||
## Getting started
|
||||
|
||||
In this tutorial, you create three projects: a library project, tests for that library project, and a console application that makes use of the library. You can [view or download the source](https://github.com/dotnet/docs/tree/master/samples/core/getting-started/golden) for this topic at the dotnet/docs repository on GitHub. For download instructions, see [Samples and Tutorials](../../samples-and-tutorials/index.md#viewing-and-downloading-samples).
|
||||
|
||||
Start Visual Studio Code. Press <kbd>Ctrl</kbd>+<kbd>\`</kbd> (the backquote or backtick character) or select **View > Integrated Terminal** from the menu to open an embedded terminal in VS Code. You can still open an external shell with the Explorer **Open in Command Prompt** command (**Open in Terminal** on Mac or Linux) if you prefer to work outside of VS Code.
|
||||
Start Visual Studio Code. Press <kbd>Ctrl</kbd>+<kbd>\`</kbd> (the backquote or backtick character) or select **View > Integrated Terminal** from the menu to open an embedded terminal in Visual Studio Code. You can still open an external shell with the Explorer **Open in Command Prompt** command (**Open in Terminal** on Mac or Linux) if you prefer to work outside of Visual Studio Code.
|
||||
|
||||
Begin by creating a solution file, which serves as a container for one or more .NET Core projects. In the terminal, create a *golden* folder and open the folder. This folder is the root of your solution. Run the [`dotnet new`](../tools/dotnet-new.md) command to create a new solution, *golden.sln*:
|
||||
|
||||
|
@ -213,8 +213,8 @@ dotnet run -p app/app.csproj
|
|||
|
||||
Set a breakpoint at the `WriteLine` statement in the `Main` method. Do this by either pressing the <kbd>F9</kbd> key when the cursor is over the `WriteLine` line or by clicking the mouse in the left margin on the line where you want to set the breakpoint. A red circle will appear in the margin next to the line of code. When the breakpoint is reached, code execution will stop *before* the breakpoint line is executed.
|
||||
|
||||
Open the debugger tab by selecting the Debug icon in the VS Code toolbar, selecting **View > Debug** from the menu bar, or using the keyboard shortcut <kbd>CTRL</kbd>+<kbd>SHIFT</kbd>+<kbd>D</kbd>:
|
||||
Open the debugger tab by selecting the Debug icon in the Visual Studio Code toolbar, selecting **View > Debug** from the menu bar, or using the keyboard shortcut <kbd>CTRL</kbd>+<kbd>SHIFT</kbd>+<kbd>D</kbd>:
|
||||
|
||||
![VS Code Debugger](./media/using-on-macos/vscodedebugger.png)
|
||||
![Visual Studio Code Debugger](./media/using-on-macos/vscodedebugger.png)
|
||||
|
||||
Press the Play button to start the application under the debugger. The app begins execution and runs to the breakpoint, where it stops. Step into the `Get` method and make sure that you have passed in the correct arguments. Confirm that the answer is 42.
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
title: Get started with Visual Studio Code - C# Guide | Microsoft Docs
|
||||
description: Learn how to create and debug your first .NET Core application in C# using VS Code.
|
||||
description: Learn how to create and debug your first .NET Core application in C# using Visual Studio Code.
|
||||
keywords: C#, Get Started, Acquisition, Install, Visual Studio Code, Cross Platform
|
||||
author: kendrahavens
|
||||
ms.author: mairaw
|
||||
|
@ -28,7 +28,7 @@ Let's get started with a simple "Hello World" program on .NET Core:
|
|||
|
||||
1. Open a project:
|
||||
|
||||
* Open VS Code.
|
||||
* Open Visual Studio Code.
|
||||
* Click on the Explorer icon on the left menu and then click **Open Folder**.
|
||||
* Select the folder you want your C# project to be in and click **Select Folder**. For our example, we'll create a folder for our project named 'HelloWorld'.
|
||||
|
||||
|
@ -37,7 +37,7 @@ Let's get started with a simple "Hello World" program on .NET Core:
|
|||
* Alternatively, you can select **File** > **Open Folder** from the main menu to open your project folder.
|
||||
|
||||
2. Initialize a C# project:
|
||||
* Open the Integrated Terminal from VS Code by typing <kbd>CTRL</kbd>+<kbd>\`</kbd> (backtick).
|
||||
* Open the Integrated Terminal from Visual Studio Code by typing <kbd>CTRL</kbd>+<kbd>\`</kbd> (backtick).
|
||||
* In the terminal window, type `dotnet new console`.
|
||||
* This creates a `Program.cs` file in your folder with a simple "Hello World" program already written, along with a C# project file named `HelloWorld.csproj`.
|
||||
|
||||
|
@ -58,11 +58,11 @@ Let's get started with a simple "Hello World" program on .NET Core:
|
|||
You can also watch a short video tutorial for further setup help on [Windows](https://channel9.msdn.com/Blogs/dotnet/Get-started-with-VS-Code-using-CSharp-and-NET-Core), [macOS](https://channel9.msdn.com/Blogs/dotnet/Get-started-with-VS-Code-using-CSharp-and-NET-Core-on-MacOS), or [Linux](https://channel9.msdn.com/Blogs/dotnet/Get-started-with-VS-Code-Csharp-dotnet-Core-Ubuntu).
|
||||
|
||||
## Debug
|
||||
1. Open *Program.cs* by clicking on it. The first time you open a C# file in VS Code, [OmniSharp](http://www.omnisharp.net/) will load in the editor.
|
||||
1. Open *Program.cs* by clicking on it. The first time you open a C# file in Visual Studio Code, [OmniSharp](http://www.omnisharp.net/) will load in the editor.
|
||||
|
||||
![Open the Program.cs file](media/with-visual-studio-code/opencs.png)
|
||||
|
||||
2. VS Code will prompt you to add the missing assets to build and debug your app. Select **Yes**.
|
||||
2. Visual Studio Code will prompt you to add the missing assets to build and debug your app. Select **Yes**.
|
||||
|
||||
![Prompt for missing assets](media/with-visual-studio-code/missing-assets.png)
|
||||
|
||||
|
@ -86,7 +86,7 @@ You can also watch a short video tutorial for further setup help on [Windows](ht
|
|||
7. Select the green arrow at the top to continue debugging, or press the red square to stop.
|
||||
|
||||
> [!TIP]
|
||||
> For more information and troubleshooting tips on .NET Core debugging with OmniSharp in VS Code, see [Instructions for setting up the .NET Core debugger](https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger.md).
|
||||
> For more information and troubleshooting tips on .NET Core debugging with OmniSharp in Visual Studio Code, see [Instructions for setting up the .NET Core debugger](https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger.md).
|
||||
|
||||
## See also
|
||||
[Setting up Visual Studio Code](https://code.visualstudio.com/docs/setup/setup-overview)
|
||||
|
|
2
index.md
2
index.md
|
@ -325,7 +325,7 @@ title: .NET Documentation
|
|||
</div>
|
||||
<div class="cardText">
|
||||
<a href="/aspnet/core/tutorials/your-first-mac-aspnet">
|
||||
<h3>ASP.NET on macOS and VS Code</h3>
|
||||
<h3>ASP.NET on macOS and Visual Studio Code</h3>
|
||||
<p>Learn how to set up, build, and deploy ASP.NET Core apps on macOS with
|
||||
Visual Studio Code.</p>
|
||||
</a>
|
||||
|
|
Загрузка…
Ссылка в новой задаче