Exemple #1
0
 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);
     });
 }
Exemple #2
0
        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);
            }
        }