Skip to content

Commit 9ae8763

Browse files
Merge pull request #10759 from MicrosoftDocs/main638830154396626238sync_temp
For protected branch, push strategy should use PR and merge to target branch method to work around git push error
2 parents 5fb72eb + 92f7c01 commit 9ae8763

File tree

753 files changed

+4670
-2479
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

753 files changed

+4670
-2479
lines changed

docs/deployment/clickonce-deployment-dotnet.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: ClickOnce for .NET 5 and later on Windows
33
description: Discover the differences between ClickOnce for .NET Core 3.1 and .NET 5 and later versions, versus ClickOnce for .NET Framework.
4-
ms.date: 09/06/2023
4+
ms.date: 05/16/2025
55
ms.topic: how-to
66
helpviewer_keywords:
77
- "deployment, ClickOnce for .NET 5+"

docs/javascript/compile-typescript-code-npm.md

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Compile and build TypeScript code using npm
33
description: Add TypeScript support to your Visual Studio projects by using the Node Package Manager (npm) package for portability across different platforms and environments.
4-
ms.date: 10/23/2023
4+
ms.date: 5/15/2025
55
ms.topic: conceptual
66
author: "mikejo5000"
77
ms.author: "mikejo"
@@ -10,7 +10,7 @@ ms.subservice: javascript-typescript
1010
dev_langs:
1111
- JavaScript
1212
---
13-
# Compile TypeScript code (Node.js)
13+
# Compile TypeScript code using npm
1414

1515
::: moniker range=">=vs-2022"
1616
Use the TypeScript npm package to add TypeScript support to projects based on the [JavaScript Project System (JSPS)](../javascript/javascript-in-visual-studio.md#project-templates), or *.esproj*. Starting in Visual Studio 2019, it's recommended that you use the npm package instead of the TypeScript SDK. The TypeScript npm package provides greater portability across different platforms and environments.
@@ -31,11 +31,11 @@ The [TypeScript npm package](https://www.npmjs.com/package/typescript) adds Type
3131

3232
::: moniker range=">=vs-2022"
3333
For projects created using the JavaScript Project System (JSPS), or *.esproj*, no additional workloads are needed. You just need to install npm (https://www.npmjs.com/), which is included with Node.js.
34-
35-
For the older project type (.njsproj), you need to install the Node.js development workload and the Node.js runtime.
3634
::: moniker-end
3735

3836
::: moniker range="vs-2019"
37+
For the Node.js project type (.njsproj), you need to install the Node.js development workload and the Node.js runtime.
38+
3939
[Follow instructions](./tutorial-nodejs.md?toc=%252fvisualstudio%252fjavascript%252ftoc.json) to install the Node.js development workload and npm (https://www.npmjs.com/), which is included with Node.js.
4040

4141
For a simple Visual Studio integration, create your project using one of the Node.js TypeScript templates, such as the Blank Node.js Web Application template. Else, use either a Node.js JavaScript template included with Visual Studio and follow instructions here. Or, use an [Open Folder](../javascript/develop-javascript-code-without-solutions-projects.md) project.
@@ -45,7 +45,9 @@ The [TypeScript npm package](https://www.npmjs.com/package/typescript) adds Type
4545

4646
From Solution Explorer (right pane), open the *package.json* in the project root. The packages listed correspond to packages under the npm node in Solution Explorer. For more information, see [Manage npm packages](../javascript/npm-package-management.md).
4747

48-
For a Node.js project, you can install the TypeScript npm package using the command line or the IDE. To install using the IDE, right-click the npm node in Solution Explorer, choose **Install New npm package**, search for **TypeScript**, and install the package.
48+
::: moniker range="vs-2019"
49+
For the older Node.js project type, you can install the TypeScript npm package using the command line or the IDE. To install using the IDE, right-click the npm node in Solution Explorer, choose **Install New npm package**, search for **TypeScript**, and install the package.
50+
::: moniker-end
4951

5052
Check the **npm** option in the **Output** window to see package installation progress. The installed package shows up under the **npm** node in Solution Explorer.
5153

@@ -114,10 +116,17 @@ The [TypeScript npm package](https://www.npmjs.com/package/typescript) adds Type
114116
For an example of using Vue.js with TypeScript, see [Create a Vue.js application](create-application-with-vuejs.md).
115117
::: moniker-end
116118

117-
1. If you need to configure options such as the startup page, path to the Node.js runtime, application port, or runtime arguments, right-click the project node in Solution Explorer, and choose **Properties**.
119+
1. If you need to configure build and deployment options such as the app URL or runtime commands, right-click the project node in Solution Explorer, and choose **Properties**.
120+
121+
::: moniker range=">=vs-2022"
122+
>[!NOTE]
123+
> When configuring third-party tools, projects using the JavaScript Project System (JSPS), or *.esproj*, don't use the paths that are configured under **Tools** > **Options** > **Projects and solutions** > **Web Package Management** > **External Web Tools**. These settings are used for other project types.
124+
::: moniker-end
118125

126+
::: moniker range="vs-2019"
119127
>[!NOTE]
120128
> When configuring third-party tools, Node.js projects don't use the paths that are configured under **Tools** > **Options** > **Projects and solutions** > **Web Package Management** > **External Web Tools**. These settings are used for other project types.
129+
::: moniker-end
121130

122131
1. Choose **Build > Build Solution**.
123132

@@ -141,8 +150,15 @@ Press **Ctrl+F5** (or **Debug > Start Without Debugging**) to run the applicatio
141150

142151
You can use Task Runner Explorer in Visual Studio to help automate tasks for third-party tools like npm and webpack.
143152

153+
::: moniker range=">=vs-2022"
154+
- [NPM Task Runner](https://marketplace.visualstudio.com/items?itemName=MadsKristensen.NpmTaskRunner64) - Adds support for npm scripts defined in *package.json*. Supports yarn.
155+
- [Webpack Task Runner](https://marketplace.visualstudio.com/items?itemName=MadsKristensen.WebPackTaskRunner) - Adds support for webpack.
156+
::: moniker-end
157+
158+
::: moniker range="vs-2019"
144159
- [NPM Task Runner](https://marketplace.visualstudio.com/items?itemName=MadsKristensen.NPMTaskRunner) - Adds support for npm scripts defined in *package.json*. Supports yarn.
145160
- [Webpack Task Runner](https://marketplace.visualstudio.com/items?itemName=MadsKristensen.WebPackTaskRunner) - Adds support for webpack.
161+
::: moniker-end
146162

147163
## Related content
148164

docs/javascript/compile-typescript-code-nuget.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Compile and build TypeScript code using NuGet
33
description: Add TypeScript support to your Visual Studio projects by using the NuGet package for portability across different platforms and environments.
4-
ms.date: 10/23/2023
4+
ms.date: 5/15/2025
55
ms.topic: conceptual
66
author: "mikejo5000"
77
ms.author: "mikejo"
@@ -34,7 +34,7 @@ If Visual Studio is installed, then the node.exe bundled with it will automatica
3434
Visual Studio adds the NuGet package under the **Dependencies** node in Solution Explorer. The following package reference gets added to your *.csproj file.
3535

3636
```xml
37-
<PackageReference Include="Microsoft.TypeScript.MSBuild" Version="3.9.7">
37+
<PackageReference Include="Microsoft.TypeScript.MSBuild" Version="5.8.3">
3838
<PrivateAssets>all</PrivateAssets>
3939
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
4040
</PackageReference>
@@ -48,7 +48,7 @@ If Visual Studio is installed, then the node.exe bundled with it will automatica
4848

4949
1. Open *tsconfig.json* and update to set the compiler options that you want.
5050

51-
The following is an example of a simple *tsconfig.json* file.
51+
Use the following example, which shows a simple *tsconfig.json* file.
5252

5353
```json
5454
{
@@ -75,14 +75,14 @@ If Visual Studio is installed, then the node.exe bundled with it will automatica
7575

7676
### Build the application
7777

78-
1. Add TypeScript (*.ts*) or TypeScript JSX (*.tsx*) files to your project, and then add TypeScript code. For a simple example of TypeScript, use the following:
78+
1. Add TypeScript (*.ts*) or TypeScript JSX (*.tsx*) files to your project, and then add TypeScript code. For a simple example of TypeScript, use the following code:
7979

8080
```typescript
8181
let message: string = 'Hello World';
8282
console.log(message);
8383
```
8484

85-
1. If you are using an older non-SDK style project, follow instructions in [Remove default imports](#remove-default-imports) before building.
85+
1. If you're using an older non-SDK style project, follow instructions in [Remove default imports](#remove-default-imports) before building.
8686

8787
1. Choose **Build > Build Solution**.
8888

@@ -157,7 +157,7 @@ Press **F5** or select the Start button at the top of the window.
157157

158158
In older ASP.NET Core projects that use the [non-SDK-style format](/nuget/resources/check-project-format), you may need to remove some project file elements.
159159

160-
If you are using the NuGet package for MSBuild support for a project, the project file must not import `Microsoft.TypeScript.Default.props` or `Microsoft.TypeScript.targets`. The files get imported by the NuGet package, so including them separately may cause unintended behavior.
160+
If you're using the NuGet package for MSBuild support for a project, the project file must not import `Microsoft.TypeScript.Default.props` or `Microsoft.TypeScript.targets`. The files get imported by the NuGet package, so including them separately may cause unintended behavior.
161161

162162
1. Right-click the project and choose **Unload Project**.
163163

@@ -167,7 +167,7 @@ If you are using the NuGet package for MSBuild support for a project, the projec
167167

168168
1. Remove references to `Microsoft.TypeScript.Default.props` and `Microsoft.TypeScript.targets`.
169169

170-
The imports to remove look similar to the following:
170+
The imports to remove look similar to the following XML:
171171

172172
```xml
173173
<Import

docs/msbuild/errors/msb1001.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "MSB1001 diagnostic code"
33
description: Learn about the possible causes of the MSB1001 build error, and get troubleshooting tips.
4-
ms.date: 05/14/2025
4+
ms.date: 05/16/2025
55
ms.topic: "error-reference"
66
f1_keywords:
77
- MSB1001
@@ -26,7 +26,10 @@ This article describes the MSB1001 error code.
2626

2727
## Message text
2828

29+
<!-- :::editable-content name="messageText"::: -->
2930
`MSB1001: Unknown switch.`
31+
<!-- :::editable-content-end::: -->
32+
<!-- MSB1001: Unknown switch. -->
3033

3134
<!-- :::editable-content name="postOutputDescription"::: -->
3235
## Description

docs/msbuild/errors/msb1002.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "MSB1002 diagnostic code"
33
description: Learn about the possible causes of the MSB1002 build error, and get troubleshooting tips.
4-
ms.date: 01/14/2025
4+
ms.date: 05/16/2025
55
ms.topic: "error-reference"
66
f1_keywords:
77
- MSB1002
@@ -26,7 +26,10 @@ This article describes the MSB1002 error code.
2626

2727
## Message text
2828

29+
<!-- :::editable-content name="messageText"::: -->
2930
`MSB1002: This switch does not take any parameters.`
31+
<!-- :::editable-content-end::: -->
32+
<!-- MSB1002: This switch does not take any parameters. -->
3033

3134
<!-- :::editable-content name="postOutputDescription"::: -->
3235
<!--

docs/msbuild/errors/msb1003.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "MSB1003 diagnostic code"
33
description: Learn about the possible causes of the MSB1003 build error, and get troubleshooting tips.
4-
ms.date: 05/14/2025
4+
ms.date: 05/16/2025
55
ms.topic: "error-reference"
66
f1_keywords:
77
- MSB1003
@@ -26,7 +26,10 @@ This article describes the MSB1003 error code.
2626

2727
## Message text
2828

29+
<!-- :::editable-content name="messageText"::: -->
2930
`MSB1003: Specify a project or solution file. The current working directory does not contain a project or solution file.`
31+
<!-- :::editable-content-end::: -->
32+
<!-- MSB1003: Specify a project or solution file. The current working directory does not contain a project or solution file. -->
3033

3134
<!-- :::editable-content name="postOutputDescription"::: -->
3235
<!--

docs/msbuild/errors/msb1004.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "MSB1004 diagnostic code"
33
description: Learn about the possible causes of the MSB1004 build error, and get troubleshooting tips.
4-
ms.date: 01/14/2025
4+
ms.date: 05/16/2025
55
ms.topic: "error-reference"
66
f1_keywords:
77
- MSB1004
@@ -26,7 +26,10 @@ This article describes the MSB1004 error code.
2626

2727
## Message text
2828

29+
<!-- :::editable-content name="messageText"::: -->
2930
`MSB1004: Specify the name of the target.`
31+
<!-- :::editable-content-end::: -->
32+
<!-- MSB1004: Specify the name of the target. -->
3033

3134
<!-- :::editable-content name="postOutputDescription"::: -->
3235
<!--

docs/msbuild/errors/msb1005.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "MSB1005 diagnostic code"
33
description: Learn about the possible causes of the MSB1005 build error, and get troubleshooting tips.
4-
ms.date: 01/14/2025
4+
ms.date: 05/16/2025
55
ms.topic: "error-reference"
66
f1_keywords:
77
- MSB1005
@@ -26,7 +26,10 @@ This article describes the MSB1005 error code.
2626

2727
## Message text
2828

29+
<!-- :::editable-content name="messageText"::: -->
2930
`MSB1005: Specify a property and its value.`
31+
<!-- :::editable-content-end::: -->
32+
<!-- MSB1005: Specify a property and its value. -->
3033

3134
<!-- :::editable-content name="postOutputDescription"::: -->
3235
<!--

docs/msbuild/errors/msb1006.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "MSB1006 diagnostic code"
33
description: Learn about the possible causes of the MSB1006 build error, and get troubleshooting tips.
4-
ms.date: 01/14/2025
4+
ms.date: 05/16/2025
55
ms.topic: "error-reference"
66
f1_keywords:
77
- MSB1006
@@ -26,7 +26,10 @@ This article describes the MSB1006 error code.
2626

2727
## Message text
2828

29+
<!-- :::editable-content name="messageText"::: -->
2930
`MSB1006: Property is not valid.`
31+
<!-- :::editable-content-end::: -->
32+
<!-- MSB1006: Property is not valid. -->
3033

3134
<!-- :::editable-content name="postOutputDescription"::: -->
3235
<!--

docs/msbuild/errors/msb1007.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "MSB1007 diagnostic code"
33
description: Learn about the possible causes of the MSB1007 build error, and get troubleshooting tips.
4-
ms.date: 01/14/2025
4+
ms.date: 05/16/2025
55
ms.topic: "error-reference"
66
f1_keywords:
77
- MSB1007
@@ -26,7 +26,10 @@ This article describes the MSB1007 error code.
2626

2727
## Message text
2828

29+
<!-- :::editable-content name="messageText"::: -->
2930
`MSB1007: Specify a logger.`
31+
<!-- :::editable-content-end::: -->
32+
<!-- MSB1007: Specify a logger. -->
3033

3134
<!-- :::editable-content name="postOutputDescription"::: -->
3235
<!--

0 commit comments

Comments
 (0)