Граф коммитов

83 Коммитов

Автор SHA1 Сообщение Дата
Jon Thysell 845aad2404
Update to Microsoft.NETCore.UniversalWindowsPlatform 6.2.14 (#14084)
## Description

This PR upgrades the minimum version of `Microsoft.NETCore.UniversalWindowsPlatform` to 6.2.14 for UWP C# projects.

### Type of Change
- Bug fix (non-breaking change which fixes an issue)

### Why
This is long over-due as the latest (and probably last) version of this package hasn't changed in over two years. There's no reason for us to build against an older version. Just as importantly, this brings in a newer version of the .NetNative toolchain, which seems to resolve issues around C# builds hanging at the .NetNative step.

Resolves #14055
Resolves #9194
Resolves #4869

### What
Updated the minimum version of `Microsoft.NETCore.UniversalWindowsPlatform` to 6.2.14 for UWP C# projects. Added new entries to the props that enable C++ apps to consume C# modules to see the latest versions of .NetNative.

## Screenshots
N/A

## Testing
Verified E2Etests build and run.

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

Update to Microsoft.NETCore.UniversalWindowsPlatform 6.2.14
2024-11-05 13:46:24 -08:00
JesseCol 598f233843
Update WinAppSDK from 1.5 to 1.6 (1.6.240923002) (#13977)
* Update WinAppSDK from 1.5 to 1.6 (1.6.240923002)

* Change files

* Adding more build fixes due to the fact that WinAppSDK 1.6 has a dependency on Microsoft.Web.WebView2

* Prevent Microsoft.Web.WebView2.Core.dll from being copied to avoid errors on arm64ec

---------

Co-authored-by: winappsdkdata_bot <winappsdkdata_bot@microsoft.com>
2024-10-18 09:37:02 -07:00
Tatiana Kapos e265163b8c
Integrate RN Nightly 10/1 (223e98cc4) (#13938)
* 0.77.0-nightly-20240925-0cb32d5ac

* 0.77.0-nightly-20241001-223e98cc4

* fix validate-overrides

* Change files

* fix build

* fix playground

* fix composition

* fix overrides

* fix snapshot + lint

* Change files

* try removing babel plugin

* add change back in

* bump dep
2024-10-15 19:23:19 +00:00
Yajur Grover c5dff02edd
Integrate RN Nightly 7/1 (#13508)
* Integrate 7/1

* update lockfile

* revert postinstall removal

* bump yarn to 1.22.22

* Remove .yarnrc

* Replace react-native with @react-native-community/cli

* Change files

* Update react-native-init-windows.yml

* update lockfile

* Fix all instances of calling yarn for RN CLI to call npx instead

* More npx added

* More npx added

* Fix bundle commands

* Add @react-native-community/cli to dev dependencies of each app

* update cli versions

* fix sample apps just-task

* Revert test snapshot changes

* Fix iterateOverValues

* Add new fuseboxtracer to ReactCommon

* fix upgrading RN for test-cli

* add yarn install

* Fork files with warnings as errors

* fix testcli creation

* finx fabric snapshots

* Fix babel-preset and metro-config versions

* Change files

* Start stubbing out SampleTurboModule to fix e2etest

* Revert "Start stubbing out SampleTurboModule to fix e2etest"

This reverts commit 5386ebdcf8.

* Comment out new EventEmiiter usage in example page

* Update packages.lock.json

* try to fix debug test

* Disable debugging tests

* remove logging statements

---------

Co-authored-by: Jon Thysell <jthysell@microsoft.com>
Co-authored-by: Jon Thysell <thysell@gmail.com>
2024-08-07 16:13:28 -07:00
Sharath Manchala 9ddfc2505e
Increase the syntaxtoken size to 10 parameters (#13477)
* Increase the size to 8 parameters

* Introduce a unittest for codegen

* Change files

* Increase the params to 10

* Delete vnext/Microsoft.ReactNative.Managed.CodeGen.UnitTests/CodeGen/Lkg/Microsoft.ReactNative.Managed.CodeGen.UnitTests.CodeGen.CodeGenMethodTests--EightParamReturnInt--Sync.lkg

* Delete vnext/Microsoft.ReactNative.Managed.CodeGen.UnitTests/CodeGen/Lkg/Microsoft.ReactNative.Managed.CodeGen.UnitTests.CodeGen.CodeGenMethodTests--EightParamReturnInt--Async.lkg
2024-07-24 10:25:36 -07:00
Chiara Mooney d42a78eeeb
Integrate RN Nightly Build 5/31 (#13298)
* Integrate 5/31

* Change files

* Update Fabric Snapshots

* Update Example

* Fix Fabric Snapshots

* Fix Paper Snapshots

* Update TextInput Example

* Test Different Fix

* Comment Out Example

* Comment Out Example

* Adjust TextInput Example

* Edit Turbo Module Example

* Update packages/@react-native-windows/tester/src/js/examples/TurboModule/SampleTurboModuleExample.windows.js

Co-authored-by: Marlene Cota <1422161+marlenecota@users.noreply.github.com>

* Update packages/@react-native-windows/tester/src/js/examples/TurboModule/SampleTurboModuleExample.windows.js

Co-authored-by: Marlene Cota <1422161+marlenecota@users.noreply.github.com>

* Add comments

---------

Co-authored-by: Marlene Cota <1422161+marlenecota@users.noreply.github.com>
2024-06-07 11:07:56 -07:00
Julio César Rocha 25be51926c
Upgrade to Windows SDK 10.0.22621.0 (#13287)
## Description
Bumps and aligns the SDK version from `10.0.19041.0` to `10.0.22621.0`.

### Type of Change
- Bug fix (non-breaking change which fixes an issue)

### Why
- There is a requirement to build the Desktop DLL (`react-native-win32.dll`) for ARM64EC.\
  This makes Windows SDK 10.0.22621.0 necessary due to the dependency on intrinsics-related headers not available in version 10.0.19041.0.
- There is the added benefit of using the default SDK version installed by Visual Studio 2022, reducing the number of development dependencies.

Replaces #10869

### What
- Bumps all Win SDK references to version 22621.
- Adds installation of version 22621 in both installation scripts and CI.
2024-06-04 09:43:32 -07:00
Chiara Mooney c0976782a5
Integrate RN Nightly Build 5/18 (#13282)
* Integrate 5/14

* Change files

* Fix CI #1

* Re-add BoundedConsumableBuffer.h

* Integrate 5/18
2024-05-31 14:20:48 -07:00
Marlene Cota 1304e2f0aa
Integration 05/11/24 (3f17c8b5f) (#13273)
* RN Integration 05/03

* fix typo

* yarn.lock

* fix codegen

* RN Integration 05/11

* Change files

* yarn.lock

* fix bad merge

* remove deleted virtual

* nested view in text

* add back text examples

* update snapshots

* fix

* fix textexample test ids

* snapshots

* revert imageexample uri updates

* fabric snapshots

---------

Co-authored-by: Andrew <30809111+acoates-ms@users.noreply.github.com>
2024-05-29 10:58:28 -07:00
Jon Thysell 1ea5673aab
Add builds and nugets for MS.RN Fabric (#12900)
## Description

This PR adds configurations for Microsoft.ReactNative with Fabric enabled to PR, CI, and Publish builds. This change will enable the publishing of new versions of the Microsoft.ReactNative NuGet with the `-Fabric` suffix to differentiate it from the current Paper NuGet.

This replicates the setup that Desktop has, where we create and publish versions of React Native Win32 nugets with the `-Fabric` suffix to indicate those versions are using Fabric.

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

### Why
We want the default new arch, new app / lib experience to *not* build RNW, but instead consume it via NuGets, see #12639. In order to get that started, we'll need the 

### What
Updated CI/PR/Publish configurations.

## Screenshots
N/A

## Testing
Verified new configurations fired off existing tests in PR.

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

New Microsoft.ReactNative nugets with Fabric enabled
2024-04-02 10:23:53 -07:00
Andrew Coates 1c177d7469
Bump WindowsAppSDK version to 1.5.240227000 (#12848)
* Bump WindowsAppSDK version to 1.5.240227000

* Change files

* Run NuGetRestoreForceEvaluateAllSolutions.ps1

* Change files
2024-03-18 16:07:28 -07:00
Chiara Mooney 8f4fb70927
Integrate RN Nightly Build 1/29 (#12787)
* Integrate 1/26

* Change files

* Adjust Compile

* Update Package

* Change files

* Fix Build Error

* Change files

* Remove Yoga.cpp Fork

* try to fix react-native-init-windows.yml

* try to fix react-native-init.yml

* Integrate 1/29

* Format

---------

Co-authored-by: Jon Thysell (JAUNTY) <jthysell@microsoft.com>
2024-03-06 14:19:04 -08:00
Jon Thysell 9bd3906f3b
Update WinAppSDK versions to latest public builds (#12747)
## Description

This PR updates the default versions of `Microsoft.WindowsAppSDK` used to 1.4.240211001 when `<UseWinUI3>true</UseWinUI3>` is specified, and 1.5.240124002-experimental2 when `<UseExperimentalWinUI3>true</UseExperimentalWinUI3>` is specified.

This PR also updates all of the `packages.lock json` files to the defaults.

### Type of Change

- Bug fix (non-breaking change which fixes an issue)

### Why
To keep up with the latest public versions of WinAppSDK.

### What
See above.

## Screenshots
N/A

## Testing
Ran both PR and new Secure PR checks to make sure that everything still builds and works.

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

Updated WindowsAppSDK dependency to 1.4.240211001
2024-02-21 10:37:56 -08:00
Andrew Coates 0211cdbdf6
Deprecate web debugging (#12724)
* Deprecated Web Debugging

* Change files

* fix
2024-02-12 17:27:39 -08:00
Yajur Grover 6efa6bff7d
Integrate RN Nightly 10/16 (#12532)
* Change files

* testing 10/10

* fixed change files

* fixed include

* yoga fix

* integrated 10/12

* uimanager changes

* integrate 10/13

* disabled prop change

* integrate 10/14

* integrate 10/15

* integrate 10/16

* fixed formatting 10/16

* lint fix

* cherry-pick 'Implement JSI native state support'

* Use static_pointer_cast instead of dynamic_pointer_cast

* Fix x86 tests

* fix merge

* fix merge

* add hasNativeState change

---------

Co-authored-by: Vladimir Morozov <vmorozov@microsoft.com>
2023-12-15 13:30:34 -08:00
Jon Thysell 46c26bbb89
Update @react-native/react-native-picker (#12449)
## Description

This PR updates our usage of `@react-native/react-native-picker` to a newer version which uses the correct Windows SDK version specified by RNW.

### Type of Change
- Bug fix (non-breaking change which fixes an issue)

### Why
Without this change, devs will require an older (and unecessary) Windows SDK than we're currently targeting.

### What
See above.

## Screenshots
N/A

## Testing
Verified e2e-test builds and runs.

## Changelog
Should this change be included in the release notes: no
2023-11-28 22:46:59 +00:00
Vladimir Morozov 922e3bfb34
Change Hermes package version to 0.1.18 (#12405)
* Change Hermes package version to 0.1.18

* Change files

* Add missing package.lock.json files
2023-11-16 22:12:40 +00:00
Yajur Grover ae282e6dd9
Integrate RN Nightly Build 7/28 (#11970)
* resolved merge conflicts and build errors

* Change files

* change file and formatting

* updated snapshot

* edited tester list

* updated snapshots

* updated lockfile

* fixed syntax error

* Revert "updated snapshots"

This reverts commit 19bfa39016.

* resolved linting errors

* Update to use newly renamed `@react-native/babel-preset` and `@react-native/metro-babel-transformer`

* fix changefiles

* ran universal unit tests

* Switch to ensure usage of @react-native/metro-config

* Workaround for null coalesing operator issue

---------

Co-authored-by: Yajur Grover <yajurgrover@microsoft.com>
Co-authored-by: TatianaKapos <tatianakapos@microsoft.com>
Co-authored-by: Jon Thysell <jthysell@microsoft.com>
2023-08-28 17:56:59 -07:00
Jon Thysell 9917e3b45f
Enable NuGet restore lock files for all projects (#12002)
## Description

This PR specifies that all projects should set the msbuild property `RestorePackagesWithLockFile` to `true` by default, not just the C# ones.

This way we can ensure that PR/CI will build reliably because every locked version should be available in the react-native-public ADO feed. Changes to NuGet dependencies in PRs should now explicilty fail if the new package version is not in the ADO feed, and therefore require us to manually approve the addition to the feed (as required by compliance).

Closes #11998

### Type of Change
- Bug fix (non-breaking change which fixes an issue)
- Breaking change (fix or feature that would cause existing functionality to not work as expected)

### Why

This way we can ensure that PR/CI will build reliably because every locked version should be available in the react-native-public ADO feed. Changes to NuGet dependencies in PRs should now explicilty fail if the new package version is not in the ADO feed, and therefore require us to manually approve the addition to the feed (as required by compliance).

Closes #11998

### What
This PR specifies that all projects should set the msbuild property `RestorePackagesWithLockFile` to `true` by default, not just the C# ones.

## Screenshots
N/A

## Testing
N/A

## Changelog
Should this change be included in the release notes: no
2023-08-11 15:58:36 -07:00
Jon Thysell 13c1223ecd
Fix accessibilityState to support states not being set (#11792)
## Description

Our existing implementation for `accessibilityState` does not support that the values of a state can be `null`. This means *every* View has *every* unset state with the default `false` value.

The problem stems from implementing the short-lived `accessibilityStates` prop at the same time as `accessibilityState`, but not removing the deprecated API right away.

This PR fixes our implementation to only include the states when explicitly set, and to otherwise clear them. This PR also removed the no longer required "opposite" states like `Collapsed` and `Unchecked`.

Resolves #11791

### Type of Change
- Breaking change (fix or feature that would cause existing functionality to not work as expected)

### Why
Properly implement accessibility in preparation for doing the work correctly for Fabric.

Resolves #11791

### What

Removed the old unused states and updated FrameworkElementViewManager to allow for unset values rather than forcing the default false. Updated AccessbilityStateChecked to accept an enum of Unchecked, Mixed, or Checked. Updated the DynamicAutomationPeer to only express a View has the appropriate provider iff the matching state is present on the view.

## Screenshots
N/A

## Testing

Updated E2E test snapshots to include the AccessibilityRole and AccessibilityState properties in the XAML tree dumps.
2023-07-28 13:24:32 -07:00
Julio César Rocha 791786e503
Attempt AddNetworkingHandler if HTTP module was not ready (#11926)
* Update packages.lock

* Remove HttpModule.h from OInstance.cpp

* Remove runtime option Blob.EnableModule

* Call SetupHttpResource only once

* Attempt AddNetworkingHandler if HTTP module was not ready

* Change files
2023-07-24 12:34:24 -07:00
Tatiana Kapos 4dae24722d
Integrate RN Nightly 6/28, bumps node from 16 to 18 (#11858)
* bump node to 18

* integrate 0.73.0-nightly-20230620-936936ca5

* Change files

* integrate 0.73.0-nightly-20230623-330639f74

* bump node in js-env

* bump node in rnw-img

* update image

* fix healthCheck test

* integrate 0.73.0-nightly-20230628-15d735b35

* add npm directory

* try spedifying hostname

* restore NuGet packages

* run in release

* switch to new image

* add node18 image

* update .yml files and add node18 json

* add baseImage and type information
2023-07-13 13:55:11 -07:00
Andrew Coates 6e4108cccd
CG: Move to single nuget source (#11855)
* CG: Move to single nuget source

* update nuget lock files

* Change files
2023-07-07 23:20:58 +00:00
Julio César Rocha f3fe56a572
Define FileReader turbo module (#11789)
* Declare FileReaderTurboModule

* Declare m_blobPersistor

* Use msrn namespace alias in FileReader module

* json lock

* Update lock files

* config

* Implement ReadAsDataUrl

* Define ReadAsText

* Define FileReaderResource

* Move persistor from module into resource

* Rename module name name

* Add using ModuleSpec

* clang format

* Change files
2023-06-21 15:32:10 -07:00
Vladimir Morozov 00ef6dfcfc
ABI-safe Hermes API and new JSI for Node-API (#11696)
* ABI-safe Hermes API and new JSI for Node-API

* Change files

* Use Hermes version 0.1.13 that supports UAP

* Format code

* Merge node-api-jsi project into ReactCommon project

* Fix x86 issues

* Eliminate Linker warnings

* Copy Node-API JSI files to MS.RN.Cxx Nuget

* Remove unnecessary settings from shared projects

* Format code and fix Layout-MSRN-Headers.ps1

* Fix loading Node-API JSI zip

* Remove node-api-jsi project from the playground project

* Update Hermes package version

* Change files

* Fix playground project compilation

* Use node-api-jsi with fixes for C++20

* Fix building playground apps

* Format code

* Make sure that the Hermes inspector works

* Update packages.lock.json files

* Update Hermes version with fixes for prepared scripts

* Use Hermes package 0.1.15 to fix UWP .Net projects

* Use SafeLoadLibrary and remove thread Id check for Jsi::Runtime
2023-06-12 21:45:47 -07:00
Andrew Coates 24a9589289
Add option to load ship bundles from metro (#11595)
* Add option to load ship bundles from metro

* Change files

* fix

* format

* keep default value the same as before

* better filter file update
2023-05-11 13:09:37 -07:00
Jon Thysell fe7d786b74
Fix typos and add `cspell` configuration (#11536)
## Description

This PR adds configuration files for `cspell`, which is available as a recommended VS Code plugin for this repo. This PR also fixes most "non-breaking" typos (comments, error messages, local names) for code files within the repo.

This PR **does not** add any kind of spell-checking enforcement on the repo.

### Type of Change
N/A

### Why

Clear up misunderstandings in comments / error messages.

### What
What changes were made to the codebase to solve the bug, add the functionality, etc. that you specified above.

## Screenshots
N/A

## Testing
N/A
2023-05-05 13:12:29 -07:00
Chiara Mooney 39f99ed616
Integrate RN Nightly Build 4/14 (#11501)
* Integrate 4/13

* Change files

* Fix Breaks

* Format

* disable tests

* Fix LogBox Error

* Integrate 4/14
2023-04-24 11:36:40 -07:00
Chiara Mooney 73b38e47ce
Bump WinUI to v2.8 (#11493)
* Upgrade to WinUI 2.8

* Change files

* Test Fixes

* Import Updates

* Update

* Adjust Win32

* Update vnext/PropertySheets/NuGet.Cpp.props

---------

Co-authored-by: Jon Thysell <jthysell@microsoft.com>
2023-04-24 11:36:22 -07:00
Julio César Rocha 0a5309293c
Use Boost GUID generator (#11470)
* Update package lock

* Use Boost UUID library

* Change files

* Remove GuidHelper import
2023-04-10 18:54:10 -07:00
Eric Rozell 11f3403154
Adds BundleAppId to ReactInstanceSettings (#11217)
* Adds BundleAppId to ReactInstanceSettings

For scenarios where you may want to run a single packager server
instance to serve multiple apps with different rules, and the relative
bundle path is not sufficient for determining which application the
bundle is being produced for, Metro provides an `app` query parameter to
the dev server.

This change wires up the option for apps to supply the `app` query
parameter to metro via ReactInstanceSettings::BundleAppId. This
functionality is already available to iOS and Android React Native apps.

* Change files

---------

Co-authored-by: Andrew Coates <30809111+acoates-ms@users.noreply.github.com>
2023-03-17 09:16:00 -07:00
Tatiana Kapos 4872e779fd
Integrate RN Nightly Build 2/1/23 (#11161)
* integrate 2/1/23

* Change files

* bump hermes version

* Change files
2023-02-08 12:56:59 -08:00
Tatiana Kapos 88f5ad05ba
Integrate RN Nightly Build 1/25/23 (#11151)
* integrate 1/25/23

* Change files

* remove internalized slider test

* bump hermes version

* Change files
2023-02-01 15:47:52 -08:00
Tatiana Kapos 43490514c8
Integrate RN Nightly Build 1/11 (#11133)
* integrate 01/11/23

* Change files

* remove DatePicker

* bump hermes version

* fix playground runtime

* Change files

* fix textinput example and flow
2023-01-27 16:07:39 -08:00
Chiara Mooney bd502ff2e4
Integrate RN Nightly Build 12/28 (#11117)
* Integrate 12/28

* Change files

* Fix Native Changes

* Lingering Updates

* Lint

* Empty
2023-01-24 14:10:36 -08:00
Chiara Mooney 09529b2bfe
Integrate RN Nightly Build 12/14 (#11079)
* Integrate RN 12/14

* Integrate 12/14

* Change files

* Yarn

* Add Native Fixes

* Format and Versioning

* Update Version

* Change files

* Fix Lint

* Fix Overrides

* Yarn

* Update Hermes
2023-01-19 14:12:47 -08:00
Tatiana Kapos 6b10c0f1a9
Integrate 12/2/22 (#10999)
* integrate 12/2/22

* Change files

* add SchedulerPriority.h

* bump hermes version

* Change files

* try overriding TurboModule files

* yarn

* override AnimatedInterpolation

* yarn lint and issue number

* remove RectangleEdges.h

* fix bad merge

* add windows specific comments and link issues

* add back in newline

* try to fix code-gen parameters

* fix sample-app code-gen

* yarn and new lines
2023-01-10 11:19:17 -08:00
Tatiana Kapos d85e1c9ee4
Integration 11/18/22 (#10970)
* integration 11/18/22

* Change files

* switch ViewWin32 from setAndForwardRef to useMergeRefs

* fix build with overrides

* fix win32 pathing

* fix linter issue

* add in missing flow comment

* upgrade hermes version

* Change files

* revert hermes version

* missing hermes version

* try bumping hermes version again

* Change files
2022-12-06 14:05:09 -08:00
Chiara Mooney 7c8e70822d
Integrate 11/9 RN Nightly Bulid (#10883)
* Integrate 10/10

* Remaining Edits

* Change files

* Fix Overrides

* Fix Package.json

* Fix Package.json

* Bump codegen version

* Change files

* Bump Hermes

* Flow Fixes

* Yarn

* Type Change

* Test Test

* Fix Lint

* Fix Lint

* Fix Flow

* Update JSI

* Update Hermes

* Fix Hermes

* Change files

* Integrate 11/8

* Update Hermes

* Yarn

* Update codegen package for newer react-native-codegen version

* fix rntester win32

* Fix ExecuteJsiTests Run_JSDrivenTests

* Remove asyncstorage test (AsyncStorage was removed from RN)

* Bump rn/cli

* Bump cli-types, Add cli-doctor

* Fix Remaining Hermes

* Revert Color Change

* Fix Typo

Co-authored-by: Andrew Coates <30809111+acoates-ms@users.noreply.github.com>
2022-12-01 10:32:22 -08:00
Jon Thysell 862090038e
Move remaining PackageReferences out of new project templates (#10830)
## Description

This PR moves the `Microsoft.Windows.CppWinRT` and `Microsoft.NETCore.UniversalWindowsPlatform` PackageReferences out of their new project template and into the External Property Sheets.

This PR also parameterizes the version of `Microsoft.NETCore.UniversalWindowsPlatform` with the property `$(NETCoreUWPVersion)`.

### Type of Change
- Breaking change (fix or feature that would cause existing functionality to not work as expected)
- This change requires a documentation update

### Why

This consolidates how we consume NuGet dependencies and simplifies the new project templates.

Closes #10829

### What

See above.

## Screenshots
N/A

## Testing
N/A
2022-11-14 16:56:41 -08:00
Chiara Mooney fa576c66ef
[WIP] Integrate RN Nightly Build 10/10 (#10867)
* Integrate 10/10

* Change files

* Fix Breaks

* Fix Breaks

* Resolve Conflicts

* Fix RNTester

* Fix Flow

* Remove New Arch Sample

* Fix Flow + RNTester

* Merge

* Revert playground solution

* Fix Flow Windows

* Fix Lint

* Fix Lint TextInput

* Update Hermes Version

* Remove ScrollView Change

Co-authored-by: Jon Thysell (JAUNTY) <jthysell@microsoft.com>
2022-11-11 15:55:50 -08:00
Tatiana Kapos ca86014a9c
Integration 9/26/22 (#10816)
* fix typescript pathing to react-native/types

* integration 9/26/22

* Change files

* try to fix snapshot test

* fix playground build

* update hermes package

* match ts-jest version to jest version

* update yarn file

* jest done callback not used on async jest tests

* minor fixes

* Change files

* Increase timeout for configToProjectInfo

* fix failure transpiling jest-runner

* another attempt at timeout fix

* more fixes

* defork virtualizedlist

* realign jest version with core - add sample test to rnw and rnwin32 to allow jest to run

* missing space in repo-config package.json

* suppress new c++ warning CI hits

* fix

* Unblock most E2E

* update snapshot

* update snapshot

Co-authored-by: Andrew Coates <30809111+acoates-ms@users.noreply.github.com>
2022-11-09 13:35:37 -08:00
Jon Thysell 5885ee4477
Upgrade to VS 2022 (#9916)
*Description*

This PR updates RNW to build with (and require) Visual Studio 2022. This includes upgrading the `Microsoft.ReactNative.Managed.CodeGen` project to .NET 6.0

This PR does not change the minimum / target Windows SDK versions for RNW or RNW apps.

This PR does not change the language versions of C++ (17) and C# (8.0) used.

*Type of Change*
- Breaking change (fix or feature that would cause existing functionality to not work as expected)
- This change requires a documentation update

*Why*
Visual Studio 2022 is the currently supported version of Visual Studio and what is available to download without an MSDN subscription to access older versions. As Visual Studio 2019 support is reduced/deprecated, we need to migrate. 

Closes #8750
Closes #9499 
Closes #10130

*What*

What's changed:

* All VS project files have been updated to require a minimum of VS 2022 (aka version 17.0).
    * NuGet-based dependencies that are tied to VS version have been upgraded.
* The `Microsoft.ReactNative.Managed.CodeGen` project has been updated to .NET 6.0
    * The snapshots for the codegen tests have been updated to pass
* The E2E Test app has been updated to the latest version of `react-native-xaml` (needed to fix build issues)
    * Snapshots for E2E tests have been updated to pass

*Testing*

Builds and tests All tests
2022-10-31 11:00:09 -07:00
Vladimir Morozov 814ddb2398
Fix C# modules with multi-parameter callback methods (#10735)
* Fix C# modules with multi-parameter callback methods

* Change files

* Change sln file to have VS 2019 formatting

* Update vnext/Microsoft.ReactNative.Managed/ReactNotificationIdOf.cs

Co-authored-by: Danny van Velzen <dannyvv@microsoft.com>

* Address code review feedback

Co-authored-by: Vladimir Morozov <vmoroz@users.noreply.github.com>
Co-authored-by: Danny van Velzen <dannyvv@microsoft.com>
2022-10-26 04:23:09 +00:00
Jon Thysell 4929181968
Mitigate MSB4011 warning for importing ExperimentalFeatures.props (#10767)
This PR fixes the `MSB4011` warning when `JSEngine.props` tries to import `ExperimentalFeatures.props` a second time. The expectation is that all RNW projects (app or module) import the `ExperimentalFeatures.props` file (located next to the VS solution) at the very top of each project file, so all RNW-related projects are in sync with respect to the state of any Experimental Features.

However, older RNW apps/module templates did not include this import, hence `JSEngine.props`'s workaround to import it. Unfortunately, MSBuild:

* Doesn't like project files to be imported twice, so it gives the `MSB4011` warning
* Doesn't provide any built-in way to detect if a project file has already been imported
* Doesn't allow you to suppress this particular warning completely

The best solution is to set a property in the imported file and check for that property before attempting to import the file.

This PR adds an `ReactExperimentalFeaturesSet` property to all in-repo and new template `ExperimentalFeatures.props` files, and changes `JSEngine.props` to both check for it before importing and throw a new warning so let existing projects know about the new property and how to resolve all of the warnings.

TLDR: After this PR has been merged, adding

```xml
<ReactExperimentalFeaturesSet>true</ReactExperimentalFeaturesSet>
```

to your `ExperimentalFeatures.props` file will get rid these annoying MSB4011 warnings.
2022-10-19 14:14:59 -07:00
Andrew Coates c808a5234e
Add codegen-windows command (#10532)
* Add codegen-windows command to run windows codegen

* Do not error on codegenconfigs that do not specify windows

* Change files

* Add codegen to default build

* run codegen

* fix module

* format

* lint fix
2022-09-26 13:35:26 -07:00
Jon Thysell 3136538c11
Move required PackageReference properties into shared property sheets (#10567)
## Description

The switch to PackageReference sprinkled required properties in each individual app/lib project file, instead of putting them in to the shared property sheets.

This means that customers upgrading from earlier versions of RNW must add these properties to every project they consume. So app customers must add the correct properties to their app projects when upgrading to 0.68+, and also to each native module project they depend on.

Moving the properties in to the shared props (that every project consumes) means that they all get their benefit.

Resolves #10538

### Type of Change
- Bug fix (non-breaking change which fixes an issue)
- Breaking change (fix or feature that would cause existing functionality to not work as expected)

### What

Set the NuGet properties such as `AssetTargetFallback`, `ResolveNuGetPackages`, `TargetFrameworkMoniker`, and `RestoreUseStaticGraphEvaluation` in the shared property sheets, and removed their hardcoded values in our projects and templates.

### Why

Projects built with older templates need these properties but might not otherwise get upgraded.

### Test

I created a brand new RN 0.67 project, added RNW 0.67, and added `react-native-camera` as a dependency. I confirmed that the project built and ran as expected with `yarn windows`.

Then I manually upgraded the `package.json` with `react@18.1.0`, and `react-native@0.0.0-20220714-2051-8af7870c6`. Then I ran `react-native-windows-init` pointing to my local repo (with these changes) to upgrade the windows files with the fixed template.

Finally I ran `yarn windows` and confirmed that all packages were restored, the app and native modules built, deployed, and ran.
2022-09-14 09:13:04 -07:00
Chiara Mooney 4096480789
Integrate 7/14 RN Nightly Build (#10368)
* Integrate 7/14

* Change files

* Add BigInt APIs

* Fix Format

* Save State

* Fix Merge

* Yarn

* fix e2etest autolinking

* Fix integration-test-app

* Fix JasValueKind enum order

* Start to add abstraction layer for breaking `facebook::jsi::ValueKind`

* fix missing { typo

* Remove hardcoded hermes version from project files

* Bump to ReactNative.Hermes.Windows 0.70.0

* Temporary revert BigInt enum value order

* yarn format

* Cleanup ReactCommon vcxproj/filters

* Move JSI kind mapping into own file, add // TODO: JSIVALUECONVERSION comments

Co-authored-by: Jon Thysell (JAUNTY) <jthysell@microsoft.com>
2022-08-19 10:24:08 -07:00
Julio César Rocha 51857f2d52
Import WinUI package only if OverrideWinUIPackage is not set to "true" (#10267)
* Update packages.lock.json

* Import WinUI package only if OverrideWinUIPackage is not true

* Change files

* Revert Microsoft.ReactNative.Managed.UnitTests.csproj
2022-07-18 22:32:51 +00:00
Jon Thysell f886ae648f
CG: Update Newtonsoft.Json to 13.0.1 (#10208)
* CG: Update Newtonsoft.Json to 13.0.1

This PR updates our usage of Newtonsoft.Json to 13.0.1 to resolve two CG
alerts: WS-2022-0161 and GHSA-5crp-9r3c-p9vr

* Change files
2022-06-28 20:56:46 +00:00