V M ARAVIND
V M ARAVIND

Reputation: 1

How to Retarget Solution that we use in Visual Studio using command line? Is there a specific command line script that we can run to fix this?

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

Answers (0)

Related Questions