EnsureOutputFileReferenceExists( Bam.Core.TokenizedString path, FileReference.EFileType type, Target.EProductType productType) { this.SetType(productType); System.Threading.LazyInitializer.EnsureInitialized(ref this.FileReference, () => { var fileRef = this.Project.EnsureFileReferenceExists(path, type, sourceTree: FileReference.ESourceTree.BuiltProductsDir); this.Project.ProductRefGroup.AddChild(fileRef); return(fileRef); }); }
EnsureOutputFileReferenceExists( Bam.Core.TokenizedString path, FileReference.EFileType type, Target.EProductType productType) { this.SetProductType(productType); var fileRef = this.Project.EnsureFileReferenceExists(path, type, sourceTree: FileReference.ESourceTree.BuiltProductsDir); if (null == this.FileReference) { this.FileReference = fileRef; this.Project.ProductRefGroup.AddChild(fileRef); } }