SGen.ShouldGenerateSerializer 属性
定义
获取或设置一个布尔值,该值指定 SGen
任务是否应生成序列化程序集。Gets or sets a Boolean value that specifies whether the SGen
task should generate a serialization assembly.
此 API 支持产品基础结构,不能在代码中直接使用。
public:
property bool ShouldGenerateSerializer { bool get(); void set(bool value); };
[Microsoft.Build.Framework.Required]
public bool ShouldGenerateSerializer { get; set; }
[<Microsoft.Build.Framework.Required>]
member this.ShouldGenerateSerializer : bool with get, set
Public Property ShouldGenerateSerializer As Boolean
属性值
true
如果 SGen
任务应生成序列化程序集,则为;否则为 false
。true
if the SGen
task should generate a serialization assembly; otherwise, false
.
- 属性
注解
如果此属性为 true
,则 MSBuildMSBuild 引擎将执行 SGen
任务并生成序列化程序集。If this property is true
, the MSBuildMSBuild engine will execute the SGen
task and generate a serialization assembly. 如果此属性为 false,则 MSBuildMSBuild 引擎将不执行该 SGen
任务。If this property is false, the MSBuildMSBuild engine will not execute the SGen
task.