Skip to content

Avoid cross references from reference to source projects via protection #56428

Closed
@ViktorHofer

Description

@ViktorHofer

#56417 showed that it's possible to accidentally add a ProjectReference from a ref project to a source one. It should be possible to guarantee that this doesn't happen again via a Target that checks if a reference project is available when a source project is referenced from a reference project and throws in such cases. Performance should be considered as an IO operation per ProjectReference might slow down the build. As an optimization, the IO check could only be triggered if a ProjectReference's parent folder is "src".

Alternatively by merging reference and source projects we would avoid this problem entirely: #37961.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions