Skip to content

Conversation

@jonthysell
Copy link
Contributor

@jonthysell jonthysell commented Oct 8, 2024

Description

This PR creates new "entry" prop/target imports for C++ libraries that depend on the UseFabric property to conditionally import either the old Uwp props/targets or the new Composition props/targets.

Type of Change

  • New feature (non-breaking change which adds functionality)

Why

This helps enable module projects to support both paper and fabric with the same build files.

Resolves #13928.

What

Added new imports, updated the cpp-lib template and existing sample to load them.

Screenshots

N/A

Testing

N/A

Changelog

Should this change be included in the release notes: yes

Update the cpp-lib template project to support importing either paper Uwp or fabric Composition prop/targets

Microsoft Reviewers: Open in CodeFlow

This PR creates new "entry" prop/target imports for C++ libraries that
depend on the `UseFabric` property to conditionally import either the
old Uwp props/targets or the new Composition props/targets.

Resolves microsoft#13928.
@jonthysell jonthysell requested review from a team as code owners October 8, 2024 18:26
@microsoft-github-policy-service microsoft-github-policy-service bot added Area: Library Template New Architecture Broad category for issues that apply to the RN "new" architecture of Turbo Modules + Fabric labels Oct 8, 2024
@jonthysell
Copy link
Contributor Author

This will need to be backported in full to 0.76 and at least the presence of the prop/target sheets in 0.75 and 0.74.

@jonthysell jonthysell enabled auto-merge (squash) October 9, 2024 18:37
@jonthysell jonthysell disabled auto-merge October 9, 2024 21:07
@jonthysell jonthysell merged commit d1f46f7 into microsoft:main Oct 9, 2024
@jonthysell jonthysell deleted the unifiedprops branch October 9, 2024 21:08
jonthysell added a commit to jonthysell/react-native-windows that referenced this pull request Oct 23, 2024
…her paper Uwp or fabric Composition prop/targets

This PR backports microsoft#13945 to 0.76.

## Description

This PR creates new "entry" prop/target imports for C++ libraries that depend on the `UseFabric` property to conditionally import either the old Uwp props/targets or the new Composition props/targets.

### Type of Change
- New feature (non-breaking change which adds functionality)

### Why
This helps enable module projects to support both paper and fabric with the same build files.

Resolves microsoft#13928.

### What
Added new imports, updated the `cpp-lib` template and existing sample to load them.

## Screenshots
N/A

## Testing
N/A

## Changelog
Should this change be included in the release notes: yes

Update the `cpp-lib` template project to support importing either paper Uwp or fabric Composition prop/targets
jonthysell added a commit that referenced this pull request Oct 24, 2024
…her paper Uwp or fabric Composition prop/targets (#14024)

This PR backports #13945 to 0.76.

## Description

This PR creates new "entry" prop/target imports for C++ libraries that depend on the `UseFabric` property to conditionally import either the old Uwp props/targets or the new Composition props/targets.

### Type of Change
- New feature (non-breaking change which adds functionality)

### Why
This helps enable module projects to support both paper and fabric with the same build files.

Resolves #13928.

### What
Added new imports, updated the `cpp-lib` template and existing sample to load them.

## Screenshots
N/A

## Testing
N/A

## Changelog
Should this change be included in the release notes: yes

Update the `cpp-lib` template project to support importing either paper Uwp or fabric Composition prop/targets
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: Library Template Backport: Requested New Architecture Broad category for issues that apply to the RN "new" architecture of Turbo Modules + Fabric

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

The new cpp-lib template should default to loading "hybrid" paper/fabric props/targets

2 participants