projectFrameCut.PluginPackager.MSBuild 4.0.0

dotnet add package projectFrameCut.PluginPackager.MSBuild --version 4.0.0
                    
NuGet\Install-Package projectFrameCut.PluginPackager.MSBuild -Version 4.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="projectFrameCut.PluginPackager.MSBuild" Version="4.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="projectFrameCut.PluginPackager.MSBuild" Version="4.0.0" />
                    
Directory.Packages.props
<PackageReference Include="projectFrameCut.PluginPackager.MSBuild" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add projectFrameCut.PluginPackager.MSBuild --version 4.0.0
                    
#r "nuget: projectFrameCut.PluginPackager.MSBuild, 4.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package projectFrameCut.PluginPackager.MSBuild@4.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=projectFrameCut.PluginPackager.MSBuild&version=4.0.0
                    
Install as a Cake Addin
#tool nuget:?package=projectFrameCut.PluginPackager.MSBuild&version=4.0.0
                    
Install as a Cake Tool

projectFrameCut Plugin Packager

这个工具允许你使用MSBuild打包一个兼容projectFrameCut的插件。

如何使用

把这个包作为你的项目的引用:

<PackageReference Include="projectFrameCut.PluginPackager.MSBuild" Version="2.0.0" />

开发你的插件,然后使用MSBuild生成你的项目:

dotnet build -c Release

更多的信息请参考仓库的主文档

打包器配置

打包器向MSBuild提供了一些参数来控制打包器的行为:

基础信息

这些配置不是由打包器特有的,而是标准的NuGet包属性:

  • PackageId: 插件的包ID,也会作为它的唯一标识符, 请确保他和你的插件类的全名一致,并且不得以projectFrameCut开头(不区分大小写)。 如果同时配置了PluginIDOverridePackageId,打包器会使用PluginIDOverride的值作为插件ID。
  • Version: 插件的版本号
  • PackageProjectUrl: 插件的项目主页URL,可以留空

下面这些属性都是没有本地化的,如果你想要本地化这些信息,请配置插件基类的LocalizationProvider

  • Title: 插件的显示名称
  • Authors: 插件的作者
  • Description: 插件的描述

签名

  • PluginSignFilePath:必须设置这个属性来配置签名密钥 最方便的方式是使用PluginKeyGenerator.cs来生成一个签名文件。 如果你想要手动构建签名文件,你需要先准备一个Base64格式的PKCS #8密钥对,然后创建一个JSON文件,填入公钥到签名文件的Key字段,填入私钥到Value字段。

素材

  • PluginAssetPath:插件素材的路径,打包器会把这个路径下的所有文件都包含进插件包里。如果不需要素材,可以不设置这个属性。

源生成

  • GeneratePluginInfoSource:是否生成插件信息源代码文件,默认为 true。如果你通过继承标准插件来实现应用程序插件,或者就是想手动实现插件信息,设置为 false 可以阻止源生成。
  • GeneratePluginInfoSourcePath:生成的插件信息源代码文件的路径, 默认为空,表示生成在 obj\GeneratedSource\PluginInfo.g.cs。如果你想指定路径,可以设置为你想要的路径。
  • PluginIDOverride:用于覆盖生成的插件ID,而不是使用NuGet属性PackageId。如果你通过继承标准插件来实现应用程序插件,你需要设置这个参数来确保他们的插件ID一致。
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.0.0 87 4/18/2026
3.0.0 98 3/7/2026
2.0.0 118 1/22/2026
1.0.1 107 1/5/2026
1.0.0 115 1/1/2026