- 发行说明
- 入门指南
- 设置和配置
- 自动化项目
- 依赖项
- 工作流类型
- 文件比较
- 自动化最佳实践
- 源代码控件集成
- 调试
- 诊断工具
- 工作流分析器
- 变量
- 参数
- 导入的命名空间
- 基于触发器的 Attended 自动化
- 控制流程
- 对象存储库
- 日志记录
- ScreenScrapeJavaSupport 工具
- Studio 测试
- 扩展程序
- 故障排除
Project.json 是针对每个 .xaml 文件自动生成的文件,在项目文件夹中标记为“主要”。
The file holds varied information, including project dependencies, or web services loaded in libraries. For more information about web services in libraries, check out the Loading Web Services in Libraries page.
Manually editing the project.json file should be attempted for troubleshooting scenarios only, as it may lead to severe consequences and loss of support.
从 2018.2 开始,在从 UiRobot.exe(命令行)客户端运行项目时,应该指定一个 project.json 文件。
下表介绍了 Project.json 文件中包含的参数。
| 参数 | 描述 |
|---|---|
|
|
自动化项目的标题。其在 Studio 中创建新流程或库时提供。 |
|
|
项目的描述。在创建新项目时,将在 Studio 中的“描述”字段中提供描述。 |
|
|
自动化项目的入口点。其包含 Main.xaml file through the Invoke Workflow File activity. This is especially useful when the project is published to Orchestrator and sent to a Robot, as the Robot executes only the file provided in this parameter.
|
|
|
用于创建自动化项目及其版本的活动包。每当从项目中添加或删除依赖项时,或包版本更改时,该列表都会更新。 |
|
|
|
|
|
|
|
|
|
|
|
用于创建自动化项目的 Studio 版本。 |
|
|
将此项目发布到订阅源时使用的版本。表示“发布”窗口中设置的版本。 |
|
|
|
|
|
|
|
|
包含在设置为“主要”的工作流文件中定义的每个 .nupkg 包的文件中。
|
|
|
为流程设置的语言(VisualBasic 或 CSharp)。 |
|
|
包含标记为流程入口点的每个文件
.nupkg 包的文件中。
|
|
|
项目是否为模板。 |
|
|
包含模板项目的以下信息:
|
|
|
为项目设置的目标框架(旧版、Windows 或便携式)。 |
以下是通过 Studio 发布的包中包含的 project.json 文件内容的示例。
{
"name": "UI-40028",
"description": "Blank Process",
"main": "Flowchart.xaml",
"dependencies": {
"UiPath.Excel.Activities": "[2.9.3]",
"UiPath.Mail.Activities": "[1.9.3]",
"UiPath.System.Activities": "[20.10.1]",
"UiPath.UIAutomation.Activities": "[20.10.6]"
},
"webServices": [],
"entitiesStores": [],
"schemaVersion": "4.0",
"studioVersion": "20.10.2.0",
"projectVersion": "1.0.1",
"runtimeOptions": {
"autoDispose": false,
"isPausable": true,
"requiresUserInteraction": true,
"supportsPersistence": false,
"excludedLoggedData": [
"Private:*",
"<em>password</em>"
],
"executionType": "Workflow",
"readyForPiP": false,
"startsInPiP": false
},
"designOptions": {
"projectProfile": "Developement",
"outputType": "Process",
"libraryOptions": {
"includeOriginalXaml": false,
"privateWorkflows": []
},
"processOptions": {
"ignoredFiles": []
},
"fileInfoCollection": [],
"modernBehavior": false
},
"arguments": {
"input": [
{
"name": "argument1",
"type": "System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089",
"required": false,
"hasDefault": false
},
{
"name": "argument2",
"type": "System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089",
"required": false,
"hasDefault": false
}
],
"output": []
},
"expressionLanguage": "VisualBasic",
"entryPoints": [
{
"filePath": "Main.xaml",
"uniqueId": "5289efb0-f8bc-42f3-8cf4-0caa3a7d1915",
"input": [
{
"name": "argument1",
"type": "System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089",
"required": false,
"hasDefault": false
},
{
"name": "argument2",
"type": "System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089",
"required": false,
"hasDefault": false
}
],
"output": []
},
{
"filePath": "Flowchart.xaml",
"uniqueId": "d0904ba0-506e-437d-979c-b9da4325faad",
"input": [
{
"name": "argument1",
"type": "System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089",
"required": false,
"hasDefault": false
},
{
"name": "argument2",
"type": "System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089",
"required": false,
"hasDefault": false
}
],
"output": []
}
],
"isTemplate": false,
"templateProjectData": {},
"publishData": {}
}
{
"name": "UI-40028",
"description": "Blank Process",
"main": "Flowchart.xaml",
"dependencies": {
"UiPath.Excel.Activities": "[2.9.3]",
"UiPath.Mail.Activities": "[1.9.3]",
"UiPath.System.Activities": "[20.10.1]",
"UiPath.UIAutomation.Activities": "[20.10.6]"
},
"webServices": [],
"entitiesStores": [],
"schemaVersion": "4.0",
"studioVersion": "20.10.2.0",
"projectVersion": "1.0.1",
"runtimeOptions": {
"autoDispose": false,
"isPausable": true,
"requiresUserInteraction": true,
"supportsPersistence": false,
"excludedLoggedData": [
"Private:*",
"<em>password</em>"
],
"executionType": "Workflow",
"readyForPiP": false,
"startsInPiP": false
},
"designOptions": {
"projectProfile": "Developement",
"outputType": "Process",
"libraryOptions": {
"includeOriginalXaml": false,
"privateWorkflows": []
},
"processOptions": {
"ignoredFiles": []
},
"fileInfoCollection": [],
"modernBehavior": false
},
"arguments": {
"input": [
{
"name": "argument1",
"type": "System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089",
"required": false,
"hasDefault": false
},
{
"name": "argument2",
"type": "System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089",
"required": false,
"hasDefault": false
}
],
"output": []
},
"expressionLanguage": "VisualBasic",
"entryPoints": [
{
"filePath": "Main.xaml",
"uniqueId": "5289efb0-f8bc-42f3-8cf4-0caa3a7d1915",
"input": [
{
"name": "argument1",
"type": "System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089",
"required": false,
"hasDefault": false
},
{
"name": "argument2",
"type": "System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089",
"required": false,
"hasDefault": false
}
],
"output": []
},
{
"filePath": "Flowchart.xaml",
"uniqueId": "d0904ba0-506e-437d-979c-b9da4325faad",
"input": [
{
"name": "argument1",
"type": "System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089",
"required": false,
"hasDefault": false
},
{
"name": "argument2",
"type": "System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089",
"required": false,
"hasDefault": false
}
],
"output": []
}
],
"isTemplate": false,
"templateProjectData": {},
"publishData": {}
}