Skip to content
This repository was archived by the owner on Aug 11, 2021. It is now read-only.
This repository was archived by the owner on Aug 11, 2021. It is now read-only.

Clarify you cannot call Core.Graph.FindReferencedModule in a patch #82

@markfinal

Description

@markfinal

For example, this is bad, and results in a Null deference exception

        this.PublicPatch((settings, appliedTo) =>
            {
                if (this.BuildEnvironment.Platform.Includes(Bam.Core.EPlatform.Windows))
                {
                    this.CompileAgainstPublicly<WindowsSDK.WindowsSDK>(source);
                }
            });

All such calls that look for modules should happen outside of a patch, in the module's Init function.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions