File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313 <AllowUnsafeBlocks >true</AllowUnsafeBlocks >
1414 <LangVersion >preview</LangVersion >
1515 <!-- Nuget -->
16- <Version >3.1.2 </Version >
16+ <Version >3.1.3 </Version >
1717 <PackageId >ShadowPluginLoader.WinUI</PackageId >
1818 <Owner >kitUIN</Owner >
1919 <Authors >kitUIN</Authors >
4343 <PackageReference Include =" ShadowPluginLoader.SourceGenerator" Version =" 3.0.7" />
4444 <PackageReference Include =" ShadowObservableConfig.Yaml" Version =" 0.6.3" />
4545 <PackageReference Include =" ShadowObservableConfig.Json" Version =" 0.6.3" />
46- <PackageReference Include =" ShadowPluginLoader.Tool" Version =" 3.1.1 " />
46+ <PackageReference Include =" ShadowPluginLoader.Tool" Version =" 3.1.3 " />
4747 <PackageReference Include =" NuGet.Versioning" Version =" 7.0.1" />
4848 <PackageReference Include =" SharpCompress" Version =" 0.44.0" />
4949 </ItemGroup >
5353 <!-- <ItemGroup> -->
5454 <!-- <ProjectReference Include="..\ShadowPluginLoader.SourceGenerator\ShadowPluginLoader.SourceGenerator.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" /> -->
5555 <!-- </ItemGroup> -->
56- <PropertyGroup >
57- <EmitCompilerGeneratedFiles >true</EmitCompilerGeneratedFiles >
58- <!-- 可选:自定义生成目录 -->
59- <CompilerGeneratedFilesOutputPath >GeneratedFiles</CompilerGeneratedFilesOutputPath >
60- </PropertyGroup >
61- <ItemGroup >
62- <!-- 添加了内存里面的文件,不应该添加磁盘的,否则添加两份 -->
63- <Compile Remove =" $(CompilerGeneratedFilesOutputPath)/**/*.cs" />
64- </ItemGroup >
65- <ItemGroup >
66- <Folder Include =" Config\" />
67- <Folder Include =" Installer\" />
68- </ItemGroup >
6956</Project >
Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ The file example is as follows:
1515 <AutoPluginPackage >true</AutoPluginPackage >
1616 <!-- Auto Generate I18N -->
1717 <AutoGenerateI18N >true</AutoGenerateI18N >
18+ <!-- Debug SourceGenerator-->
19+ <DebugSourceGenerator >false</DebugSourceGenerator >
1820 </PropertyGroup >
1921</Project >
2022```
@@ -25,6 +27,7 @@ The file example is as follows:
2527| ` IsPlugin ` | ` bool ` | Whether this project is a plugin project, see [ IsPlugin] ( #IsPlugin ) |
2628| ` AutoPluginPackage ` | ` bool ` | Whether to automatically package as plugin (only effective when ` IsPlugin ` is ` true ` ), see [ Plugin Packaging] ( /plugin/pack ) |
2729| ` AutoGenerateI18N ` | ` bool ` | Whether to automatically generate I18N helper classes, see [ I18N Internationalization] ( /advance/i18n ) |
30+ | ` DebugSourceGenerator ` | ` bool ` | Applies only to the plugin project. Determines whether the source generator’s output files are visible (when enabled, they will be generated under ` GeneratedFiles ` |
2831
2932::: warning Note
3033
@@ -46,4 +49,5 @@ If `true`:
4649
4750If ` true ` :
4851- Automatically generate ` plugin.json ` from ` .csproj ` file
52+ - Automatically copy ` plugin.d.json ` from the ` PluginLoader project ` to the ` Plugin project ` directory.
4953- Allow using [ plugin packaging] ( /plugin/pack ) functionality
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ The `ExportMeta` attribute indicates that this class is metadata that needs to b
2121
2222Your metadata class ** must** use ` ExportMeta ` .
2323
24- It will automatically export as a ` metadata definition file ` for subsequent plugins to use.
24+ It will automatically export as a ` metadata definition file (plugin.d.json) ` for subsequent plugins to use.
2525
2626
2727## Inheritance
Original file line number Diff line number Diff line change 1515 <AutoPluginPackage >true</AutoPluginPackage >
1616 <!-- Auto Generate I18N -->
1717 <AutoGenerateI18N >true</AutoGenerateI18N >
18+ <!-- Debug SourceGenerator-->
19+ <DebugSourceGenerator >false</DebugSourceGenerator >
1820 </PropertyGroup >
1921</Project >
2022```
2123
22- | 名称 | 类型 | 说明 |
23- | ------------- | :-----------: | ---- |
24- | ` IsPluginLoader ` | ` bool ` | 该项目是否是插件加载器项目,详见[ IsPluginLoader] ( #IsPluginLoader ) |
25- | ` IsPlugin ` | ` bool ` | 该项目是否是插件项目,详见[ IsPlugin] ( #IsPlugin ) |
26- | ` AutoPluginPackage ` | ` bool ` | 是否自动打包为插件(仅在` IsPlugin ` 为` true ` 时有效),详见[ 插件打包] ( /zh/plugin/pack ) |
27- | ` AutoGenerateI18N ` | ` bool ` | 是否自动生成I18N帮助类,详见[ I18N国际化] ( /zh/advance/i18n ) |
24+ | 名称 | 类型 | 说明 |
25+ | -------------------------| :--------:| -----------------------------------------------------------|
26+ | ` IsPluginLoader ` | ` bool ` | 该项目是否是插件加载器项目,详见[ IsPluginLoader] ( #IsPluginLoader ) |
27+ | ` IsPlugin ` | ` bool ` | 该项目是否是插件项目,详见[ IsPlugin] ( #IsPlugin ) |
28+ | ` AutoPluginPackage ` | ` bool ` | 是否自动打包为插件(仅在` IsPlugin ` 为` true ` 时有效),详见[ 插件打包] ( /zh/plugin/pack ) |
29+ | ` AutoGenerateI18N ` | ` bool ` | 是否自动生成I18N帮助类,详见[ I18N国际化] ( /zh/advance/i18n ) |
30+ | ` DebugSourceGenerator ` | ` bool ` | 只对插件项目有效,是否可见源生成器的输出文件(启用后将生成于` GeneratedFiles ` ) |
2831
2932::: warning 注意
3033
4649
4750如果为` true ` :
4851- 从` .csproj ` 文件中自动生成出` plugin.json `
52+ - 从` PluginLoader项目 ` 中自动复制` plugin.d.json ` 到` Plugin项目 ` 目录
4953- 允许使用[ 插件打包] ( /zh/plugin/pack ) 功能
5054
5155
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ public record ExampleMetaData : AbstractPluginMetaData
2121
2222你的元数据类** 必须** 使用` ExportMeta `
2323
24- 会自动导出为` 元数据定义文件 ` 给后续的插件使用
24+ 会自动导出为` 元数据定义文件(plugin.d.json) ` 给后续的插件使用
2525
2626
2727## 继承
You can’t perform that action at this time.
0 commit comments