Skip to content

Commit 6bc4efc

Browse files
authored
Merge pull request #6020 from dotnet/master
Update live with current master
2 parents 7c0cb6b + d3d469c commit 6bc4efc

File tree

30 files changed

+141
-85
lines changed

30 files changed

+141
-85
lines changed

.openpublishing.redirection.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1309,6 +1309,10 @@
13091309
{
13101310
"source_path":"docs/framework/windows-workflow-foundation/samples/using-the-invokemethod-activity.md",
13111311
"redirect_url":"/dotnet/framework/windows-workflow-foundation/samples/built-in-activities"
1312+
},
1313+
{
1314+
"source_path":"docs/fsharp/language-reference/signatures.md",
1315+
"redirect_url":"/dotnet/fsharp/language-reference/signature-files"
13121316
}
13131317
]
13141318
}

docs/core/migration/20-21.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
title: Migrate from .NET Core 2.0 to 2.1
3+
description: Learn how to upgrade your .NET Core 2.0 app to 2.1.
4+
author: mairaw
5+
ms.author: mairaw
6+
ms.date: 06/18/2018
7+
---
8+
# Migrate from .NET Core 2.0 to 2.1
9+
10+
This article shows you the basic steps for migrating your .NET Core 2.0 app to 2.1. If you're looking to migrate your ASP.NET Core app to 2.1, see [Migrate from ASP.NET Core 2.0 to 2.1](/aspnet/core/migration/20_21).
11+
12+
For an overview of the new features in .NET Core 2.1, see [What's new in .NET Core 2.1](../whats-new/dotnet-core-2-1.md).
13+
14+
## Update the project file to use 2.1 versions
15+
16+
* Open the project file (the \*.csproj, \*.vbproj, or \*.fsproj file).
17+
18+
* Change the [target framework](../../standard/frameworks.md) value from `netcoreapp2.0` to `netcoreapp2.1`. The target framework is defined by the `<TargetFramework>` or `<TargetFrameworks>` element.
19+
20+
For example, change `<TargetFramework>netcoreapp2.0</TargetFramework>` to `<TargetFramework>netcoreapp2.1</TargetFramework>`.
21+
22+
* Remove `<DotNetCliToolReference>` references for tools that are bundled in the .NET Core 2.1 SDK (v 2.1.300 or later). These references include:
23+
24+
* [dotnet-watch](https://github.com/aspnet/DotNetTools/blob/dev/src/dotnet-watch/README.md) (Microsoft.DotNet.Watcher.Tools)
25+
* [dotnet-user-secrets](https://github.com/aspnet/DotNetTools/blob/dev/src/dotnet-user-secrets/README.md) (Microsoft.Extensions.SecretManager.Tools)
26+
* [dotnet-sql-cache](https://github.com/aspnet/DotNetTools/blob/dev/src/dotnet-sql-cache/README.md) (Microsoft.Extensions.Caching.SqlConfig.Tools)
27+
* [dotnet-ef](/ef/core/miscellaneous/cli/dotnet) (Microsoft.EntityFrameworkCore.Tools.DotNet)
28+
29+
## See also
30+
31+
[Migrate from ASP.NET Core 2.0 to 2.1](/aspnet/core/migration/20_21)
32+
[What's new in .NET Core 2.1](../whats-new/dotnet-core-2-1.md)

docs/csharp/expression-trees-building.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ Once you've got the addition expression, you can create the lambda
5151
expression:
5252

5353
```csharp
54-
var lamdba = Expression.Lambda(addition);
54+
var lambda = Expression.Lambda(addition);
5555
```
5656

57-
This is a very simple LambdaExpression, because it contains no arguments.
57+
This is a very simple lambda expression, because it contains no arguments.
5858
Later in this section, you'll see how to map arguments to parameters
5959
and build more complicated expressions.
6060

docs/csharp/expression-trees-execution.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,18 @@ ms.assetid: 109e0ac5-2a9c-48b4-ac68-9b6219cdbccf
1212
An *expression tree* is a data structure that represents some code.
1313
It is not compiled and executable code. If you want to execute
1414
the .NET code that is represented by an expression tree, you must
15-
convert it into executable IL instructions.
15+
convert it into executable IL instructions.
16+
1617
## Lambda Expressions to Functions
18+
1719
You can convert any LambdaExpression, or any type derived from
1820
LambdaExpression into executable IL. Other expression types
1921
cannot be directly converted into code. This restriction has
2022
little effect in practice. Lambda expressions are the only
2123
types of expressions that you would want to execute by converting
2224
to executable intermediate language (IL). (Think about what it would mean
2325
to directly execute a `ConstantExpression`. Would it mean
24-
anything useful?) Any expression tree that is a `LamdbaExpression`,
26+
anything useful?) Any expression tree that is a `LambdaExpression`,
2527
or a type derived from `LambdaExpression` can be converted to IL.
2628
The expression type `Expression<TDelegate>`
2729
is the only concrete example in the .NET Core libraries. It's used
@@ -35,15 +37,14 @@ and its corresponding delegate. For example, an expression tree that
3537
is represented by `Expression<Func<int>>` would be converted to a delegate
3638
of the type `Func<int>`. For a lambda expression with any return type
3739
and argument list, there exists a delegate type that is the target type
38-
for the executable code represented by that lamdba expression.
40+
for the executable code represented by that lambda expression.
3941

40-
The `LamdbaExpression` type contains `Compile` and `CompileToMethod`
42+
The `LambdaExpression` type contains `Compile` and `CompileToMethod`
4143
members that you would use to convert an expression tree to executable
4244
code. The `Compile` method creates a delegate. The `CompileToMethod`
4345
method updates a `MethodBuilder` object with the IL that represents
4446
the compiled output of the expression tree. Note that `CompileToMethod`
45-
is only available on the full desktop framework, not on the
46-
.NET Core framework.
47+
is only available in the full desktop framework, not in the .NET Core.
4748

4849
Optionally, you can also provide a `DebugInfoGenerator` that will
4950
receive the symbol debugging information for the generated delegate
@@ -65,13 +66,13 @@ Notice that the delegate type is based on the expression type. You must
6566
know the return type and the argument list if you want to use the
6667
delegate object in a strongly typed manner. The `LambdaExpression.Compile()`
6768
method returns the `Delegate` type. You will have to cast it to the correct
68-
delegate type to have any compile-time tools check the argument list of
69+
delegate type to have any compile-time tools check the argument list or
6970
return type.
7071

7172
## Execution and Lifetimes
7273

7374
You execute the code by invoking the delegate created when
74-
you called `LamdbaExpression.Compile()`. You can see this above where
75+
you called `LambdaExpression.Compile()`. You can see this above where
7576
`add.Compile()` returns a delegate. Invoking that delegate, by calling
7677
`func()` executes the code.
7778

docs/csharp/indexers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ from any users of this class.
212212
Another common scenario is when you need to model a dictionary
213213
or a map. This scenario is when your type stores values based on key,
214214
typically text keys. This example creates a dictionary that maps command
215-
line arguments to [lamdba expressions](delegates-overview.md) that manage
215+
line arguments to [lambda expressions](delegates-overview.md) that manage
216216
those options. The following example shows two classes: an `ArgsActions`
217217
class that maps a command line option to an `Action` delegate, and an
218218
`ArgsProcessor` that uses the `ArgsActions` to execute each `Action` when

docs/csharp/language-reference/keywords/virtual.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public virtual double Area()
3636
- A virtual inherited property can be overridden in a derived class by including a property declaration that uses the `override` modifier.
3737

3838
## Example
39-
In this example, the `Shape` class contains the two coordinates `x`, `y`, and the `Area()` virtual method. Different shape classes such as `Circle`, `Cylinder`, and `Sphere` inherit the `Shape` class, and the surface area is calculated for each figure. Each derived class has it own override implementation of `Area()`.
39+
In this example, the `Shape` class contains the two coordinates `x`, `y`, and the `Area()` virtual method. Different shape classes such as `Circle`, `Cylinder`, and `Sphere` inherit the `Shape` class, and the surface area is calculated for each figure. Each derived class has its own override implementation of `Area()`.
4040

4141
Notice that the inherited classes `Circle`, `Sphere`, and `Cylinder` all use constructors that initialize the base class, as shown in the following declaration.
4242

docs/csharp/programming-guide/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ms.assetid: ac0f23a2-6bf3-4077-be99-538ae5fd3bc5
1313
# C# programming guide
1414
This section provides detailed information on key C# language features and features accessible to C# through the .NET Framework.
1515

16-
Most of this section assumes that you already know something about C# and general programming concepts. If you are a complete beginner with programming or with C#, you might want to visit the [Getting Started with C#](https://www.microsoft.com/net/tutorials/csharp/getting-started) interactive tutorial, where no prior programming knowledge is required.
16+
Most of this section assumes that you already know something about C# and general programming concepts. If you are a complete beginner with programming or with C#, you might want to visit the [C# Quickstarts](../quick-starts/index.md) or [Getting Started with C#](https://www.microsoft.com/net/tutorials/csharp/getting-started) interactive tutorial, where no prior programming knowledge is required.
1717

1818
For information about specific keywords, operators and preprocessor directives, see [C# Reference](../../csharp/language-reference/index.md). For information about the C# Language Specification, see [C# Language Specification](../../csharp/language-reference/language-specification/index.md).
1919

0 commit comments

Comments
 (0)