Reputation: 1
I get this error when i try to run the build for React Native Windows
Error : Microsoft.UI.Xaml nuget package requires TargetPlatformMinVersion >= 10.0.17763.0 (current project is 16299) getting this error when building react native windows
.
But I am able to fix this issue by retargeting solution from Visual Studio UI. This will update all my files including the ones in my node modules as well.
But i want to try this through command line so that i can use it in my CI/CD
i tried this script but its giving me error: msbuild windows\BopisPlus\BopisPlus.vcxproj /p:WindowsTargetPlatformVersion=10.0.17763.0
error: error MSB4184 The expression "[MSBuild]::GetDirectoryNameOfFileAbove('', node_modules\react-native-windows\package.json)" cannot be evaluated. The filename, directory name, or volume label syntax is incorrect. (Exception from HRESULT: 0x8007007B)
But running retarget from Visual studio works fine without any errors
Upvotes: 0
Views: 444