Merge pull request #17179 from dotnet/master

Update live with master
pull/17207/head
Scott Addie 2020-03-02 14:23:52 -06:00 committed by GitHub
commit 54ec67cc18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 142 additions and 11 deletions

View File

@ -18,6 +18,9 @@
"(?i).*master\/aspnetcore\/host-and-deploy\/blazor.*": {
"labels-add": "Blazor"
},
"(?i).*master\/aspnetcore\/security\/blazor.*": {
"labels-add": "Blazor"
},
"(?i).*master\/aspnetcore\/tutorials\/*blazor*.*": {
"labels-add": "Blazor"
},

View File

@ -84,7 +84,8 @@
"signalr/**/**.md": "aspnetcore-signalr",
"test/**/**.md": "aspnetcore-test",
"tutorials/**/**.md": "aspnetcore-tutorials",
"web-api/**/**.md": "aspnetcore-webapi"
"web-api/**/**.md": "aspnetcore-webapi",
"whats-new/**/**.md": "aspnetcore-whatsnew"
},
"ms.topic": {
"getting-started/**/**.md": "tutorial",

View File

@ -24,8 +24,8 @@ The *publish* directory contains the app's deployable assets produced by the [do
| App Type | Directory Structure |
| -------- | ------------------- |
| [Framework-dependent Executable (FDE)](/dotnet/core/deploying/#framework-dependent-executables-fde) | <ul><li>publish&dagger;<ul><li>Views&dagger; MVC apps; if views aren't precompiled</li><li>Pages&dagger; MVC or Razor Pages apps, if pages aren't precompiled</li><li>wwwroot&dagger;</li><li>*.dll files</li><li>{ASSEMBLY NAME}.deps.json</li><li>{ASSEMBLY NAME}.dll</li><li>{ASSEMBLY NAME}{.EXTENSION} *.exe* extension on Windows, no extension on macOS or Linux</li><li>{ASSEMBLY NAME}.pdb</li><li>{ASSEMBLY NAME}.Views.dll</li><li>{ASSEMBLY NAME}.Views.pdb</li><li>{ASSEMBLY NAME}.runtimeconfig.json</li><li>web.config (IIS deployments)</li><li>createdump ([Linux createdump utility](https://github.com/dotnet/coreclr/blob/master/Documentation/botr/xplat-minidump-generation.md#configurationpolicy))</li><li>*.so (Linux shared object library)</li><li>*.a (macOS archive)</li><li>*.dylib (macOS dynamic library)</li></ul></li></ul> |
| [Self-contained Deployment (SCD)](/dotnet/core/deploying/#self-contained-deployments-scd) | <ul><li>publish&dagger;<ul><li>Views&dagger; MVC apps, if views aren't precompiled</li><li>Pages&dagger; MVC or Razor Pages apps, if pages aren't precompiled</li><li>wwwroot&dagger;</li><li>*.dll files</li><li>{ASSEMBLY NAME}.deps.json</li><li>{ASSEMBLY NAME}.dll</li><li>{ASSEMBLY NAME}.exe</li><li>{ASSEMBLY NAME}.pdb</li><li>{ASSEMBLY NAME}.Views.dll</li><li>{ASSEMBLY NAME}.Views.pdb</li><li>{ASSEMBLY NAME}.runtimeconfig.json</li><li>web.config (IIS deployments)</li></ul></li></ul> |
| [Framework-dependent Executable (FDE)](/dotnet/core/deploying/#framework-dependent-executables-fde) | <ul><li>publish&dagger;<ul><li>Views&dagger; MVC apps; if views aren't precompiled</li><li>Pages&dagger; MVC or Razor Pages apps, if pages aren't precompiled</li><li>wwwroot&dagger;</li><li>\*.dll files</li><li>{ASSEMBLY NAME}.deps.json</li><li>{ASSEMBLY NAME}.dll</li><li>{ASSEMBLY NAME}{.EXTENSION} *.exe* extension on Windows, no extension on macOS or Linux</li><li>{ASSEMBLY NAME}.pdb</li><li>{ASSEMBLY NAME}.Views.dll</li><li>{ASSEMBLY NAME}.Views.pdb</li><li>{ASSEMBLY NAME}.runtimeconfig.json</li><li>web.config (IIS deployments)</li><li>createdump ([Linux createdump utility](https://github.com/dotnet/coreclr/blob/master/Documentation/botr/xplat-minidump-generation.md#configurationpolicy))</li><li>\*.so (Linux shared object library)</li><li>\*.a (macOS archive)</li><li>\*.dylib (macOS dynamic library)</li></ul></li></ul> |
| [Self-contained Deployment (SCD)](/dotnet/core/deploying/#self-contained-deployments-scd) | <ul><li>publish&dagger;<ul><li>Views&dagger; MVC apps, if views aren't precompiled</li><li>Pages&dagger; MVC or Razor Pages apps, if pages aren't precompiled</li><li>wwwroot&dagger;</li><li>\*.dll files</li><li>{ASSEMBLY NAME}.deps.json</li><li>{ASSEMBLY NAME}.dll</li><li>{ASSEMBLY NAME}.exe</li><li>{ASSEMBLY NAME}.pdb</li><li>{ASSEMBLY NAME}.Views.dll</li><li>{ASSEMBLY NAME}.Views.pdb</li><li>{ASSEMBLY NAME}.runtimeconfig.json</li><li>web.config (IIS deployments)</li></ul></li></ul> |
&dagger;Indicates a directory

View File

@ -103,7 +103,7 @@ The body and every section in a Razor page must be either rendered or ignored.
## Importing Shared Directives
Views and pages can use Razor directives to importing namespaces and use [dependency injection](dependency-injection.md). Directives shared by many views may be specified in a common *_ViewImports.cshtml* file. The `_ViewImports` file supports the following directives:
Views and pages can use Razor directives to import namespaces and use [dependency injection](dependency-injection.md). Directives shared by many views may be specified in a common *_ViewImports.cshtml* file. The `_ViewImports` file supports the following directives:
* `@addTagHelper`
* `@removeTagHelper`

View File

@ -31,17 +31,14 @@ namespace TodoApi.Controllers
[HttpGet("{id}")]
public async Task<ActionResult<TodoItemDTO>> GetTodoItem(long id)
{
var todoItemDTO = await _context.TodoItems
.Where(x => x.Id == id)
.Select(x => ItemToDTO(x))
.SingleAsync();
var todoItem = await _context.TodoItems.FindAsync(id);
if (todoItemDTO == null)
if (todoItem == null)
{
return NotFound();
}
return todoItemDTO;
return ItemToDTO(todoItem);
}
[HttpPut("{id}")]

View File

@ -0,0 +1,126 @@
---
title: "ASP.NET Core docs: What's new for February 2020"
description: "What's new in ASP.NET Core docs for February 2020."
ms.date: 03/02/2020
---
# ASP.NET Core docs: What's new for February 2020
This article lists some of the significant changes to docs during this period.
## Blazor
### New articles
- [ASP.NET Core Blazor advanced scenarios](../blazor/advanced-scenarios.md)
- Split Blazor JS Interop topic
- Split Razor Components topic
- [Call .NET methods from JavaScript functions in ASP.NET Core Blazor](../blazor/call-dotnet-from-javascript.md) - Split Blazor JS Interop topic
- [Call JavaScript functions from .NET methods in ASP.NET Core Blazor](../blazor/call-javascript-from-dotnet.md) - Split Blazor JS Interop topic
- [ASP.NET Core Blazor data binding](../blazor/data-binding.md) - Split Razor Components topic
- [ASP.NET Core Blazor event handling](../blazor/event-handling.md) - Split Razor Components topic
- [ASP.NET Core Blazor globalization and localization](../blazor/globalization-localization.md) - Split Razor Components topic
- [ASP.NET Core Blazor hosting model configuration](../blazor/hosting-model-configuration.md) - Split out advanced Blazor hosting model content
- [Integrate ASP.NET Core Razor components into Razor Pages and MVC apps](../blazor/integrate-components.md) - Split Razor Components topic
- [ASP.NET Core Blazor templated components](../blazor/templated-components.md) - Split Razor Components topic
### Updated articles
- [ASP.NET Core Blazor advanced scenarios](../blazor/advanced-scenarios.md)
- Split Blazor JS Interop topic
- Split Razor Components topic
- [Create and use ASP.NET Core Razor components](../blazor/components.md) - Blazor binding content and layout updates
- [ASP.NET Core Blazor JavaScript interop](../blazor/javascript-interop.md) - Add content for performing large data transfers in Blazor Server apps
## Fundamentals
### Updated articles
- [Session and app state in ASP.NET Core](../fundamentals/app-state.md) - App state prep
- [Configuration in ASP.NET Core](../fundamentals/configuration/index.md) - Apply versioning to entire doc
- [HTTP.sys web server implementation in ASP.NET Core](../fundamentals/servers/httpsys.md) - Apply versioning to entire doc
## gRPC
### Updated articles
- [Logging and diagnostics in gRPC on .NET](../grpc/diagnostics.md) - Add gRPC diagnostics content
## Hosting and deployment
### Updated articles
- [Common errors reference for Azure App Service and IIS with ASP.NET Core](../host-and-deploy/azure-iis-errors-reference.md) - Apply versioning to entire doc
- [Development-time IIS support in Visual Studio for ASP.NET Core](../host-and-deploy/iis/development-time-iis-support.md) - Apply versioning to entire doc
- [Host ASP.NET Core on Windows with IIS](../host-and-deploy/iis/index.md) - Apply versioning to entire doc
- [Host and deploy ASP.NET Core](../host-and-deploy/index.md) - Apply versioning to entire doc
- [Configure ASP.NET Core to work with proxy servers and load balancers](../host-and-deploy/proxy-load-balancer.md) - Apply versioning to entire doc
- [Host ASP.NET Core in a Windows Service](../host-and-deploy/windows-service.md) - Apply versioning to entire doc
## MVC
### Updated articles
- [Areas in ASP.NET Core](../mvc/controllers/areas.md) - Prepare areas for dual monikers
## Performance
### Updated articles
- [Distributed caching in ASP.NET Core](../performance/caching/distributed.md) - Apply versioning to entire doc
- [Response Caching Middleware in ASP.NET Core](../performance/caching/middleware.md) - Apply versioning to entire doc
- [Response compression in ASP.NET Core](../performance/response-compression.md) - Apply versioning to entire doc
## Razor Pages
### Updated articles
- [Razor Pages route and app conventions in ASP.NET Core](../razor-pages/razor-pages-conventions.md) - Apply versioning to entire doc
## Security
### New articles
- [ASP.NET Core 2.1 MVC SameSite cookie sample](../security/samesite/mvc21.md) - Add new doc and sample for ASP.NET Core 2.1 MVC with SameSite cookies
- [ASP.NET Core 2.1 Razor Pages SameSite cookie sample](../security/samesite/rp21.md) - Add new doc and sample for ASP.NET Core 2.1 Razor Pages with SameSite cookies
- [ASP.NET Core 3.1 Razor Pages SameSite cookie sample](../security/samesite/rp31.md) - Add new doc and sample for ASP.NET Core 3.1 Razor Pages with SameSite cookies
### Updated articles
- [Azure Key Vault Configuration Provider in ASP.NET Core](../security/key-vault-configuration.md) - Apply versioning to entire doc
## Testing
### Updated articles
- [Troubleshoot ASP.NET Core on Azure App Service and IIS](../test/troubleshoot-azure-iis.md) - Apply versioning to entire doc
## Tutorials
### New articles
- [Use ASP.NET Core SignalR with Blazor WebAssembly](../tutorials/signalr-blazor-webassembly.md) - Add new doc for using ASP.NET Core SignalR with Blazor WebAssembly
### Updated articles
- [Use ASP.NET Core SignalR with TypeScript and Webpack](../tutorials/signalr-typescript-webpack.md) - Update tutorial for Visual Studio 2019 and ASP.NET Core 3.1
## Community contributors
The following people have contributed to ASP.NET Core docs in February 2020. Thank you! You can learn how to contribute by following the links under "Get involved" in the [what's new landing page](index.yml).
- [serpent5](https://github.com/serpent5) - Kirk Larkin (6)
- [alan-agius4](https://github.com/alan-agius4) - Alan Agius (1)
- [damienbod](https://github.com/damienbod) - damienbod (1)
- [ishchenkoviacheslav](https://github.com/ishchenkoviacheslav) (1)
- [mariocatch](https://github.com/mariocatch) - mariocatch (1)
- [martinmladenov](https://github.com/martinmladenov) - Martin Mladenov (1)
- [Marusyk](https://github.com/Marusyk) - Roman Marusyk (1)
- [MintPlayer](https://github.com/MintPlayer) (1)
- [mohsinnasir](https://github.com/mohsinnasir) - Mohsin Nasir (1)
- [ovebastiansen](https://github.com/ovebastiansen) (1)
- [PureKrome](https://github.com/PureKrome) - Pure Krome (1)
- [reidhaegele](https://github.com/reidhaegele) - Reid H. (1)
- [RobJohnston](https://github.com/RobJohnston) - Rob Johnston (1)
- [simskij](https://github.com/simskij) - Simon Aronsson (1)
- [sopes](https://github.com/sopes) (1)

View File

@ -7,13 +7,15 @@ metadata:
title: ASP.NET Core documentation - What's new?
description: "Learn about new and updated content in ASP.NET Core docs."
ms.topic: landing-page
ms.date: 01/17/2020
ms.date: 03/02/2020
landingContent:
- title: "Find ASP.NET Core docs updates"
linkLists:
- linkListType: whats-new
links:
- text: February 2020
url: 2020-02.md
- text: January 2020
url: 2020-01.md
- text: December 2019

View File

@ -5,6 +5,8 @@
- name: 2020
expanded: true
items:
- name: February
href: 2020-02.md
- name: January
href: 2020-01.md
- name: 2019