I'm trying to run the MSBuild on the developer command prompt for VS2017 to build a retailSDK deployable package.
I'm on v10.0.35. I was able to build it successfully last week. I have no idea why I get the below error now. I must have changed something in my cloud-hosted Dev environment but I don't know what.
The command that I run on VS2017 developer command prompt as administrator after cd'ed to <full path>, is: msbuild /p:CheckVSDependencies=False -t:rebuild
*********************
/<full path>//dirs.proj/ (rebuild target) (1) ->
(RestorePackages target) ->
C://Users//<Admin>//AppData//Local//Temp//NuGetScratch//bc0d2drn.qqz.nugetrestore.targets(65,17): error MSB4186: Inv
alid static method invocation syntax: /[MSBuild]::VersionGreaterThanOrEquals($([MSBuild]::ValueOrDefault('$(NETCoreSdkV
ersion)', '0.0')), '8.0')/. Method '[MSBuild]::VersionGreaterThanOrEquals' not found. Static method invocation should b
e of the form: $([FullTypeName]::Method()), e.g. $([System.IO.Path]::Combine(`a`, `b`)). [C://Users//<Admin>//App
Data//Local//Temp//NuGetScratch//0ggytap4.zcn.nugetinputs.targets] [<full path>//dirs.proj]
<full path>//dirs.proj(44,9): error MSB3073: The command /powershell -NoProfile -NonInteractive
.//BuildTools/ugetRestore.ps1/ exited with code 1.
<fuill path>//dirs.proj(44,9): error MSB3073: The command /powershell -NoProfile -NonInteractive .
//BuildTools/ugetRestore.ps1/ exited with code 1.
Done Building Project /<full path>//dirs.proj/ (rebuild target(s)) -- FAILED.
********************
I ran a repair on Visual Studio 2017 in the hopes it will fix whatever is wrong but nothing works.
Any help to get MSBUILD working again is much appreciated.