Skip to content

Commit 88ba524

Browse files
Add warning for untrusted .NET templates (#49074)
* Add warning for untrusted .NET templates Added a warning about untrusted .NET templates. * Respond to PR feedback * Apply suggestions from code review Co-authored-by: Meaghan Osagie (Lewis) <[email protected]> * Move warning for untrusted .NET templates to description Reinstate warning about untrusted .NET templates. --------- Co-authored-by: Meaghan Osagie (Lewis) <[email protected]>
1 parent 10dd246 commit 88ba524

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

docs/core/tools/custom-templates.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,9 @@ project_folder
230230

231231
Use the [dotnet new install](dotnet-new-install.md) command to install a template package.
232232

233+
> [!WARNING]
234+
> Templates can run MSBuild code when triggered, don't install or run untrusted .NET templates.
235+
233236
### To install a template package from a NuGet package stored at nuget.org
234237

235238
Use the NuGet package identifier to install a template package.

docs/core/tools/dotnet-new-install.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ Starting with .NET SDK 6.0.100, installed template packages are available in lat
4242
> dotnet new --install Microsoft.Azure.WebJobs.ProjectTemplates
4343
> ```
4444
45+
> [!WARNING]
46+
> Templates can run MSBuild code when triggered, don't install or run untrusted .NET templates.
47+
4548
## Arguments
4649
4750
- **`<PATH|NUGET_ID>`**

0 commit comments

Comments
 (0)