partial warning (#6435)

* partial warning

* partial warning

* Update troubleshoot.md
pull/6445/head
Rick Anderson 2018-05-16 08:25:13 -10:00 committed by GitHub
parent d2bd6f2049
commit 584c2838d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 1 deletions

View File

@ -60,4 +60,16 @@ In the **New Project** dialog for ASP.NET Core you may see the following warning
This warning appears when the environment variable `PATH` doesnt point to any .NET Core SDKs on the machine. To resolve this problem:
* Install or verify the .NET Core SDK is installed.
* Verify the `PATH` environment variable points to the location the SDK is installed. The installer normally sets the `PATH`.
* Verify the `PATH` environment variable points to the location the SDK is installed. The installer normally sets the `PATH`.
::: moniker range=">= aspnetcore-2.1"
### Use of IHtmlHelper.Partial may result in application deadlocks
In ASP.NET Core 2.1 and later, calling `Html.Partial` results in an analyzer warning due to the potential for deadlocks. The warning message is:
*Use of IHtmlHelper.Partial may result in application deadlocks. Consider using `<partial>` Tag Helper or `IHtmlHelper.PartialAsync`.*
Calls to `@Html.Partial` should be replaced by `@await Html.PartialAsync` or the partial tag helper `<partial name="_Partial" />`.
::: moniker-end