GenerateManifestBase.AddFileFromItem(ITaskItem) 方法
定义
基于指定项向清单中添加文件引用。Adds a file reference to the manifest, based on the specified item.
此 API 支持产品基础结构,不能在代码中直接使用。
protected public:
Microsoft::Build::Tasks::Deployment::ManifestUtilities::FileReference ^ AddFileFromItem(Microsoft::Build::Framework::ITaskItem ^ item);
protected internal Microsoft.Build.Tasks.Deployment.ManifestUtilities.FileReference AddFileFromItem (Microsoft.Build.Framework.ITaskItem item);
member this.AddFileFromItem : Microsoft.Build.Framework.ITaskItem -> Microsoft.Build.Tasks.Deployment.ManifestUtilities.FileReference
Protected Friend Function AddFileFromItem (item As ITaskItem) As FileReference
参数
- item
- ITaskItem
创建要添加到清单中的文件引用所依据的项。The item from which to create the file reference to add to the manifest.
返回
已添加到清单中的文件引用。The file reference that was added to the manifest.