UiPath Documentation
studio
2023.4
false
Studio 用户指南
重要 :
新发布内容的本地化可能需要 1-2 周的时间才能完成。

关于 Project.Json 文件

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 文件中包含的参数。

参数 描述

name

自动化项目的标题。其在 Studio 中创建新流程或库时提供。

description

项目的描述。在创建新项目时,将在 Studio 中的“描述”字段中提供描述。

main

自动化项目的入口点。其包含 .xaml 文件。默认名称为“Main.xaml”。它既显示为“设计器”面板的标题,也显示在 Studio 中的“属性”面板中。如果希望首先执行不同的项目,请将此参数的值更改为要处理的 .xaml 文件的名称。

If your automation project contains multiple files, each of them should be linked to the 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.

dependencies

用于创建自动化项目及其版本的活动包。每当从项目中添加或删除依赖项时,或包版本更改时,该列表都会更新。

版本号由以下部分组成,按顺序排列:主版本号、次版本号、内部版本号和修订版本号。构建值是自 01.01.2000 以来经过的天数。 修订值是从格林尼治标准时间上午 5 点开始的,发布当天经过的秒数。

webServices

  • namespace -“添加新服务”窗口中为库提供的服务名称。
  • serviceDocument - 包含 SOAP 或 Swagger 服务元数据的 .xml.json 文件的路径。该文件在修复服务时使用,并且应作为项目的一部分进行版本控制。
  • webDocumentUri - Swagger 或 SOAP 资源的文件路径或链接(在“添加新服务”窗口中创建服务时提供)。
  • uniqueReference - 服务版本控制需要的参考。

entitiesStores

  • serviceDocument - 本地实体文件的路径。
  • tenantName - Data Service 所在的租户。
  • namespace - 实体在其下导入的命名空间(项目命名空间)。
  • uniqueReference - 服务版本控制需要的参考。

schemaVersion

project.json 文件的版本。

studioVersion

用于创建自动化项目的 Studio 版本。

projectVersion

将此项目发布到订阅源时使用的版本。表示“发布”窗口中设置的版本。

runtimeOptions

  • exceptionHandlerWorkflow - 流程的运行时异常处理程序。
  • autoDispose - 流程是否支持释放可释放对象以释放系统资源。
  • netFrameworkLazyLoading - 选择此选项可仅在项目中使用引用的程序集时加载这些程序集。
  • isPausable - 是否为流程启用暂停
  • isAttended - 流程是否允许无人值守执行。
  • requiresUserInteraction - 流程是否是后台流程。
  • supportsPersistence - 流程是否是长时间运行的流程。
  • excludedLoggedData - Contains keywords that can be added to the name of an activity to prevent variable and argument values from being logged at the Verbose level. That can also be achieved by selecting the Private checkbox of any activity. Read more about the protection of sensitive information here.
  • executionType - 流程执行类型。
  • readyForPiP - 流程是否标记为“PiP 已就绪”。
  • startsInPiP - 是否将流程配置为在 PiP 中启动。
  • mustRestoreAllDependencies - 是否还原所有项目依赖项。
  • pipType - 流程中使用的 PiP 类型。

designOptions

  • projectProfile - 创建项目(业务 (StudioX) 或开发)时使用的 Studio 配置文件。
  • outputType 显示项目类型:流程测试
  • libraryOptions
  • includeOriginalXaml - 是否在结果 .nupkg 文件中包括原始工作流文件。
  • privateWorkflows - 库中包含的私有 .xaml 文件的完整名称。
  • processOptions
  • ignoredFiles - 从发布中忽略的 RPA 工作流文件列表。
  • fileInfoCollection - 包含流程中每个测试用例文件的以下信息:editingStatus(“可发布”或“正在进行”)、testCaseIdfileName
  • modernBehavior - 是否将流程配置为使用新式设计体验。

arguments

包含在设置为“主要”的工作流文件中定义的每个 inputoutput 参数的以下信息:nametype,无论是否为 required,以及它是否具有默认值 (hasDefault)。

参数信息仅在发布后添加到 .nupkg 包的文件中。

expressionLanguage

为流程设置的语言(VisualBasic 或 CSharp)。

entryPoints

包含标记为流程入口点的每个文件 filePath

uniqueId 的以下信息;以及文件中每个 inputoutput 参数的以下信息:nametype,是否为 required,是否具有默认值 (hasDefault)。

参数信息仅在发布后添加到 .nupkg 包的文件中。

isTemplate

项目是否为模板。

templateProjectData

包含模板项目的以下信息:

  • defaultProjectDescription - 基于模板的流程的默认项目描述。
  • defaultProjectName - 基于模板的流程的默认项目名称。

targetFramework

为项目设置的目标框架(旧版、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": {}
}

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新