You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/javascript/tutorial-asp-net-core-with-angular.md
+35-5Lines changed: 35 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: "Create an ASP.NET Core app with Angular"
3
3
description: In this tutorial, you create an app using ASP.NET Core and Angular
4
-
ms.date: 06/17/2022
4
+
ms.date: 08/17/2022
5
5
ms.topic: tutorial
6
6
ms.devlang: javascript
7
7
author: mikejo5000
@@ -27,9 +27,6 @@ Starting in Visual Studio 2022 Preview 2, you can use the method described in th
27
27
- Put the client app in a separate project, outside from the ASP.NET Core project
28
28
- Create the client project based on the framework CLI installed on your computer
29
29
30
-
>[!NOTE]
31
-
> Currently, the front-end project must be published manually (not currently supported with the Publish tool). For additional information, see [https://github.com/MicrosoftDocs/visualstudio-docs/issues/7135](https://github.com/MicrosoftDocs/visualstudio-docs/issues/7135).
32
-
33
30
## Prerequisites
34
31
35
32
Make sure to install the following:
@@ -124,7 +121,40 @@ Before you start the project, make sure that the port numbers match.
124
121
>[!NOTE]
125
122
> Check console output for messages, such as a message instructing you to update your version of Node.js.
126
123
127
-
You should see an Angular app appear, that is populated via the API.
124
+
You should see an Angular app appear, that is populated via the API. If you don't see the app, see [Troubleshooting](#troubleshooting).
125
+
126
+
## Publish the project
127
+
128
+
Starting in Visual Studio 2022 version 17.3, you can publish the integrated solution using the Visual Studio Publish tool.
129
+
130
+
>[!NOTE]
131
+
> To use publish, create your JavaScript project using Visual Studio 2022 version 17.3 or later.
132
+
133
+
1. In Solution Explorer, right-click the ASP.NET Core project and choose **Add** > **Project Reference**.
134
+
135
+
1. Select the Angular project and choose **OK**.
136
+
137
+
1. Right-click the ASP.NET Core project in Solution Explorer and choose **Unload Project**.
138
+
139
+
This opens the *.csproj* file for the project.
140
+
141
+
1. In the *.csproj* file, update the project reference and add `<ReferenceOutputAssembly>` with the value set to `false`.
142
+
143
+
When you've updated the reference, it should look like this (substituting your own project folder and project name).
1. Right-click the ASP.NET Core project and choose **Reload Project**.
152
+
153
+
1. To publish, right click the ASP.NET Core project, choose **Publish**, and select options to match your desired publish scenario, such as Azure, publish to a folder, et al.
154
+
155
+
The publish process takes more time than it does for just an ASP.NET Core project, since the `npm run build command` gets invoked when publishing.
156
+
157
+
You can modify the `npm run build` command using the **Production Build Command** in the Angular project properties. To modify it, right-click the Angular project in Solution Explorer and choose **Properties**.
Copy file name to clipboardExpand all lines: docs/javascript/tutorial-asp-net-core-with-react.md
+35-5Lines changed: 35 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: "Create an ASP.NET Core app with React"
3
3
description: In this tutorial, you create an app using ASP.NET Core and React
4
-
ms.date: 06/17/2022
4
+
ms.date: 08/17/2022
5
5
ms.topic: tutorial
6
6
ms.devlang: javascript
7
7
author: mikejo5000
@@ -27,9 +27,6 @@ Starting in Visual Studio 2022 Preview 2, you can use the method described in th
27
27
- Put the client app in a separate project, outside from the ASP.NET Core project
28
28
- Create the client project based on the framework CLI installed on your computer
29
29
30
-
> [!NOTE]
31
-
> Currently, the front-end project must be published manually (not currently supported with the Publish tool). For additional information, see [https://github.com/MicrosoftDocs/visualstudio-docs/issues/7135](https://github.com/MicrosoftDocs/visualstudio-docs/issues/7135).
32
-
33
30
## Prerequisites
34
31
35
32
Make sure to install the following:
@@ -122,7 +119,40 @@ Make sure to install the following:
122
119
>[!NOTE]
123
120
> Check console output for messages, such as a message instructing you to update your version of Node.js.
124
121
125
-
You should see an React app appear, that is populated via the API.
122
+
You should see a React app appear, that is populated via the API. If you don't see the app, see [Troubleshooting](#troubleshooting).
123
+
124
+
## Publish the project
125
+
126
+
Starting in Visual Studio 2022 version 17.3, you can publish the integrated solution using the Visual Studio Publish tool.
127
+
128
+
>[!NOTE]
129
+
> To use publish, create your JavaScript project using Visual Studio 2022 version 17.3 or later.
130
+
131
+
1. In Solution Explorer, right-click the ASP.NET Core project and choose **Add** > **Project Reference**.
132
+
133
+
1. Select the React project and choose **OK**.
134
+
135
+
1. Right-click the ASP.NET Core project in Solution Explorer and choose **Unload project**.
136
+
137
+
This opens the *.csproj* file for the project.
138
+
139
+
1. In the *.csproj* file, update the project reference and add `<ReferenceOutputAssembly>` with the value set to `false`.
140
+
141
+
When you've updated the reference, it should look like this (substituting your own project folder and project name).
1. Right-click the ASP.NET Core project and choose **Reload Project**.
150
+
151
+
1. To publish, right click the ASP.NET Core project, choose **Publish**, and select options to match your desired publish scenario, such as Azure, publish to a folder, et al.
152
+
153
+
The publish process takes more time than it does for just an ASP.NET Core project, since the `npm run build command` gets invoked when publishing.
154
+
155
+
You can modify the `npm run build` command using the **Production Build Command** in the React project properties. To modify it, right-click the React project in Solution Explorer and choose **Properties**.
Copy file name to clipboardExpand all lines: docs/javascript/tutorial-asp-net-core-with-vue.md
+35-5Lines changed: 35 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: "Create an ASP.NET Core app with Vue"
3
3
description: In this tutorial, you create an app using ASP.NET Core and Vue
4
-
ms.date: 06/17/2022
4
+
ms.date: 08/17/2022
5
5
ms.topic: tutorial
6
6
ms.devlang: javascript
7
7
author: mikejo5000
@@ -27,9 +27,6 @@ Starting in Visual Studio 2022 Preview 2, you can use the method described in th
27
27
- Put the client app in a separate project, outside from the ASP.NET Core project
28
28
- Create the client project based on the framework CLI installed on your computer
29
29
30
-
> [!NOTE]
31
-
> Currently, the front-end project must be published manually (not currently supported with the Publish tool). For additional information, see [https://github.com/MicrosoftDocs/visualstudio-docs/issues/7135](https://github.com/MicrosoftDocs/visualstudio-docs/issues/7135).
32
-
33
30
## Prerequisites
34
31
35
32
Make sure to install the following:
@@ -132,7 +129,40 @@ Once the project is created, you see some new and modified files:
132
129
>[!NOTE]
133
130
> Check console output for messages, such as a message instructing you to update your version of Node.js.
134
131
135
-
You should see the Vue app appear, that is populated via the API.
132
+
You should see the Vue app appear, that is populated via the API. If you don't see the app, see [Troubleshooting](#troubleshooting).
133
+
134
+
## Publish the project
135
+
136
+
Starting in Visual Studio 2022 version 17.3, you can publish the integrated solution using the Visual Studio Publish tool.
137
+
138
+
>[!NOTE]
139
+
> To use publish, create your JavaScript project using Visual Studio 2022 version 17.3 or later.
140
+
141
+
1. In Solution Explorer, right-click the ASP.NET Core project and choose **Add** > **Project Reference**.
142
+
143
+
1. Select the Vue project and choose **OK**.
144
+
145
+
1. Right-click the ASP.NET Core project in Solution Explorer and choose **Unload project**.
146
+
147
+
This opens the *.csproj* file for the project.
148
+
149
+
1. In the *.csproj* file, update the project reference and add `<ReferenceOutputAssembly>` with the value set to `false`.
150
+
151
+
When you've updated the reference, it should look like this (substituting your own project folder and project name).
1. Right-click the ASP.NET Core project and choose **Reload Project**.
160
+
161
+
1. To publish, right click the ASP.NET Core project, choose **Publish**, and select options to match your desired publish scenario, such as Azure, publish to a folder, et al.
162
+
163
+
The publish process takes more time than it does for just an ASP.NET Core project, since the `npm run build` command gets invoked when publishing.
164
+
165
+
You can modify the `npm run build` command using the **Production Build Command** in the Vue project properties. To modify it, right-click the Vue project in Solution Explorer and choose **Properties**.
0 commit comments