@microsoft/teamsfx-core 2.0.0-rc.2 → 2.0.0-rc.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/teamsfx-core",
|
|
3
|
-
"version": "2.0.0-rc.
|
|
3
|
+
"version": "2.0.0-rc.3",
|
|
4
4
|
"main": "build/index.js",
|
|
5
5
|
"types": "build/index.d.ts",
|
|
6
6
|
"license": "MIT",
|
|
@@ -212,7 +212,7 @@
|
|
|
212
212
|
"resource/**/*",
|
|
213
213
|
"templates/**/*"
|
|
214
214
|
],
|
|
215
|
-
"gitHead": "
|
|
215
|
+
"gitHead": "4beea1880489e64df9ddd316bda71cf0780ecd9d",
|
|
216
216
|
"publishConfig": {
|
|
217
217
|
"access": "public"
|
|
218
218
|
},
|
|
@@ -1,50 +1,48 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Review project upgrade and changes
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Your project was automatically upgraded to work with this version of Teams Toolkit. The upgrade is one-way, and you will not be able to use the version of Teams Toolkit in which it was originally created unless you [roll back the changes](#how-to-roll-back-after-the-upgrade).
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
Visit https://aka.ms/teams-toolkit-5.0-upgrade to learn more about the upgrade.
|
|
5
|
+
> If you encountered a problem after the automatic upgrade, review the [known issues](https://aka.ms/teams-toolkit-5.0-upgrade#known-issues). If you are still having trouble, contact ttkfeedback@microsoft.com or [file an issue on GitHub](https://github.com/officedev/teamsfx/issues) with details about the problem.
|
|
8
6
|
|
|
9
7
|
## Important changes to your development flow
|
|
10
8
|
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
The new features in this release make developing your apps simpler and more flexible, but also include changes to how the toolkit creates projects, automates configuration, and deploys resources. Visit [the upgrade guide](https://aka.ms/teamsfx-v5.0-guide) for more info about all of the changes.
|
|
10
|
+
|
|
11
|
+
Some of the changes you may immediately notice are:
|
|
12
|
+
|
|
13
|
+
* Configuration of the lifecycle management using Provision, Deploy, and Publish are now fully customizable and expressed in `teamsapp.local.yml` and `teamsapp.yml`. [More info](https://aka.ms/teamsfx-v5.0-guide#project-files)
|
|
14
|
+
* Configuration and values that were saved in `.fx/config` and `.fx/state` are now handled with environment files and saved to `/env` by default. [More info](https://aka.ms/teams-toolkit-5.0-upgrade#environment-management)
|
|
15
|
+
* The changes to use environment files give greater flexibility of configuring which resources are used to provision, but may require some manual steps when creating new environments. [More info](https://aka.ms/teams-toolkit-5.0-upgrade#environment-management)
|
|
13
16
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
3. You need to manually update `.vscode/launch.json` when launching your app for a certain environment if your current project contains it. [Learn More](https://aka.ms/teams-toolkit-5.0-upgrade#launch-your-app)
|
|
17
|
-
4. You need to provide values to `APIM__PUBLISHEREMAIL` and `APIM__PUBLISHERNAME` environment variable if your current project uses APIM. [Learn More](https://aka.ms/teams-toolkit-5.0-upgrade#provision-apim-service)
|
|
18
|
-
5. You need to manually update `Start local tunnel` task in `.vscode/task.json` if you have customized this task. Teams Toolkit now uses Dev Tunnel as default tunnel solution. [Learn More](https://aka.ms/teams-toolkit-5.0-upgrade#start-tunnel-service)
|
|
17
|
+
If you're using APIM:
|
|
18
|
+
* You need to provide values to `APIM__PUBLISHEREMAIL` and the `APIM__PUBLISHERNAME` environment variables. [More info](https://aka.ms/teams-toolkit-5.0-upgrade#provision-apim-service)
|
|
19
19
|
|
|
20
|
-
You can
|
|
20
|
+
You can [view these changes on GitHub](https://aka.ms/teams-toolkit-5.0-upgrade#feature-changes-that-impact-your-development-flow).
|
|
21
21
|
|
|
22
|
-
## Changes to your project
|
|
22
|
+
## Changes to your project file structure
|
|
23
23
|
|
|
24
|
-
1. Created `teamsapp.yml` and `teamsapp.local.yml` in your project root
|
|
24
|
+
1. Created `teamsapp.yml` and `teamsapp.local.yml` in your project's root directory.
|
|
25
25
|
2. Moved environment files in `.fx` to `.env.{env}` in `env` folder.
|
|
26
26
|
3. If your project contains file `.fx/states/{env}.userdata`, the content will be moved to `.env.{env}.user` in `env` folder
|
|
27
|
-
4. Moved `templates/appPackage` to `appPackage`, renamed `manifest.template.json` to `manifest.json` and placeholders in it will be updated
|
|
28
|
-
5. If your project contains
|
|
27
|
+
4. Moved `templates/appPackage` to `appPackage`, renamed `manifest.template.json` to `manifest.json` and placeholders in it will be updated using the latest default conventions.
|
|
28
|
+
5. If your project contains `templates/appPackage/aad.template.json`, it will be moved and renamed to `aad.manifest.json` and the templated variables names are updated to the latest default conventions.
|
|
29
29
|
6. If your project contains file `.vscode/tasks.json` and `.vscode/launch.json`, they will be updated.
|
|
30
30
|
7. Updated `.gitignore` to ignore new environment user files.
|
|
31
31
|
8. Removed `.fx` folder.
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
You can [view these changes on GitHub](https://aka.ms/teams-toolkit-5.0-upgrade#file-changes).
|
|
34
34
|
|
|
35
35
|
## Known issues
|
|
36
36
|
|
|
37
|
-
1. If your project only contains a bot, you
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
3. If your tab app is created with Teams Toolkit 3.2.0 or earlier version, you may see error `simpleAuthEndpoint in configuration is invalid` when remote debugging your app. Please follow this [wiki](https://aka.ms/teams-toolkit-5.0-upgrade#simpleauthendpoint-in-configuration-is-invalid) to learn how to mitigate this error.
|
|
42
|
-
4. If your project can be provisioned successfully before, but after upgrade it cannot be provisioned or published by `teamsApp/validateAppPackage` actione, please use the [validation](https://dev.teams.microsoft.com/validation) to check your appPackage zip file and fix the error. [Learn More](https://aka.ms/teams-toolkit-5.0-upgrade#teamsappvalidateapppackage-failed-error)
|
|
37
|
+
1. If your project only contains a bot, you might get an error about `STATE__FX_RESOURCE_FRONTEND_HOSTING__ENDPOINT` missing when running Provision or using Start Debugging. Find this placeholder variable in `appPackage/manifest.json` and replace it with a valid URL to resolve this issue. [More Info](https://aka.ms/teams-toolkit-5.0-upgrade#state__fx_resource_frontend_hosting__endpoint-missing-error-in-some-projects)
|
|
38
|
+
2. If your project is created with Visual Studio version < 17.4, you might get an error like `InvalidParameter: Following parameter is missing or invalid for aadApp/create action: name` when running commands. [Try these steps](#how-to-roll-back-after-the-upgrade) to roll back the changes, install VS 17.4, and run the upgrade again.
|
|
39
|
+
3. If your tab app is created with Teams Toolkit 3.2.0 or an earlier version, you may get an error like `simpleAuthEndpoint in configuration is invalid` when remote debugging your app. [Try these steps](https://aka.ms/teams-toolkit-5.0-upgrade#simpleauthendpoint-in-configuration-is-invalid) to learn how to mitigate this error.
|
|
40
|
+
4. If your project was successfully provisioned before, but after upgrading it cannot be provisioned or published using the `teamsApp/validateAppPackage` action, try using the [validation report in Teams Developer Portal](https://dev.teams.microsoft.com/validation) to check the manifest for errors. [More Info](https://aka.ms/teams-toolkit-5.0-upgrade#teamsappvalidateapppackage-failed-error)
|
|
43
41
|
|
|
44
|
-
## How to roll back
|
|
42
|
+
## How to roll back after the upgrade
|
|
45
43
|
|
|
46
|
-
|
|
47
|
-
1. Copy everything in `.backup` folder to your project root folder
|
|
48
|
-
2. Delete the new files
|
|
44
|
+
Follow these steps if you want to restore your project configuration after the upgrade is successful or need to use a previous version of Teams Toolkit:
|
|
45
|
+
1. Copy everything in the `.backup` folder that was generated during the upgrade to your project root folder.
|
|
46
|
+
2. Delete the new files created during the upgrade. The [Changes to your project](#changes-to-your-project) section contains info on everything that was created.
|
|
49
47
|
|
|
50
|
-
You can
|
|
48
|
+
You can [view these steps on GitHub](https://aka.ms/teams-toolkit-5.0-upgrade#how-to-roll-back).
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|