Closed tero-paananen closed 9 months ago
I did not managed to install older VS 2022 17.7 Community version. Installing older versions seems to be supported only Pro and Enterprise. I remembered that i have somehow previously installed older VS versions but not managed now...so i have to continue with latest VS 2022 17.8.4
I managed to build project when adding compiler Preprocessor definitions
flag _SILENCE_ALL_MS_EXT_DEPRECATION_WARNINGS
into following projects: Folly, Microsoft.ReactNative, fmt
(example below).
But what would be the best solution for this? Can i set this flag for example somehow into ExperimentalFeatures.props
?
Hi @tero-paananen, I don't work on this project anymore but you are in good hands with @chrisglein's team :)
Belief is that this was an issue that was fixed (warning looks familiar: https://github.com/microsoft/react-native-windows/pull/12411), but might not have been backported to 0.71 (it only made it to 0.72). Is it a requirement that you're on 0.71? Can you move to latest and get that fix?
Latest (RNW 0.73.4) HelloWorld seems indeed not has this issue. I tested with this app:
npx react-native@latest init HelloLatest
cd HelloLatest
npx react-native-windows-init --overwrite --language cs
yarn install
npx react-native autolink-windows
I try to patch our current 0.71.x and continue with that still a while. I hope that patching only fmt (version & hash) would be enought.
Finally fixed this with https://github.com/microsoft/react-native-windows/pull/13178
Problem Description
I installed RNW via install script https://microsoft.github.io/react-native-windows/docs/rnw-dependencies on my new Windows 11 device. Script installed latest VS 2022 17.8.x with MSVC latest (14.38.x) and that MSVC is the problem with error
I did not managed to get event simple hello world to build.
Now i try to install older VS 2022 17.7.x with older MSVC 14.37.x to get project build. Let see how it goes.
Any help from @asklar ? I found this issue https://github.com/microsoft/react-native-windows/issues/6918
Steps To Reproduce
Expected Results
No response
CLI version
npx react-native -v
Environment
( I had VS 2022 uninstalled when i ran info command )
Target Platform Version
None
Target Device(s)
Desktop
Visual Studio Version
Visual Studio 2022
Build Configuration
Debug
Snack, code example, screenshot, or link to a repository
No response