Tool.Config.props
文件
依赖本项目之后,会在生成过程中生成一份Tool.Config.props
文件到你的项目目录中
该文件示例如下:
xml
<?xml version="1.0" encoding="utf-8" ?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<!-- Whether the current project is a PluginLoader -->
<IsPluginLoader>false</IsPluginLoader>
<!-- Whether the current project is a Plugin -->
<IsPlugin>false</IsPlugin>
<!-- Auto Pack Plugin When IsPlugin == True-->
<AutoPluginPackage>true</AutoPluginPackage>
<!-- Auto Generate I18N -->
<AutoGenerateI18N>true</AutoGenerateI18N>
</PropertyGroup>
</Project>
名称 | 类型 | 说明 |
---|---|---|
IsPluginLoader | bool | 该项目是否是插件加载器项目,详见IsPluginLoader |
IsPlugin | bool | 该项目是否是插件项目,详见IsPlugin |
AutoPluginPackage | bool | 是否自动打包为插件(仅在IsPlugin 为true 时有效),详见插件打包 |
AutoGenerateI18N | bool | 是否自动生成I18N帮助类,详见I18N国际化 |
注意
IsPluginLoader
与IsPlugin
只能有一个为true
IsPluginLoader
IsPluginLoader
指明该项目是否是插件加载器项目
如果为true
:
IsPlugin
IsPlugin
指明该项目是否是插件项目
如果为true
:
- 从
.csproj
文件中自动生成出plugin.json
- 允许使用插件打包功能