I am trying to run msbuild command line, but, I am getting in the last step of it, the error below (it is in portuguese, but is the same error in the title.
C:Program Files (x86)Microsoft Visual Studio2019CommunityMSBuildXamariniOSXamarin.Shared.targets(227,3): erro
r MSB4044: A tarefa "GetMinimumOSVersion" n?o recebeu um valor para o parametro obrigatório "SdkVersion". [E:2-PROJETO
S\_ALGORIXProjetosACCORDSOLUTIONAppAlgorixAppAlgorix.iOSAppAlgorix.iOS.csproj]
My msbuild command is:
msbuild AppAlgorix.sln /p:Configuration=AppStore;Platform=iPhone /p:CFBundleVersion=1 /p:CFBundleShortVersionString=2.3.1 /p:ServerAddress={mac ip address} /p:ServerUser={mac user} /p:ServerPassword={mac pwd} /p:BuildIpa=true /p:IpaPackageDir="E:8-IPASACCORD" /t:Clean;Build /p:ArchiveOnBuild=false /p:IsAppDistribution=false /p:CodesignKey="{App ID identifier}" /p:CodesignProvision="{App Provisioning Profile}"
All the {} data are confidential, so I cropped them.
This command was working one day, but I don′t know when, but after some VS 2019 update, the command, stops working.
I have found some articles about it, but I can′t find a way to resolve this problem.
Onw of those articles is this:
https://www.gitmemory.com/issue/xamarin/xamarin-macios/10109/729614745
My VS 2019 is updated in version 16.8.4.
I have here, about 40 apps to build and get the ipa. I was running a dosbat to resolve it, and get those ipas, more quickly. Not having this msbuild command line working, will take me to a big problem, cause I almost every week have some updates in my apps, and build one by one, will not be a great idea.
And one more thing is.. I can build inside VS 2019, without any problem. The problem happens only via msbuild command line.
question from:
https://stackoverflow.com/questions/66051101/the-getminimumosversion-task-was-not-given-a-value-for-the-required-parameter 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…