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
This article demonstrates how to create and deploy code components using Microsoft Power Platform CLI. Ensure that you have installed [Microsoft Power Platform CLI](https://aka.ms/PowerAppsCLI).
19
+
This article demonstrates how to create and deploy code components using Microsoft Power Platform CLI.
1.[Visual Studio Code (VSCode)](https://code.visualstudio.com/Download) (Ensure the Add to PATH option is select)
26
+
1.[node.js](https://nodejs.org/en/download/) (LTS version is recommended)
27
+
1.[Microsoft Power Platform CLI](/powerapps/developer/data-platform/powerapps-cli#install-power-apps-cli) (Use the Visual Studio Code extension)
23
28
24
-
To begin, open **Developer Command Prompt for VS 2017 or higher** after installing Microsoft Power Platform CLI.
29
+
## Create a new component
25
30
26
-
1. In the Developer Command Prompt, create a new folder on your local machine, for example, *C:\Users\your name\Documents\My_code_Component* using the command `mkdir <Specify the folder name>`.
27
-
2. Go to the newly created folder using the command `cd <specify your new folder path>`.
28
-
3. Create a new component project by passing some basic parameters using the [pac pcf init](/power-platform/developer/cli/reference/pcf#pac-pcf-init) command:
31
+
Open Visual Studio code and open a new terminal window by selecting **Terminal** > **New Terminal**.
32
+
1. In the terminal window, create a new folder on your local machine, for example, *C:\projects\My_code_Component* using the command `mkdir <Specify the folder name>`.
33
+
1. Go to the newly created folder using the command `cd <specify your new folder path>`.
34
+
1. Create a new component project by passing some basic parameters using the [pac pcf init](/power-platform/developer/cli/reference/pcf#pac-pcf-init) command:
29
35
30
36
```CLI
31
-
pac pcf init --namespace <specify your namespace here> --name <Name of the code component> --template <component type>
37
+
pac pcf init --namespace <specify your namespace here> --name <Name of the code component> --template <component type> --run-npm-install
32
38
```
33
-
4. The above command will also run `npm install` command for you to retrieve all the required project dependencies.
34
-
5. Open your project folder `C:\Users\<your name>\Documents\<My_code_Component>` in any developer environment of your choice and get started with your code component development. The quickest way to get started is by running `code .` from your command prompt once you are in the `C:\Users\<your name>\Documents\<My_code_Component>` directory. This command opens your component project in Visual Studio Code.
35
-
6. Implement the required artifacts for the component like manifest, component logic, and styling and then build the component project. More information: [Create your first code component](implementing-controls-using-typescript.md)
39
+
1. The above command will also run `npm install` command for you to retrieve all the required project dependencies.
40
+
1. Open your project folder `C:\projects\My_code_Component` in any developer environment of your choice and get started with your code component development. The quickest way to get started is by running `code .` from your command prompt once you are in the `C:\projects\My_code_Component` directory. This command opens your component project in Visual Studio Code.
41
+
1. Implement the required artifacts for the component like manifest, component logic, and styling and then build the component project. More information: [Create your first code component](implementing-controls-using-typescript.md)
36
42
37
43
## Build your component
38
44
39
-
To build the component project, open the project folder that contains `package.json` in Visual Studio Code and use the (Ctrl-Shift-B) command, then select the build options.
45
+
To build the component project, open the project folder that contains `package.json` in Visual Studio Code and use the (Ctrl-Shift-B) command, then select the build options.
40
46
41
-
Alternatively, you can build the component quickly using the `npm run build` command in the Developer Command Prompt for VS 2017 window for development purposes, or use `npm run build -- --buildMode production` for building a release version.
47
+
Alternatively, you can build the component quickly using the `npm run build` command in the Visual Studio Code terminal window for development purposes, or use `npm run build -- --buildMode production` for building a release version.
42
48
43
49
> [!TIP]
44
50
> To debug the component during or after the build operation, see [Debug a code component](debugging-custom-controls.md).
Copy file name to clipboardExpand all lines: powerapps-docs/developer/data-platform/authenticate-office365-deprecation.md
+11-14Lines changed: 11 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: "Use of Office365 authentication with Microsoft Dataverse (Microsoft Dataverse) | Microsoft Docs"# Intent and product brand in a unique string of 43-59 chars including spaces
3
3
description: "Describes deprecation of the WS-Trust security protocol and the code changes required in applications that use Office365 authentication."
4
4
ms.custom: ""
5
-
ms.date: 01/06/2022
5
+
ms.date: 01/23/2023
6
6
ms.reviewer: "pehecke"
7
7
8
8
ms.topic: "article"
@@ -23,10 +23,7 @@ search.app:
23
23
> Use of the WS-Trust (Office365) authentication security protocol when connecting to Microsoft Dataverse is no longer recommended and has been deprecated; see the [announcement](/power-platform/important-changes-coming#deprecation-of-office365-authentication-type-and-organizationserviceproxy-class-for-connecting-to-dataverse).<p/>
24
24
> Additionally, the WS-Trust protocol does not support modern forms of multi-factor authentication and Azure AD Conditional Access controls to customer data.
25
25
26
-
This document describes the impact to and required authentication code changes for custom client applications that use “Office365” authentication and the
27
-
[Microsoft.Xrm.Sdk.Client.OrganizationServiceProxy](/dotnet/api/microsoft.xrm.sdk.client.organizationserviceproxy) or
classes. If your applications use this type of authentication protocol and API,
26
+
This document describes the impact to and required authentication code changes for custom client applications that use “Office365” authentication and the <xref:Microsoft.Xrm.Sdk.Client.OrganizationServiceProxy>, <xref:Microsoft.PowerPlatform.Dataverse.Client.ServiceClient>, or <xref:Microsoft.Xrm.Tooling.Connector.CrmServiceClient> classes. If your applications use this type of authentication protocol and API,
30
27
continue reading below to learn more about the recommended authentication changes to be made to your application’s code.
31
28
32
29
## How do I know if my code or application is using WS-Trust?
@@ -37,11 +34,11 @@ workflow activities, or on-premises/IFD service connections.
37
34
38
35
- If your code employs user account and password credentials for authentication with Dataverse or an application, you are likely using the WS-Trust security protocol. Some examples are shown below, though this list is not fully inclusive.
39
36
40
-
- When using the [CrmServiceClient](/dotnet/api/microsoft.xrm.tooling.connector.crmserviceclient) class with a connection string:
37
+
- When using the `CrmServiceClient` or `ServiceClient` class with a connection string:
Wheninvokingtheconstructor, itisrecommendyouaddtheNuGetpackage [Microsoft.CrmSdk.XrmTooling.CoreAssembly](https://www.nuget.org/packages/Microsoft.CrmSdk.XrmTooling.CoreAssembly/) to your project and replace all use of `OrganizationServiceProxy` class constructors with [CrmServiceClient](/dotnet/api/microsoft.xrm.tooling.connector.crmserviceclient) class constructors. You will need to alter your coding pattern here, however, for simplicity `CrmServiceClient` supports connection strings in addition to complex constructors and the ability to provide external authentication handlers. `CrmServiceClient` implements `IOrganizationService`, therefore your new authentication code will be portable to the rest of your application code. You can find examples on the use of `CrmServiceClient` in the [PowerApps-Samples](https://github.com/microsoft/PowerApps-Samples/tree/master/dataverse/orgsvc/C%23) repository.
65
+
Wheninvokingtheconstructor, itisrecommendtoreplacealluseof `OrganizationServiceProxy` classconstructorswith`CrmServiceClient` or `ServiceClient` classconstructors. Youwillneedtoalteryourcodingpatternhere, however, forsimplicity `CrmServiceClient` and `ServiceClient` supportconnectionstringsinadditiontocomplexconstructorsandtheabilitytoprovideexternalauthenticationhandlers. Theserviceclientclassesimplements `IOrganizationService`, thereforeyournewauthenticationcodewillbeportabletotherestofyourapplicationcode. Youcanfindexamplesontheuseofserviceclientcalssesinthe [PowerApps-Samples](https://github.com/microsoft/PowerApps-Samples/tree/master/dataverse/orgsvc/C%23) repository.
Copy file name to clipboardExpand all lines: powerapps-docs/developer/data-platform/tools/devtools-create-project.md
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: "Quickstart: Create a Power Platform Tools project | Microsoft Docs"
3
3
description: "Learn how to start a new Visual Studio project for plug-in or custom workflow assembly development using Power Platform Tools."
4
4
ms.custom: ""
5
-
ms.date: 06/20/2020
5
+
ms.date: 01/27/2023
6
6
ms.reviewer: "pehecke"
7
7
8
8
ms.topic: "article"
@@ -23,10 +23,10 @@ Like any Visual Studio solution, you begin by creating a new project. In the new
23
23
24
24
## Prerequisites
25
25
26
-
- Visual Studio 2019
26
+
- Visual Studio 2019 or 2022
27
27
- Power Platform Tools for Visual Studio
28
28
- C# language
29
-
- .NET Framework 4.6.2 (only for plug-in or custom workflow activity development)
29
+
- .NET Framework 4.6.2 or greater - (plug-in and custom workflow activity development requires v4.6.2)
30
30
- Power Apps/Dataverse subscription or a trial environment
31
31
- Windows Workflow Foundation (only for custom workflow activity development)
32
32
@@ -61,7 +61,7 @@ The easy way to create a Power Platform solution containing a CrmPackage project
61
61
62
62
1. In the Visual Studio new project dialog, search for and choose **Power Platform Solution Template** and then select **Next**.
63
63
64
-
1. Enter the requested project information, choose .NET Framework 4.6.2 or 4.7.2, and select **Create**. <p/>At this point you should see either a Dataverse login dialog or a dialog to reuse your last Dataverse connection. Do whatever is appropriate to connect to your Dataverse development environment. Never develop code in a production environment.
64
+
1. Enter the requested project information, choose a .NET Framework version, and select **Create**. <p/>At this point you should see either a Dataverse login dialog or a dialog to reuse your last Dataverse connection. Do whatever is appropriate to connect to your Dataverse development environment. Never develop code in a production environment.
65
65
66
66
1. At the **Configure Microsoft Power Platform Solution** dialog, choose either to use an existing Dataverse solution or create a new solution. <p/>Depending on what you have chosen, you will either be prompted to enter information about the new solution or select the existing solution from a drop-down list. **Step #3 Select Solution** is displayed but won't be active until you are logged in and choose **Next** in step #2.
67
67
@@ -85,7 +85,7 @@ Only projects created with a Power Platform Tools template should be added to a
85
85
86
86
1. Select one of the installed Power Platform Tools templates and select **Next**.
87
87
88
-
1. Fill in any required information and select **Create**. For a plug-in or workflow activity library, be sure to choose .NET Framework 4.6.2 (or 4.7.2).
88
+
1. Fill in any required information and select **Create**. For a plug-in or workflow activity library, be sure to choose .NET Framework 4.6.2.
89
89
90
90
### Add an existing project to a Power Platform solution
Copy file name to clipboardExpand all lines: powerapps-docs/developer/data-platform/tools/devtools-install.md
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: "Install Power Platform Tools | Microsoft Docs"
3
3
description: "Learn how to install the Power Platform Tools extension for Visual Studio."
4
4
ms.custom: ""
5
-
ms.date: 06/20/2022
5
+
ms.date: 01/27/2023
6
6
ms.reviewer: "pehecke"
7
7
8
8
ms.topic: "article"
@@ -30,7 +30,7 @@ Power Platform Tools for Visual Studio supports the rapid creation, debugging, a
30
30
31
31
Before installing Power Platform Tools into Visual Studio you must have the following applications and frameworks installed on your development computer:
32
32
33
-
- Microsoft Visual Studio 2019.
33
+
- Microsoft Visual Studio 2019 or 2022.
34
34
35
35
- .NET Framework 4.6.2 (required only for plug-in and workflow activity development)
36
36
@@ -82,6 +82,7 @@ You can find a few Power Platform Tools options in Visual Studio by choosing **T
82
82
### See Also
83
83
84
84
[Quickstart: Create a Power Platform Tools project](devtools-create-project.md)
85
-
[Power Platform Tools on the Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=microsoft-IsvExpTools.PowerPlatformTools)
85
+
[Power Platform Tools extension for Visual Studio 2019](https://marketplace.visualstudio.com/items?itemName=microsoft-IsvExpTools.PowerPlatformTools)
86
+
[Power Platform Tools extension for Visual Studio 2022](https://marketplace.visualstudio.com/items?itemName=microsoft-IsvExpTools.PowerPlatformToolsVS2022)
0 commit comments